I was now able to reproduce this. For me this doesn't seem to happen 100% of the time (I test by running "vlc ~/misc/sync_test.mp4", observing the A/V sync, closing vlc, waiting for the sink to suspend, and trying again). The small hardware buffer size that I have (371 ms) might make noticing the delay harder, if the delay is variable, but if it's always one full hw buffer size in length, then I should be able to reliably notice it... I'll build a custom kernel next with a bigger audio buffer, and see if that changes anything.
Btw, Remi, you said that "this affects all VLC versions [...] with PulseAudio 2.x." Do you mean that this doesn't affect 3.0? -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1069232 Title: Sound lags when opening video files Status in PulseAudio sound server: Fix Released Status in VLC media player: Invalid Status in “pulseaudio” package in Ubuntu: Confirmed Status in “vlc” package in Ubuntu: Invalid Bug description: When I open any video file from Nautilus or from VLC I see that video starts but there is no sound. It takes a few seconds and the sound appears, but since the beginning of the audio track. So video and sound are out of sync. The workaround is to rewind the video at the beginning by using the slider. ProblemType: Bug DistroRelease: Ubuntu 12.10 Package: vlc-nox 2.0.4-0ubuntu1 ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7 Uname: Linux 3.5.0-18-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.6.1-0ubuntu4 Architecture: amd64 Date: Sun Oct 21 01:33:08 2012 ExecutablePath: /usr/bin/vlc InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121006) MarkForUpload: True ProcEnviron: LANGUAGE=ru_UA:ru PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=ru_UA.UTF-8 SHELL=/bin/bash SourcePackage: vlc UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/pulseaudio/+bug/1069232/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

