mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Buffering/stopping for a second or two in local video playback

Open random-rando opened this issue 1 year ago • 2 comments

Important Information

  • mpv 0.36
  • Void linux kernel 6.6.11_1
  • Shipped by distro
  • Xfce/xfwm 4.18
  • Intel i3 7020u Intel hd 620 Mesa 23.3.2

Expected behavior

Video play smoothly

Actual behavior

Video "stutters/stops" every once in a while for a second and then starts playing happens every 30-40 seconds or so

I think the problem is because of my slow hdd (70mb/sec). Doesn't happen when the videos are on ssd but ssd is small so I can't have all videos there.

Is there any way I can get rid of that? :/

Log file

log.txt

random-rando avatar Feb 10 '24 06:02 random-rando

By default for local files only 1s ahead is cached. If you storage is not able to keep up you can try different caching options.

For starters you can try big-cache example profile form manual which sets

cache=yes
demuxer-max-bytes=123400KiB
demuxer-readahead-secs=20

You can read in manual about those option to better understand how to tune them. But this should be enough to smooth any slowdowns that occurs.

kasper93 avatar Feb 10 '24 07:02 kasper93

Also note that 0.36 is outdated and unsupported.

sfan5 avatar Feb 10 '24 10:02 sfan5

sry for no response

adding cache fixed it

By default for local files only 1s ahead is cached. If you storage is not able to keep up you can try different caching options.

For starters you can try big-cache example profile form manual which sets

cache=yes
demuxer-max-bytes=123400KiB
demuxer-readahead-secs=20

You can read in manual about those option to better understand how to tune them. But this should be enough to smooth any slowdowns that occurs.

random-rando avatar Feb 29 '24 19:02 random-rando