You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should open the last frame in the video with my standard image viewer.
Actual
Raises an av.error.EOFError and crashes
Does anyone know how to fix that problem? Ffmpeg extracts the last frame without problems if you run ffmpeg -i testsrc.mp4 -vf "select=eq(n\,749)" -vframes 1 testsrc.png
Update
The problem is caused by bframes in the video. Turning them off fixes the index in the for loop:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Problem description:
Create a test video with ffmpeg. I use version 6.1.1-3ubuntu5:
Check the total number of frames with pyav version 14.0.1:
It should print 750.
Try to extract the last frame in that video which should be at index 749:
Expected
It should open the last frame in the video with my standard image viewer.
Actual
Raises an av.error.EOFError and crashes
Does anyone know how to fix that problem? Ffmpeg extracts the last frame without problems if you run
ffmpeg -i testsrc.mp4 -vf "select=eq(n\,749)" -vframes 1 testsrc.png
Update
The problem is caused by bframes in the video. Turning them off fixes the index in the for loop:
Beta Was this translation helpful? Give feedback.
All reactions