mpv stepping through frames
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.
Related videos on Youtube
user001
Updated on September 18, 2022Comments
-
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 usingffmpeg
withlibx264
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 thanmpv
in this regard).-
Ipor Sircer over 7 yearsFill a bugreport: mpv.io/bug-reports
-
student almost 7 years
-
-
xhienne over 7 yearsAre you suggesting a Windows software to a Unix user?
-
Belzonsci Belzonsci over 7 yearsOh, so sorry, I do not know whether this software is supported on Unix.
-
xhienne over 7 yearsAt least this is what suggests the download link on the page you gave: exe file "compatible with Windows"
-
trr over 2 yearsThat'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 over 2 yearsThanks. 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.