Example #1
0
        private Stream GetJpegsInputStream()
        {
            // stdout from pipe
            // sample command line :
            // raspistill -n -e jpg -w 640 -h 480 -q 75 -x none -tl 0 -t 10000 -o - | mono RobotSharp.ImageCapture.exe
            //return Console.OpenStandardInput();

            PosixUtils.ExecuteKillAll("raspistill");

            // start a process and get his stdout's
            imageGeneratorProcess = PosixUtils.CreateBashCommandProcess("raspistill -n -e jpg -w 640 -h 480 -q 75 -x none -tl 0 -o -");
            imageGeneratorProcess.Start();
            return(imageGeneratorProcess.StandardOutput.BaseStream);
        }
 public void Stop()
 {
     PosixUtils.ExecuteKillAll("raspivid");
     started = false;
 }