[FFmpeg-user] FFMPEG RTSP stream problem

Adam Nielsen a.nielsen at shikadi.net
Fri Apr 8 06:45:06 EEST 2022


> I have an RTSP stream which framerate is 1/16, which means every 16 sec 
> a frame is transported through RTSP. This framerate is because of a 
> special purpose, cannot and want not to change it.
> 
> What i want is to save every frame of this video as single JPEG image on 
> my server (Linux). Here the full command, which is working in bash script:

This looks like an ONVIF camera.  Most of these offer screenshots in
JPEG format, so you can use curl or wget to download a single frame as
a .jpg when you need it.

Is there a reason why you don't want to use the screenshot URL?

> its waiting about 2 minutes. But don't know why?
>    libswscale      4.  8.100 /  4.  8.100
>    libswresample   2.  9.100 /  2.  9.100
>    libpostproc    54.  7.100 / 54.  7.100
> 
> And after that its finishing with the following lines:
> 
> Input #0, rtsp, from 

It looks like it might be trying to probe the input to figure out what
format it's in, since you can stream multiple codecs over RTSP.

You could try messing with the -probesize option, but I'd only do this
if there's some reason why the screenshot URL is unusable.

Cheers,
Adam.


More information about the ffmpeg-user mailing list