Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

VLC audio latency #1113

Open
1 of 2 tasks
fredmo opened this issue Sep 19, 2023 · 3 comments
Open
1 of 2 tasks

VLC audio latency #1113

fredmo opened this issue Sep 19, 2023 · 3 comments

Comments

@fredmo
Copy link

fredmo commented Sep 19, 2023

Windows Version

10.0.22621.2283

WSL Version

Version WSL : 2.0.0.0 Version du noyau : 5.15.123.1-1 Version WSLg : 1.0.57 Version MSRDC : 1.2.4485 Version direct3D : 1.608.2-61064218 Version de DXCore : 10.0.25880.1000-230602-1350.main

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

No response

Repro Steps

By running vlc from WSL2 with the command :
vlc file.mp3

I heard the audio but a lot of micro cut.
1 second of audio / 1-second blank...

It's very bad, could you improve?

It's not reproduced by running vlc windows directly,
but I need to use the version WSL2/Linux

Expected Behavior

Audio without latency

Actual Behavior

audio/cut/audio/cut/...

Diagnostic Logs

No response

@fredmo
Copy link
Author

fredmo commented Sep 19, 2023

vlc -v file.mp3

VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055914ffdd260] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005591500ad4d0] pulse audio output warning: starting late (-277765 us)
[00005591500ad4d0] main audio output warning: playback too early (-54811): down-sampling
[00005591500ad4d0] main audio output warning: playback too late (62643): up-sampling
[00005591500ad4d0] main audio output warning: timing screwed (drift: 127054 us): stopping resampling
[00005591500ad4d0] main audio output warning: playback too late (127155): up-sampling
[00005591500ad4d0] main audio output warning: playback way too late (307069): flushing buffers
[00005591500ad4d0] pulse audio output warning: starting late (-17742 us)
[00005591500ad4d0] main audio output warning: playback way too late (2837238747500277054): flushing buffers
[00005591500ad4d0] main audio output warning: playback way too early (-344273): playing silence
[00005591500ad4d0] main audio output warning: playback way too early (-402859): playing silence
[00005591500ad4d0] main audio output warning: playback too late (65283): up-sampling
[00005591500ad4d0] main audio output warning: timing screwed (drift: 134853 us): stopping resampling
[00005591500ad4d0] main audio output warning: playback too late (138887): up-sampling
[00005591500ad4d0] main audio output warning: playback way too late (185121): flushing buffers
[00005591500ad4d0] main audio output warning: playback way too early (-454439): playing silence
[00005591500ad4d0] main audio output warning: playback way too early (-185138): playing silence
[00005591500ad4d0] main audio output warning: playback too late (62967): up-sampling
[00005591500ad4d0] main audio output warning: timing screwed (drift: 134256 us): stopping resampling
[00005591500ad4d0] main audio output warning: playback too late (138897): up-sampling
[00005591500ad4d0] main audio output warning: playback way too late (180416): flushing buffers
[00005591500ad4d0] pulse audio output warning: starting late (-19199 us)
[00005591500ad4d0] main audio output warning: playback way too late (3553555034893245549): flushing buffers
[00005591500ad4d0] pulse audio output warning: starting late (-19198 us)
[00005591500ad4d0] main audio output warning: playback way too late (3553555034893246476): flushing buffers
[00005591500ad4d0] main audio output warning: playback way too early (-688356): playing silence
[00005591500ad4d0] main audio output warning: playback too late (69069): up-sampling
[00005591500ad4d0] main audio output warning: timing screwed (drift: 139992 us): stopping resampling
[00005591500ad4d0] main audio output warning: playback too late (140205): up-sampling
[00005591500ad4d0] main audio output warning: playback way too late (184720): flushing buffers
[00005591500ad4d0] pulse audio output warning: starting late (-6319 us)
[00005591500ad4d0] main audio output warning: playback way too early (-427052): playing silence
[00005591500ad4d0] main audio output warning: playback way too early (-209088): playing silence
[00005591500ad4d0] main audio output warning: playback too late (60773): up-sampling
[00005591500ad4d0] main audio output warning: timing screwed (drift: 128376 us): stopping resampling
[00005591500ad4d0] main audio output warning: playback too late (128802): up-sampling
[00005591500ad4d0] main audio output warning: playback way too late (181962): flushing buffers
[00005591500ad4d0] main audio output warning: playback way too early (-436153): playing silence
[00005591500ad4d0] main audio output warning: playback way too early (-204028): playing silence
[00005591500ad4d0] main audio output warning: playback too late (62429): up-sampling
[00005591500ad4d0] main audio output warning: timing screwed (drift: 129686 us): stopping resampling
[00005591500ad4d0] main audio output warning: playback too late (133308): up-sampling
[00005591500ad4d0] main audio output warning: playback way too late (189596): flushing buffers
[00005591500ad4d0] pulse audio output warning: starting late (-8612 us)
[00005591500ad4d0] main audio output warning: playback way too early (-447875): playing silence
[00005591500ad4d0] main audio output warning: playback way too early (-207813): playing silence

@benhillis benhillis transferred this issue from microsoft/WSL Sep 19, 2023
@fredmo
Copy link
Author

fredmo commented Sep 19, 2023

solved with vlc 4.0 daily build

sudo add-apt-repository ppa:videolan/master-daily
sudo apt update
sudo apt upgrade

@fredmo
Copy link
Author

fredmo commented Sep 28, 2023

or the other workaround in the vlc setting ( with the 3.0.16 ) is to disable the option audio "time-stretching audio"

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants