html5 ogg media does not resume reliably after buffering

Bug #450684 reported by Darren Thiessen
88
This bug affects 16 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Fix Released
Medium
firefox (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: firefox-3.5

If I try to play a ogg theora video in Firefox 3.5.3 it usually (9 times out of 10) pauses due to buffering but never properly resumes playing...even if the video finishes downloading. Hitting the pause/play button or seeking to another position has no effect. I have tried multiple videos from different sites around the web all with the same issue. I am using Karmic now but had the same problem in Jaunty. I tried to reproduce this bug in windows (firefox 3.5) but video playback worked flawlessly. I also tried chromium which had no issue with buffering, pausing, or seeking to a different spot in the video.

Other Info

Description: Ubuntu karmic (development branch)
Release: 9.10

firefox-3.5:
  Installed: 3.5.3+build1+nobinonly-0ubuntu3
  Candidate: 3.5.3+build1+nobinonly-0ubuntu3
  Version table:
 *** 3.5.3+build1+nobinonly-0ubuntu3 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
Date: Tue Oct 13 13:48:50 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: firefox (not installed)
ProcEnviron:
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-13.45-generic
SourcePackage: firefox-3.5
Uname: Linux 2.6.31-13-generic i686

Revision history for this message
Darren Thiessen (pilotman) wrote :
Revision history for this message
In , Blizzard (blizzard) wrote :

This appears to be linux-specific. Can't reproduce on Win 7.

Run a 3.6 nightly and loading the URL above it will start playing when the page loads, but if you pause and restart it a few times it will eventually stop playing once you unpause. Sometimes it's one click, sometimes it's three.

Running this on Fedora 11. Will check for a regression from 3.5.

Revision history for this message
In , Blizzard (blizzard) wrote :

Affects 3.5 on Fedora 11 as well.

Revision history for this message
In , Chris Double (doublec) wrote :

Possibly related to bug 525401?

Revision history for this message
In , Gustav Hartvigsson (gustav-hartvigsson) wrote :

same:
Mozilla Firefox 3.5.5 on Ubuntu GNU/Linux 9.10 x86_64

any additional info needed?

Revision history for this message
In , Rogutes-gmail (rogutes-gmail) wrote :

It happens every time I toggle a playing video. Press play, press pause - video is stuck. Otherwise, videos play/seek perfectly.

By 'stuck' I mean that UI (controls) is responsive, but there is no reaction from video/audio.

When the video is stuck, I can issue .load() and it successfully restarts from the beginning. Choosing 'Full Screen' from the context menu helps as well - video resumes (but pressing pause, play makes it stuck again).

I'm on Linux x86_64, have reproduced this with Firefox 3.5.5 and a current (Nov 18) 3.6b4pre nightly. Funny, but I can't reproduce this on Firefox launched through X11 Forwarding (ssh).

It happens with any video I choose (even videos in local disk, referenced via src="file://..."), e.g.:
http://videos.mozilla.org/firefox/3.5/meet/meet.ogv
http://tinyvid.tv/show/yulvgbtf3kdu

Revision history for this message
In , Sandro Mani (sandromani) wrote :

Same here on fedora 12 Firefox 3.6 Beta 3, experiencing the problem with audio (haven't tested with video): as soon as I pause a track, it will never resume playback on play, neither via the default controls nor via javascript.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

*** Bug 530623 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

I'm not sure if this is related to bug 525401, but I've pushed a potential fix for that bug to the try server. You can get a copy of the build to test with from https://<email address hidden>/

Revision history for this message
In , j^ (j) wrote :

(In reply to comment #7)
> https://<email address hidden>/
does not change anything here, local files will still not play again after pressing pause the first time.

Revision history for this message
In , Chris Double (doublec) wrote :

*** Bug 533562 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Gervase Markham (gerv-mozilla) wrote :

*** Bug 527450 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Gervase Markham (gerv-mozilla) wrote :

Doesn't our test plan include pausing and playing? Given that blizzard can repro it on his machine on 3.5, and also trunk, how did we ship 3.5 with a bug this big? :-((

Anything I can do to help debug it?

Gerv

Revision history for this message
In , Chris-pearce (chris-pearce) wrote :

(In reply to comment #11)
> Doesn't our test plan include pausing and playing? Given that blizzard can
> repro it on his machine on 3.5, and also trunk, how did we ship 3.5 with a bug
> this big? :-((

If this is an audio underrun, the reason our tests don't pick this up is because the tinderbox test machines don't have audio, they do timing off the system clock and so audio underruns can't happen.

Revision history for this message
In , Chris Double (doublec) wrote :

It's also dependent on what audio system they're using. I'm not using PulseAudio on my Linux system and it works fine for me.

Revision history for this message
In , Blizzard (blizzard) wrote :

Note that I have been able to reproduce this on Windows, although it's very rare.

Revision history for this message
In , Blizzard (blizzard) wrote :

This video plays for me every 4-5 page loads on windows. It probably does the pause/buffer/play pattern and might be this bug:

http://openvideo.dailymotion.com/video/xbf2rl_branson-unveils-virgin-spaceship_news

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

I looked at the DailyMotion issue a bit. I'm seeing two problems. In one case, the media is failing to load and we fire an error event, but the custom player UI doesn't react to it, so there's no indication of a problem. In the other case, the video loads fine (and we fire canplaythrough, which the player UI uses to trigger playback), but playback never begins.

The first issue is a bug in the custom player UI. I'm not sure what the second issue is yet, so I'll keep looking...

Revision history for this message
In , Gervase Markham (gerv-mozilla) wrote :

CCing dailymotion person. Please note the dailymotion bug referenced in comment #16 :-)

Gerv

Revision history for this message
In , Blizzard (blizzard) wrote :

I sent private mail on this as well. Matthew was looking into it.

Revision history for this message
In , Tanner-sumo-bugs (tanner-sumo-bugs) wrote :

if it matters, I can reproduce on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20091210 Minefield/3.7a1pre ID:20091210031150 too.

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Let's get some record/replay on this next week.

Revision history for this message
Timur I. Davletshin (timur-davletshin) wrote : Re: html5 ogg video does not resume reliably after buffering

The same problem in my case, pisses me off. Unusable feature. Karmic, clean install, i386.

Revision history for this message
Eugene Crosser (crosser) wrote :

I confirm this problem. Builtin html5 Theora player works fine on fast connection or from local files, but on slower connection, when playback point reaches the end of downloaded portion of the file, playback stops and does not resume no matter what.

Revision history for this message
In , Gervase Markham (gerv-mozilla) wrote :

roc: did that record/replay happen?

Gerv

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

No, not yet.

Revision history for this message
In , Jbecerra-mozilla (jbecerra-mozilla) wrote :

*** Bug 540858 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jbecerra-mozilla (jbecerra-mozilla) wrote :

It's going to be a little more visible in the next few days as we launch 3.6 and as we advertise with http://www.mozilla.com/en-US/firefox/comingsoon/ (I see it consistently on Ubuntu machines)

Revision history for this message
In , Hskupin (hskupin) wrote :

Would a video debug log be helpful here?

Revision history for this message
In , Roc-ocallahan (roc-ocallahan) wrote :

Yes.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Looks like another case where we get stuck in the PlayFrame loop. We're waiting for a small amount of audio to play (~7ms in the case I reproduced), but there is no audio left to play on the current frame or buffered in the audio stream, and the audio clock is not advancing.

Revision history for this message
In , Tchung-mozilla (tchung-mozilla) wrote :

*** Bug 541320 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Ria-klaassen (ria-klaassen) wrote :

*** Bug 541816 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Daniël Heres (danielheres) wrote :

Created an attachment (id=423236)
Problematic audio example

It looks like it really is an audio issue

Revision history for this message
In , Kalle-alm (kalle-alm) wrote :

I've tried this on two linux machines (one AMD64, one 32-bit, one Ubuntu 9.10, one Xubuntu 9.10), and they both fail to resume playing an OGG file.

Using a WAV file, it works "much better" but I see the failure to resume there as well, just not at a 100% ratio.

Revision history for this message
In , Blizzard (blizzard) wrote :

Can we get some focus on this? It's a pretty long-standing problem.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

I'm on it.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

The symptoms I'm seeing are these: when resuming playback (after buffering or a user-initiated pause), PlayFrame() expects the audio clock to reach the presentation time of the current frame, so it poll-waits in the loop at http://hg.mozilla.org/mozilla-central/file/c99505cf0eff/content/media/ogg/nsOggDecoder.cpp#l930. The repeated calls to PlayAudio() write any buffered audio we have (on the frame, or stored in mBufferOverflow on the nsAudioStream instance) to be written to the ALSA backend. At this stage, we've written out all of the audio data that we have bufferd, the audio backend is in the "playing" state, and the audio clock never advances to the current frame time.

The problem seems to be that PulseAudio-backed ALSA installations require a minimum amount of buffer filling before playback actually begins (and starts ticking the audio clock), and we're not writing enough audio data out to meet this minimum fill level. Increasing OGGPLAY_AUDIO_OFFSET (e.g. from 250ms to 500ms) or reducing the latency parameter passed to snd_pcm_set_params (from 500ms to 200ms) seems to solve this problem. Reducing the requested latency is probably a good short term fix as it makes some sense that we'd need to write more than 250ms of audio to satisfy a requested buffering/latency target of 500ms. A more correct fix might be to work out if we can query the minimum buffer fill level and ensure that we always write at least that much audio data before expecting the audio clock to resume ticking.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

The fill level is the prebuf field of a pa_buffer_attr struct. The PulseAudio ALSA plugin sets prebuf to buffer_size - period_size. Querying ALSA for the buffer, period, and start threshold sizes at the end of sa_stream_open reveals the following for a stereo 16-bit 48kHz stream:

Period: 6000 (125ms) Buffer: 24000 (500ms) Threshold: 24000 (500ms)

Which would result in prebuf being set to 18000 frames, or 375ms. That's with the existing code. Our current OGGPLAY_AUDIO_OFFSET of 250ms means we usually won't have more than 250ms of audio available ahead of the current video frame. Changing snd_pcm_set_set_params to request 200ms latency reduces the above values to:

Period: 2400 (50ms) Buffer: 9600 (200ms) Threshold: 9600 (200ms)

Which results in a prebuf setting of 7200 frames, or 150ms.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Created an attachment (id=424936)
short term fix v0

This needs more testing before I request review. I've pushed the patch to the try servers, and I'll post a link so that people can test the patch once the builds complete.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

I'm classing comments 14-18 as a different problem, so this bug is Linux specific as far as I'm concerned.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Linux build including this fix is available at:

https://<email address hidden>/try-fa41cf19ba45-linux.tar.bz2

Please test and let me know your feedback.

Revision history for this message
In , j^ (j) wrote :

Tested on 2 Ubuntu 9.10 installs. Pause and play for local videos worked without any problems. Without the patch the video would not play after pressing pause once.

Revision history for this message
In , Eugene Crosser (crosser) wrote :

Might the problem have anything to do with this?

http://www.pulseaudio.org/ticket/440

Despite that one is marked "fixed", the stock mplayer that comes with karmic still reports:

[pulse] working around probably broken pause functionality,
        see http://www.pulseaudio.org/ticket/440

Revision history for this message
In , Kalle-alm (kalle-alm) wrote :

Tested, and works great, but if I start/stop it rapidly enough I tend to be able to make it fail again. With enough start, stop, start, stop, it more or less always ends up silent.

Revision history for this message
In , Eugene Crosser (crosser) wrote :

test build from comment #38 works somewhat better for me: is often resumes after pause, but after a few tries it still gets stuck.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Thanks for the link, Eugene. I don't think that problem is this bug, but it
might be a similar one we've run into in the past.

Thanks for the feedback so far. Can anybody that is still seeing problems
(e.g. comment 41 and 42) please list your specific configuration: distro version,
pulseaudio (if pulseaudio is in use) and alsa-plugins (or alsa-plugins-pulse)
version, and sound hardware.

Also, mind that you're not running into bug 525401 now, which is where the resume from a pause can take up to the current play time to resume (e.g. if you've played 30s of video, resuming from pause may take up to 30s), but that bug only happens with specific poorly muxed files.

Revision history for this message
In , Kalle-alm (kalle-alm) wrote :

$ uname -a
Linux zabre 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux
$ pulseaudio --version
pulseaudio 0.9.19

Hardware info:
- CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
- RAM: 2 GB (Corsair)

Revision history for this message
In , Kalle-alm (kalle-alm) wrote :

Oops, thought 'uname -a' included distro name. Ubuntu 9.10.

Revision history for this message
In , Eugene Crosser (crosser) wrote :

Stock karmic, 32bit, kernel 2.6.31-17-generic
dual Intel T2600 @ 2.16GHz, 82801G (ICH7 Family) audio.
pulseaudio 0.9.19-0ubuntu4.1 0
alsa-base: 1.0.20+dfsg-1ubuntu5

Revision history for this message
In , Gustav Hartvigsson (gustav-hartvigsson) wrote :

FireFox --verion:
Mozilla Firefox 3.6.2pre, Copyright (c) 1998 - 2010 mozilla.org

uname -a:
Linux <0_o> 2.6.31-18-generic #55-Ubuntu SMP Fri Jan 8 14:54:52 UTC 2010 x86_64 GNU/Linux

distro:
Ubuntu 9.10

Revision history for this message
In , Gervase Markham (gerv-mozilla) wrote :

Works great for me, although I only tested it for a minute or so!
Linux kitten 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
Ubuntu 9.10.

Gerv

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Tested on Fedora 12 x86_64, Ubuntu 8.10 i386, and Ubuntu 9.10 x86_64 running under Virtualbox (with emulated ICH AC97 sound and guest additions installed), and Fedora 12 i386 running natively on a Thinkpad x60s with Intel HDA (ICH7) sound.

I can still reproduce the problem on Ubuntu 8.10, but unlike the original problem, playback back be resumed by cycling play/pause a second time.

Revision history for this message
In , Pevr (pevr) wrote :

Tested on OpenSuse 11.2 x86_64 (Linux vr 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux), Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.3a1pre) Gecko/20100202 Minefield/3.7a1pre, alsa-plugins-pulse 1.0.21-3.3, pulseaudio 0.9.19-2.3, Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01).

I can still reproduce the issue but only with this video:

 http://techne.cse.ucsc.edu/media/house_proceeding_12-08-09.ogg

(and other videos from the same server)

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

(In reply to comment #50)
> I can still reproduce the issue but only with this video:
>
> http://techne.cse.ucsc.edu/media/house_proceeding_12-08-09.ogg
>
> (and other videos from the same server)

Thanks. I can reproduce that pause problem on Windows too, it's bug 525401.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

(From update of attachment 424936)
This fixes the majority of the problems, so let's get it reviewed and checked in. I'll post a patch for the other pause problem (bug 525401), and once we've got them both checked in we'll see how many problems people are still experiencing.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

There's another tryserver build containing this patch and my latest patch for bug 525401 here: https://<email address hidden>/try-0273a05e8920-linux.tar.bz2

Revision history for this message
In , Blizzard (blizzard) wrote :

Just tried that on Fedora 12. Stopping and starting seemed to work OK. Seeking around eventually caused it to stop playing the video.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Thanks Chris. Is that easily reproducible for you? Using a particular video, or did you try with more than one?

There are probably some other cases where we could hit this problem. If there's not enough audio available in the decoded frames when we try to resume playback we won't be able to hit the prebuf limit that resumes playback.

Maybe we should call snd_pcm_start in sa_stream_write so that playback always begins as soon as we've written some audio data, or shrink the prebuf size significantly. The former would make the behaviour match the Mac backend, and the latter would match the Win32 backend where the "prebuf" buffer size is fixed at 1024 bytes (around 5-6ms of audio). What we really want is the behaviour of all of the backends to match as much as possible, but that's a bigger project.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Never mind... I can't reproduce it at will, but I just had this bug occur in my Fedora 12 VM with all of the patches applied.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Note to self: change the PlayFrame loop break condition to allow breaking out of the loop if the decoder state is SEEKING. This at least allows the user to recover from stuck videos by seeking to another point in the video.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

http://hg.mozilla.org/mozilla-central/rev/8c84037f3ad9

I pushed the existing patch because we definitely want this fix as it improves things significantly and is the right thing to do. I'm following up the remaining problems now.

Revision history for this message
In , Eugene Crosser (crosser) wrote :

The test build from comment #53 did not fix the problem for me.
After running into the end of already-downloaded portion of the file, the player starts to display "buffering" animation and never starts to play again.
After once hitting "pause", hitting "play" does not make it run again.
I am running stock karmic.

Here is the video: http://www.average.org/tmp/03102009053.html

Eugene

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Yeah, with that video there's definitely still a problem. Thanks, that's a great testcase! That video is a little unusual in that it's extremely high bitrate for web video (60 fps and 7.5 Mb/s), so we might not be getting enough audio data decoded to resume playback.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

I've got a more comprehensive fix for this bug, but it's not quite ready yet. I'm seeing a hang during playback of bug516323.ogv because the needs-silence code in nsOggDecodeStateMachine::NextFrame never kicks in.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

That problem is caused by the needs-silence test using |type == OGGPLAY_INACTIVE| to determine if the track has finished, which is incorrect and only becomes true at some point after the track has actually finished. Changing the test to |stream_info == OGGPLAY_STREAM_LAST_DATA || stream_info == OGGPLAY_STREAM_UNINITIALISED| looks like the correct fix.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Try server builds of the latest patch available here: http://<email address hidden>

Revision history for this message
In , Kalle-alm (kalle-alm) wrote :

Tried server builds and works flawlessly on my end. Tried <video> only.

Revision history for this message
In , Eugene Crosser (crosser) wrote :

Build from comment #63 when tested on the video from comment #59 (sorry for having inadvertently removed it; I've put it back now), resumes playing after running into the end of downloaded portion of the file. However, after clicking pause and then play or moving the slider, it does not resume playing.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Now that I'm at home, I've tested this patch on my F12 VM and it's showing the same symptoms Eugene just mentioned. Interestingly, an earlier version of the same patch doesn't show these symptoms (I tried popping the new patch and pushing the old patch, and I can't break it), but the two patches should be doing the same thing--the new one is just cleaner. The old patch has a bunch of debug logging in it, including lots of calls to sa_stream_get_write_size, so that could be affecting the behaviour.

When playback is stuck with the new patch applied, we have audio data ready to write in mBufferOverflow and we're actively calling nsAudioStream::Write to flush it, but sa_stream_get_write_size is reporting 0. This sounds like the PulseAudio bug Eugene mentioned in comment 40, but I'm running
0.9.21-4.fc12, so it *should* be fixed already. I'll keep investigating.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Sure enough, disabling the debug logging in the older patch causes the problem to appear.

I looked at the workaround mplayer is using for PA bug 440, but I'm not sure how to map it on to the ALSA API to test if it works correctly. Basically, if they detect a PA version which is "known bad", their audio resume function resets the playback stream. Even if I could get this workaround to work, it will break A/V sync whenever it kicks in.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Created an attachment (id=427758)
wip patch v0

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Here's the situation I'm seeing. In PlayFrame, stuck in the loop waiting for the current frame time to elapse:

(gdb) p mAudioStream.mRawPtr->mBufferOverflow.Length()
$4 = 4114
(gdb) p snd_pcm_state(s->output_unit)
$5 = 3 [RUNNING]
(gdb) p snd_pcm_avail_update(s->output_unit)
$6 = 0
(gdb) p snd_pcm_writei(s->output_unit, data, 1)
[New Thread 0x7f6d628ff710 (LWP 8876)]
[...]

Tried to write a small amount of garbage to the stream to see if that kicked things into life, but the write blocked indefinitely.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Another case I'm seeing is snd_pcm_avail_update is returning 0, but snd_pcm_state reports the pcm is in XRUN state (which means avail_update should be returning -EPIPE). Any attempt to recover (or prepare) the pcm fails.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

The new Ogg backend (bug 531340) landed recently and will have changed the behaviour (including buffering more audio like my WIP patch attached to this bug does) fairly dramatically (hopefully for the better). Can people seeing this problem please test a recent nightly trunk build and update the bug if they're still seeing problems?

Revision history for this message
In , Daniël Heres (danielheres) wrote :

Can not reproduce this issue with current build.
However, I have another issue with this audio file hosted in this bug entry:
https://bug526411.bugzilla.mozilla.org/attachment.cgi?id=423236
The seeker skips to the end each ~300/400 ms when loading and playing. Is that a known bug?

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

That looks new, would you mind filing a bug for it? At a guess the controls might need to be modified to handle the fact that the new backend fires durationchange events regularly when it's unable to calculate the file's duration during the initial load.

Revision history for this message
In , Eugene Crosser (crosser) wrote :

I tried nightly build from http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/ dated 05-Apr-2010 03:15. It works on my video, whatever I do - pause/play, move the slider, try to make it run into the end of downloaded portion. Thanks to the developers, good job!

Revision history for this message
In , Blizzard (blizzard) wrote :

Yeah, it's looking good here, too. I beat the crap out of it and couldn't get it to stop playing.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

It doesn't seem to be possible to fix this reliably with the old backend because liboggplay produces "frames" with both audio and video attached. We need the ability to decode audio ahead of video, which is impossible with liboggplay without major changes. My WIP patches attached to this bug tried to compromise by increasing the number of "frames" we'd decode and queue, but as this isn't able to guarantee any particular audio/video decoded ratio, it doesn't solve every instance of this problem.

Revision history for this message
In , ashughes (anthony-s-hughes) wrote :

Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.3pre) Gecko/20100405 Firefox/3.6.3plugin1

URL: http://videos.mozilla.org/firefox/3.6/getpersonas.ogv

Looks like this did not make it into the 3.6.3 OOPP backport. I strongly urge we get that in.

Revision history for this message
In , Matthew Gregan (kinetik) wrote :

(From update of attachment 424936)
I don't think we can fix this completely with the old backend, but this small patch helped a lot for the common case. It's a safe change and has had plenty of time baking on trunk already.

Revision history for this message
exactt (giesbert) wrote : Re: html5 ogg video does not resume reliably after buffering

i have the same problem on lucid amd64 running firefox 3.6.3...

Changed in firefox-3.5 (Ubuntu):
status: New → Confirmed
exactt (giesbert)
summary: - html5 ogg video does not resume reliably after buffering
+ html5 ogg media does not resume reliably after buffering
Revision history for this message
Krinn (kr86420) wrote :

Confirmed that this occurs in Firefox-3.6.3 with a clean install of Ubuntu 10.4 LTS. (Tested i386 version.)

Revision history for this message
Draycen DeCator (ddecator) wrote :

This is still happening with the 3.6.5 daily builds from the Ubuntu Mozilla Team Daily PPA, but the problem has been resolved in the latest 3.7 build. I will look upstream to see if I can find a report for this to link to. I am also moving this to the 'firefox' package since this is affecting 3.6.x builds.

affects: firefox-3.5 (Ubuntu) → firefox (Ubuntu)
Revision history for this message
Draycen DeCator (ddecator) wrote :

This is most likely related to mozilla 526411, but I need to do some more investigating to make sure it is the same bug.

Revision history for this message
Draycen DeCator (ddecator) wrote :

I have added the bug watch for the upstream report. Since this problem has already been fixed by Mozilla in the trunk build of Firefox, I am marking this report Triaged with a Low importance. Thanks again for reporting this to Ubuntu, and please continue to report any issues that you encounter!

Changed in firefox (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Changed in firefox:
status: Unknown → Fix Released
Revision history for this message
Draycen DeCator (ddecator) wrote :

Bumping up to Medium importance since this does have an impact on the functionality of Firefox.

Changed in firefox (Ubuntu):
importance: Low → Medium
Revision history for this message
In , Clegnitto (clegnitto) wrote :

(From update of attachment 424936)
a=LegNeato for 1.9.2.5. Please *only* land it on mozilla-1.9.2 default, as we are still working on the 3.6.4 relbranch and do not want this landed there

Revision history for this message
In , Matthew Gregan (kinetik) wrote :
Revision history for this message
In , Matthew Gregan (kinetik) wrote :

Worth noting for anyone following this bug who is seeing problems: make sure you're running a current version of PulseAudio. The version shipped with F12 has a bug that causes the hanging snd_pcm_writei that I ran into in this bug (comment 69), but an update to 0.9.21-5 is available in Fedora updates. There's a bunch of investigation of this specific problem over in bug 573924 for the curious.

Revision history for this message
Cd-MaN (panther79) wrote :

I think I have a similar problem:

I open an ogg file (for example: http://audio.lugradio.org/shotofjaq/shotofjaq_ubuntusoftwarecenterreview.ogg) in a tag.
It starts to play.
I hit pause and leave it to load.
Then I try to hit play, and I would expect for it to start playing, since it has been completely buffered, however it fails to do so.

Micah Gersten (micahg)
Changed in firefox:
milestone: none → 3.6.7
Revision history for this message
Micah Gersten (micahg) wrote :

Fixed in this release:
firefox (3.6.7+build2+nobinonly-0ubuntu1) maverick; urgency=low

  * New upstream release v3.6.7build2 (FIREFOX_3_6_7_BUILD2)

  * Make it possible to disable patches on a per-release basis. This
    makes it easier to share packaging branches across releases, and makes
    it possible to disable the patches which make the Hardy daily builds fail
    - update debian/rules
    - add debian/disable-patches.sh
    - add debian/patches/series-disable-patches.8.04
  * Make the debian/usr.bin.firefox.apparmor.in target a dependency of
    pre-build rather than makebuilddir. Whilst this doesn't really change
    much, it is technically slightly more correct (makebuilddir is just for
    creating the build directory, whilst pre-build is for doing all the
    preparation work)
    - update debian/rules
  * Merge the debian/firefox.sh target in to the match-all target, this
    just de-clutters things a little
    - update debian/rules
  * Remove debian/stamp-autotools-files-moz in the clean target
    - update debian/rules
  * Drop the empty firefox-dev and firefox-*-dev transitional packages. We
    didn't install anything in to firefox-dev, and we can reintroduce it in
    the future if anything in the archive depends on the browser specific
    interfaces
    - update debian/control
    - remove debian/firefox-dev.install
    - remove debian/firefox-dev.links
  * Fix some Lintian warnings
    - add debian/README.source
    - update debian/control
  * Make debian/migrator/ffox-beta-profile-migration-dialog a dependency of
    post-patches rather than pre-build. This avoids the need for having to
    build the profile migrator when unpacking the source tarball
    - update debian/rules
 -- Chris Coulson <email address hidden> Thu, 15 Jul 2010 20:27:51 +0100

Changed in firefox (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Tomasz Chrzczonowicz (tch) wrote :

I just updated to 3.6.7 and the bug is not fixed.

(yes, I restarted the browser)

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

I can also confirm that this bug is still present.

Revision history for this message
Valdisvi (valdis-vitolins) wrote :

Problem is related to pulseaudio.
When it is removed:
sudo apt-get autoremove pulseaudio
sudo apt-get install gnome-alsamixer
files are played correctly.

Revision history for this message
Micah Gersten (micahg) wrote :

@Tomasz Chrzczonowicz, Michael Sheldon
Which release is the bug present in?

@Valdisvi
pulseaudio is part of the core audio stack for Ubuntu. Please don't suggest its removal. Karmic doesn't have a new enough pulseaudio for this to work, but Lucid does.

Revision history for this message
Tomasz Chrzczonowicz (tch) wrote :

@Micah Gersten

OS: Ubuntu 10.4.1 LTS.
Package version: 3.6.8+build1+nobinonly-0ubuntu0.10.04.1

Bug is still there.

AFAIR, this feature (<video> tag with OGG) has been broken in Ubuntu since the day it was introduced.
I don't recall ever having this problem on Windows.

Changed in firefox:
importance: Unknown → Medium
Revision history for this message
Cd-MaN (panther79) wrote :

My usecase is fixed (resuming a buffered ogg file). Stock FF 3.6.10 on Ubuntu 10.04 LTS.

Thank you

Revision history for this message
Tomasz Chrzczonowicz (tch) wrote : Re: [Bug 450684] Re: html5 ogg media does not resume reliably after buffering

Dnia 2010-09-24, pią o godzinie 05:14 +0000, Cd-MaN pisze:
> My usecase is fixed (resuming a buffered ogg file). Stock FF 3.6.10 on
> Ubuntu 10.04 LTS.
>
> Thank you
>

If find it to still be a problem with 3.6.10+build1
+nobinonly-0ubuntu0.10.04.1 on Ubuntu 10.4 LTS 64-bit.

Revision history for this message
Odo (info-odo) wrote :

It is fixed on 10.04 with FF 4.0 (i.e. "Minefield", firefox-4.0 package), but not with FF 3.6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.