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?