I have converted image from live stream using ffmpeg -i rtsp:///main.mp4 -an -r 1 -y -s 320x240 video%d.jpg.Using this I obtain continous jpeg images. Is there any way to generate only one image and overwrite that image after each frame using ffmpeg?
Another thing,I am using ffmpeg on windows.When i type ffmpeg.exe in command line it displays ffmpeg version message and configuration message, how can i stop display of these messages on command line?
[nayan kapadia]"Is there any way to generate only one image and overwrite that image after each frame using ffmpeg?"
Do not use the "%d" in the image name. This is what creates sequential image numbers.
The "-y" flag will overwrite the previous image which you are using. Try putting it just before the output filename.
I cannot think of a way to do what you need within FFmpeg but it could be easily solved writing a shell script.
The command that produces the single frame takes less than a second on my setup. Seeing that you have specified the rate to be 1fps for pulling the frames, you could write a script that calls the same command from FFmpeg every second overwriting the previous frame and thus producing the desired result.
"half-way to world domination A.K.A. the belligerent blue bike shed"