mpv stepping through frames

15,526

That seems to be a codec problem. From https://github.com/mpv-player/mpv/issues/4019:

Most common video codecs (H.264 etc.) can only be decoded efficiently in forward direction. Without keeping all frames since the last keyframe in memory (which is an indefinite number), you cannot framestep backward smoothly.

According to that bug-report choosing the mjpeg codec should be faster, but I cannot confirm this.

Share:
15,526

Related videos on Youtube

user001
Author by

user001

Updated on September 18, 2022

Comments

  • user001
    user001 almost 2 years

    When using mpv to step through frames (. for stepping forward and , for stepping backward), the forward stepping rate is much faster than the backward stepping rate. The forward rate is about the same as the video frame rate (60fps for the video in question, which is an mp4 file prepared from a set of png images using ffmpeg with libx264 encoding) whereas the reverse stepping rate is about 1fps. Is there any way to control the stepping rates? Why would the forward/backward rates be so asymmetric? If an alternative video player is available for linux systems that supports variable (or at least equally fast) video frame stepping, please advise (mplayer is not better than mpv in this regard).

  • xhienne
    xhienne over 7 years
    Are you suggesting a Windows software to a Unix user?
  • Belzonsci Belzonsci
    Belzonsci Belzonsci over 7 years
    Oh, so sorry, I do not know whether this software is supported on Unix.
  • xhienne
    xhienne over 7 years
    At least this is what suggests the download link on the page you gave: exe file "compatible with Windows"
  • trr
    trr over 2 years
    That's true about mjpeg, but if you have the luxury of choice there are better intra-only codecs if you want fast frame stepping. This is the reason why codecs like ProRes exist, but if you want something more free and open, h.264 can be made to be intra-only by setting it as an encoding setting or using an intra profile, making it more suitable as an intermediate format for editing. Won't be efficient for distribution though - gaining efficiency means losing fast framestepping.
  • student
    student over 2 years
    Thanks. Maybe you could convert this comment to another answer. If you want, it would be great if you could include an example of how to convert a video using ffmpeg to h.264 with intra-only setting.