Closed Bug 599430 Opened 14 years ago Closed 13 years ago

HTML5 audio OGG Vorbis playback stops too early, audio end gets cut off

Categories

(Core :: Audio/Video, defect)

1.9.2 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 586612

People

(Reporter: pascal.fellerich, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

OGG audio files are played back, but the playback stops too early. This is most irritating when playing short OGG-Vorbis files. The same audio, decoded to WAV, plays fine and completely.

Reproducible: Always

Steps to Reproduce:
Let short_file.ogg be a short (a few seconds) audio file.
Let short_file.wav be the same audio, but in WAV format.

JS Code:
var x = new Audio('short_file.ogg');
x.play(); // end of the audio is missing.

var y = new Audio('short_file.wav');
y.play(); // audio is played completely.


Actual Results:  
Audio playback too short with OGG Vorbis format.

Expected Results:  
OGG playback should be identical to WAV format.

Worked properly in Firefox 3.6
The bug appeared somewhere between 3.6 and 3.6.10.
Pascal, can you possibly attach a file that shows the problem for you?
Pascal, can you reproduce this with trunk nightlies?  How about with Firefox 3.6.3 or earlier?  I suspect this may be related to bug 586612.
(In reply to comment #1)
> Pascal, can you possibly attach a file that shows the problem for you?

Done, see comments 3 and 4. Play either the OGG or WAV file using an external player, then using FF 3.6.10. The difference is easily noticeable, the second part of the whistle is missing.

Since the WAV file (transcoded from the OGG file) plays correctly, I could imagine that there is a problem in the OGG Vorbis decoder, i.e. something like the last buffer is either not decoded or not transferred to the audio replay engine.
(In reply to comment #2)
> Pascal, can you reproduce this with trunk nightlies?  How about with Firefox
> 3.6.3 or earlier?  I suspect this may be related to bug 586612.

I installed FF 3.6.3 again and there it works perfectly.
(In reply to comment #2)
> Pascal, can you reproduce this with trunk nightlies?  How about with Firefox
> 3.6.3 or earlier?  I suspect this may be related to bug 586612.

Update: I tried more old versions; up until 3.6.6 it works, from 3.6.8 onwards the "last buffer discarded" bug (?) hits. I didn't try 3.6.7, however.
OK, so on trunk the OGG file above seems to work for me...  Is this branch-only?
(In reply to comment #8)
> Is this branch-only?

Yes, this WFM on trunk.
Version: unspecified → 1.9.2 Branch
Just checked FF 3.6.11 on WinXP - the bug is still present.
WFM on trunk. I'm guessing this in indeed a dupe of bug 586612.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: