Watching videos with jack and dealing with latency

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
User avatar
sysrqer
Established Member
Posts: 2519
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Watching videos with jack and dealing with latency

Post by sysrqer »

If i have jack running and watch a video then the audio is out of sync with the picture. I assume this is the buffer size and I have noticed that lowering that reduces the latency but is there a way to fix this such as delaying all video by the jack buffer size? I don't really want to change the buffer size constantly but I want to have jack running all the time. I can adjust the sync in kodi and vlc but it's a pain to do this for every video.
User avatar
Linuxmusician01
Established Member
Posts: 1523
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland
Has thanked: 756 times
Been thanked: 134 times

Re: Watching videos with jack and dealing with latency

Post by Linuxmusician01 »

sysrqer wrote:[...]I can adjust the sync in kodi and vlc but it's a pain to do this for every video.
If I'm not mistaken then you can set that as default for all video's in Kodi.
crocket
Established Member
Posts: 68
Joined: Fri Mar 29, 2019 11:56 am

Re: Watching videos with jack and dealing with latency

Post by crocket »

You can create a system service that runs jackd as your normal user. jackd can run as a background service on my computer.

jackd -P 90 -d alsa -p 256 -n 2 -r 48000 -c 2
Post Reply