VLC: set playback cache size (#461299)
I'm having intermitten stutters during audio playback in elisa.
Given that i have already fully tuned Pipewire,
and not seeing anything in pw-top
, the problem is likely in elisa.
From $ vlc --help --advanced --full-help --longhelp --help-verbose
:
Advanced:
--file-caching <integer [0 .. 60000]>
File caching (ms)
Caching value for local files, in milliseconds.
--live-caching <integer [0 .. 60000]>
Live capture caching (ms)
Caching value for cameras and microphones, in milliseconds.
--disc-caching <integer [0 .. 60000]>
Disc caching (ms)
Caching value for optical media, in milliseconds.
--network-caching <integer [0 .. 60000]>
Network caching (ms)
Caching value for network resources, in milliseconds.
As far as i can tell, these are the only knobs that control the amount of playback that is prepared ahead of time. They default to 1000ms: https://github.com/videolan/vlc/blob/ad2784dfe7187ef3dad4c5f6d383bf36245803a7/src/libvlc-module.c#L1950
There's also Stream prefetch filter
, but it does nothing
for local file playback: https://github.com/videolan/vlc/blob/36017f9c3a8524ac45d882b26f56aea439878818/modules/stream_filter/prefetch.c#L429-L438
I'm going to make an assumption here: i believe the most common use-case for elisa is to start something, and let it play, without jumping around. Given that, i think this default is unreasonable.
I would like to propose to change it somewhat. In my limited testing, this does lead to less audiable issues.