[FFmpeg-user] How to output real frame number instead of sequentially added image numbers

bernard vrh bernard.vrh at gmail.com
Tue Jan 22 09:56:00 CET 2013


How to output real frame number instead of sequentially added image numbers

Hello,

I trying to generate scene change keyframes from input video file.

Using   %d.jpeg   output a series of jpeg frames as images named in
sequential order.. and such labeled images (keyframes) do not
representing real time code or reflecting time position of keyframe
images in input video clip.

the only parameter which works is %d

My example:

ffmpeg  -i "C:\myfilename.avi"  -vf select="eq(pict_type\,I)" -vsync 2
-s 200x112  -f image2  "D:\myoutput_frames\%d.jpeg"

Please suggest which parameter should be used instead of  %d  to
output video time code stamp  or video frame number,  zero or one
based relative to input video clip.


Kind regards,

Bernard


More information about the ffmpeg-user mailing list