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

Naveen.B navins.2006 at gmail.com
Fri Sep 22 15:26:31 EEST 2023


> 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://192.168.9.78:5004 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://192.168.9.78:5004 -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.

It's working as expected, Thanks a lot for your support, Michael!

Regards,


On Thu, Sep 21, 2023 at 11:57 AM Michael Koch <astroelectronic at t-online.de>
wrote:

> 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://192.168.9.78:5004 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://192.168.9.78:5004 -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.
>
> Michael
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list