Problem solved, it’s the audio buffer’s problem. Increase the audio buffer would help. Different version of VLC player have differnt way to adjust the audio buffer, for 3.1.20 you has to go to command line to adjust the files. In case of linux, the file should at /etc in a folder of “pipewire”, the folder can be differnt due to different output modual you use, recommended is ALSA which use pipewire in background. Then there should be a .conf file in there, change the content to something like this:
context.properties = {
link.max-buffers = 128 # Increase max-buffers for more buffering <— increases from 64 to 128
default.clock.min-quantum = 2048 # Optionally increase quantum size
}
context.objects = [
{ factory = adapter
args = {
factory.name = api.alsa.pcm.source
node.name = “alsa-source”
node.description = “PCM Source”
media.class = “Audio/Source”
api.alsa.path = “hw:0”
api.alsa.period-size = 2048 # Increase period size for more buffering <– doubled
api.alsa.headroom = 2048 # Increase headroom accordingly <– doubled
api.alsa.disable-mmap = false
api.alsa.disable-batch = false
audio.format = “S16LE”
audio.rate = 48000
audio.channels = 2
audio.position = “FL,FR”
}
}
{ factory = adapter
args = {
factory.name = api.alsa.pcm.sink
node.name = “alsa-sink”
node.description = “PCM Sink”
media.class = “Audio/Sink”
api.alsa.path = “hw:0”
api.alsa.period-size = 2048 # Increase period size for more buffering <– doubled
api.alsa.headroom = 2048 # Increase headroom accordingly <– doubled
api.alsa.disable-mmap = false
api.alsa.disable-batch = false
audio.format = “S16LE”
audio.rate = 48000
audio.channels = 2
audio.position = “FL,FR”
}
}
]
Statistics: Posted by Apex — 20 May 2024 10:12