[FFmpeg-user] How can I recode the movie in a way that I can step forward frame by frame?

Andy Furniss adf.lists at gmail.com
Sun Oct 22 17:14:25 EEST 2017


Andy Furniss wrote:
> Andy Furniss wrote:
>> LaHu wrote:
>>> I assume the movie is encoded using IPB frames. Thus I can't step 
>>> from any frame to the previous/next frame but from I-frames to 
>>> I-frames only.
>>
>> This is not true, mpv can step OK with IPB, it can also field step if 
>> you are de-interlacing.
> 
> Hmm, testing mpv more that I did initially - it doesn't always work 
> going backwards on h264, it will do it - but not reliably.

It seems my fail case was due to being m2ts, ts is the same.

If I just remux the ts to mkv then I can step backwards OK with mpv.

ffmpeg -i in.ts -c copy out.mkv

No re-encoding needed, so this will be fast and lossless.

Depending on what audio/subs you need the above may need adapting.


More information about the ffmpeg-user mailing list