public void Start() { var process = PosixUtils.CreateBashCommandProcess( "raspivid -t 0 -w 480 -h 260 -fps 23 -b 800000 -p 0,0,640,480 -o - | gst-launch -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.0.3 port=5000"); process.Start(); process.Close(); started = true; }
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); }