Using FFmpeg, I converted the video (mpeg2) to jpgs, redirecting the output to standard output.
StringBuilder str = new StringBuilder();
str.Append(string.Format(" -i {0}", myinputFile));
str.Append(string.Format(" -r {0}", myframeRate);
str.Append(" -f image2pipe");
str.Append(" pipe:1");
return str.ToString();
I can get a callback from a process with data:
_ffmpegProc.OutputDataReceived += new DataReceivedEventHandler(_ffmpegProc_OutputDataReceived);
But how can I save this back to jpg files ?, I need to know the size of each jpg, but I cannot figure out how to do it.
Thank.
source
share