[FFmpeg-user] extract RAW frames into local directory from network camera

Michael Koch astroelectronic at t-online.de
Thu Sep 21 12:54:57 EEST 2023

Am 20.09.2023 um 16:50 schrieb Naveen.B:
> Hello,
> Thanks for the sharing the useful links,
> I tried the way you said, but I am not sure whats happening, I don't see
> anything happening after executing the command (neither it saves the jpg
> files in the current path), I need to kill the process in later stage and I
> get the below error,
> C:\ffmpeg-6.0\bin>ffmpeg -i rtsp:// test.jpg

If you want to extract more than one picture, then the output filename 
should contain a number that's automatically increased.
For example:

ffmpeg -i rtsp:// -t 5 -y test%4d.jpg

%4d is a 4-digit number that's automatically increased.
If you are starting FFmpeg from a Windows batch file, then % must be replaced by %%
-t 5 does limit the duration to 5 seconds.
-y does automatically overwrite the output files, if they exist already.


More information about the ffmpeg-user mailing list