5

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
tavalendo
  • 857
  • 2
  • 11
  • 30

1 Answers1

5

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.

the kamilz
  • 1,860
  • 1
  • 15
  • 19
  • 1
    shouldn't it come automatically if one installs ffmpeg from conda or brew? – tavalendo Jan 25 '18 at 14:56
  • 1
    yes it should, if you compiled from source you can check manually source code: libavformat/img2enc.c between line 211 to 218 should be include line: `{ "frame_pts", "use current frame pts for filename", OFFSET(frame_pts), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, ENC }` – the kamilz Jan 25 '18 at 15:00
  • Thank you. Will have a look at it. – tavalendo Jan 25 '18 at 15:05