-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frame-back-step stops working after a few frames (when opening smb:// url) #13649
Comments
I think I found the reason: Because my original issue was with an SD VHS recording as FFV1/PCM/MKV (720x576@25i, gopsize=1), but the synthetic It seems that the player runs out of cache (drops to
So I tried setting my cache values higher in
Higher demuxer cache values don't completely fix the freeze, but it seems that when waiting for the cache to have pre-loaded, frame-back-step works "longer". But: With all cache options, sooner or later it gets stuck on |
Sorry: forgot the logfile! |
We've found the pattern! 😄 If there is no cache before the playback position: freeze problem. I've consulted Is there any option to "force" starting to cache data before the playback position? As far as I understood the docs, "demuxer-max-back-bytes" only keeps existing cache before the playback position - but cannot be used to pre-read it when jumping directly to a certain offset. |
Maybe this setting will help? |
@KaFu74 : Was hoping the same, but unfortunately not. Quote from
Since demuxer-max-back-bytes only allows to keep bytes cached - but does not initialize loading the cache "starting before the current playback position". |
Important Information
Provide following Information:
libsmbclient
support manually enabled)Reproduction steps
Open a videofile from a Samba (CIFS) share, using the "smb://" URL prefix:
$ mpv --no-config smb://guest@hostname/share/folder
Seek to a position far enough, so you could frame-seek backwards for at least a minute or so.
Now use "," to seek backwards 1 frame:
Hold "," until the video stops rewinding
Now neither "," nor "." has any effect anymore. The player seems "stuck".
However, pressing left/right arrow keys, or seeking manually (clicking) to any other position works.
After this "re-seeking", frame-seeking (,.) works again.
Until seeking back again (=repeat step 2).
Expected behavior
The same as opening the same video file directly from the local filesystem:
Use frame-seeking back-and-forth without the player getting stuck.
Actual behavior
The player gets stuck, so that frame-seeking seems disabled/broken - until re-setting the player's playback position in any other way (keyboard or GUI).
Sample files
I've generated one (i-frames only to avoid GOP causing the issue), using
ffmpeg
:ffmpeg -f lavfi -i testsrc=size=1920x1080 -t 300 -r 25 -pix_fmt yuv422p10le -c:v ffv1 -level 3 -an test.mkv
The text was updated successfully, but these errors were encountered: