Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 653
tavalendo Avatar asked Jan 24 '18 13:01

tavalendo


1 Answers

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.

like image 180
the kamilz Avatar answered Sep 20 '22 14:09

the kamilz