Search code examples
ffmpegvideo-encodingkeyframevideo-compression

ffmpeg returns 'frame_pts' as unrecognized option


Earlier today I posted a question about frame extration with keyframes per encoding order (here) and I tried to run the command provided in one of the answers but ffmpeg returns:

Unrecognized option 'frame_pts'.

Error splitting the argument list: Option not found

Any clue how to make ffmpeg to recognize 'frame_pts' option? The full command that I ran is:

ffmpeg -i input.mp4 "select='eq(pict_type\,I)" -vsync 0 -frame_pts 1 thumbnails-%02d-I.png

Solution

  • According to ffmpeg github information, frame_pts option is added 2 months ago: https://github.com/FFmpeg/FFmpeg/commit/f3e34072aadf20be60c0fae38cbe14ad4581c6a5

    Perhaps you should update and/or make sure your version of ffmpeg and libavformat (includes img2enc module that you need) is latest version. And there is also example lines in the link.

    Hope that helps.