how can i convert a video into image files using ffmpeg in c#?
Posted
by moon
on Stack Overflow
See other posts from Stack Overflow
or by moon
Published on 2010-05-18T12:10:32Z
Indexed on
2010/06/14
8:02 UTC
Read the original article
Hit count: 270
c#
string inputpath = strFileNamePath;
string outputpath = "C:\\Image\\";
//for (int iIndex = 0; iIndex < 1000; iIndex++)
//{
//string fileargs = "-i" + " " + inputpath + " -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv " + outputpath + "SRT.flv";
string fileargs = "-i" + " " + inputpath + " " + outputpath + "image.jpg";
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "C:\\Documents and Settings\\Badr\\My Documents\\Visual Studio 2008\\Projects\\Video2image2video.\\ffmpeg\\ffmpeg.exe";
p.StartInfo.Arguments = fileargs;
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.Start();
i have this code this creates only 1 image of video i apply a loop but i repeatedly generates the initial image how can i get images of all the video
thanx in advance
© Stack Overflow or respective owner