Audio and video go out of sync with HDMI capture

*nix specific usage questions
Jason_25
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Dec 2010 01:12

Audio and video go out of sync with HDMI capture

Postby Jason_25 » 22 Aug 2023 14:00

I am using this command to capture audio and video:

Code: Select all

cvlc v4l2:///dev/video0 --v4l2-chroma=MJPG --input-slave=alsa://hw:2,0 --alsa-audio-device=default --aout=alsa
Eventually the audio and video lose synchronization with each other and are even off by several seconds sometimes. I have tried setting caches to zero already for instance with no change. I have since reverted to a default VLC configuration.

What could I do to fix this?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Audio and video go out of sync with HDMI capture

Postby Rémi Denis-Courmont » 22 Aug 2023 17:58

VLC is just passing the timestamp from V4L2, and deducting the reported ALSA latency from current time.

If it drifts, then one of your device driver is probably reporting corrupt timings.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Jason_25
Blank Cone
Blank Cone
Posts: 19
Joined: 20 Dec 2010 01:12

Re: Audio and video go out of sync with HDMI capture

Postby Jason_25 » 23 Aug 2023 00:25

Thanks for your time. It seems that the Fire Stick, connected by HDMI, needed to be rebooted. It was basically the last thing I tried before giving up.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests