简体   繁体   中英

Extract every frame form a variable-frame-rate video with ffmpeg

I'm trying to extract all the frames on several videos. Those videos were captured on a camera that saves the output with a variable frame rate , thus, some frames are closer together in time than others (from ~27 to ~30 fps according to mediainfo )

This frames are to be synchronized with some metadata, so I not only need to extract them but also keep the information of the [relative] time each frame of the video has been shot.

I've been using ffmpeg to extract video frames, the challenge comes when the video frame rate is not constant any more. Any other method or program different than ffmpeg is ok as far as it can get the job done.

您可以使用ffprobe显示每个“数据包”的演示时间戳(PTS)

ffprobe -show_entries packet=pts_time,duration_time,stream_index file.mp4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM