[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:12:37 EEST 2020


Hi everyone,

I am trying yo select select the very starting frame of every second on a
live input video. Input is a .ts file. I have a command to select the 0th
frame of every second on a non-live video. 

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

 But this is useless for me, as I want to work on live feed. 

I have tried another command also i.e

ffmpeg -i INPUT.ts -vf
"select='if(not(floor(mod(t,1)))*lt(ld(1),1),st(1,1)+st(2,n)+st(3,t));if(eq(ld(1),1)*lt(n,ld(2)+1),1,if(trunc(t-ld(3)),st(1,0)))'"
-vsync 0 out%d.png 

The above command extracting the frames but they are not in the correct
order as per the time. I have ran the command on TCR time code video to
check whether the frames are in sync.

Can anyone help me on this?

Regards,




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


More information about the ffmpeg-user mailing list