[FFmpeg-user] How to extract the very starting frame for every second on a live videi input?

Ramana ramanajajula9 at gmail.com
Mon Apr 13 16:29:26 EEST 2020


Hi Carl,

Thanks for your response.

I don't know, it is extracting the more and more number of frames, I have
scheduled the live input feed as 1 hour video for 24x7. currently I am using
the ffmpeg -i input.ts -vf fps=1 output_%d.jpg  command to extract the
frames for every second. 

When I compared the extracted frames for example with the 1800th frame(It is
supposed to at 30th min zero-th frame). But actual frame is extracted at
30th min 12th frame. Not only for 1800th frame. Every frame is extracting at
12th frame for every second. To overcome this, I used the below command.

ffmpeg -i INPUT.ts -vf "select=between(mod(n\, 25)\, 0\, 0), setpts=N/24/TB"
output-%04d.jpg 

The above command is extracting the zero-th frame on every second total
number of extracted frames are 3600. But, it is not working on live feed.

It is extracting almost 100000 frames per hour when I run it on live feed.

I don't know the exact reason for this. 

 
 





--
Sent from: http://www.ffmpeg-archive.org/


More information about the ffmpeg-user mailing list