I am using the following code to convert a video to an image:
ffmpeg -i foo.avi -r 1 -s 640x480 -f image2 foo-%03d.jpeg
However when I use it in my c program the % is causing problems even if I escape it. Is there any way to do it without the %. Also what exactly does the % mean in the above program?
%03dmeans 3-digit numbers padded with zeroes: 001, 002 ... Sorry, are you runningffmpegcommand line from within ac? – Art Shayderov Jul 29 '12 at 12:25