This might be related to timing. I'm just saying what I concluded from
looking at debug before; when I looked at it more recently, it wasn't
obvious which error messages related to audio were relevant or I didn't
look at enough of the debug output.

If a video is decoded quickly, audio won't stop playing. If it takes too
long, there is an error message in debug and audio will stop working. So
the way to replicate it, as suggested by the duplicate bug report, is to
seek to the end of a long group-of-pictures in a video, just before a
keyframe.

While switching to ALSA audio output does prevent the problem, it seems
to me that there is a small amount of static as audio starts playing
again if using the PulseAudio Sound Server as ALSA's output.

If using a hardware device, VLC can play files fine by itself, but
conflicts with other attempts to use the output device. So if you leave
VLC open, and try to play a web video, the video will freeze after a few
seconds because it's waiting for audio to start. For me at least, when I
start playing a Flash video in Firefox, in my Sound settings (Ubuntu),
'ALSA plug-in [plugin-container' starts up. Similarly, if Flash is
already using the audio, VLC will give an error message in the UI
("device busy") and audio won't play.


I don't notice this burst of static when just using Pulseaudio as output, but 
it has problems with seeking as described in this bug report.

I also only encountered this problem after upgrading, though for me it
was from Ubuntu 12.04 to 14.10 and I'm not sure what my VLC settings
were before, probably just default. I don't get stuttering, the audio
just turns off, and only turns back on if another attempt to seek within
the video is successful.


The workaround is to pause the video just before seeking, and only start 
playing again once the video decoder has finished or almost finished catching 
up. But this isn't at all obvious; at first I thought that losing audio was due 
to problems with handling the VP9 or WebM codecs/formats.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1319233

Title:
  audio stutters or stops playing after seeking

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/1319233/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to