Closed Bug 1920429 Opened 2 years ago Closed 1 year ago

video-streaming.edpuzzle.com - Video error, stops playing after 3:30-4:00 minutes

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 132
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
141 Branch
Webcompat Priority P3
Webcompat Score 4
Tracking Status
firefox-esr140 --- verified
firefox130 --- wontfix
firefox132 --- wontfix
firefox140 --- wontfix
firefox141 --- verified

People

(Reporter: ctanase, Assigned: kinetik)

References

()

Details

(Keywords: webcompat:site-report, Whiteboard: [webcompat-source:web-bugs])

User Story

platform:windows,mac,linux,android
impact:content-missing
configuration:general
affects:all
branch:release
diagnosis-team:media

Attachments

(1 file, 2 external files, 1 obsolete file)

Environment:
Operating system: Linux/Windows 10
Firefox version: Firefox 129.0/130/132

Steps to reproduce:

  1. Go to https://web.archive.org/web/20240914161315/https://video-streaming.edpuzzle.com/64dfa826747b6f41b3a7ac70.webm?Expires=1726336051&Key-Pair-Id=KT64MU30TGX71&Signature=lzkwztOyN5H5~m5~rucWoHjAgzZY05-aCRZ6UtrFIz~394Kfzzy8OrtCLIGhhOh~67y-ChGVzz9UaOssA67MUqDnMza00ddY-QA6jEnsDl18~df-sOai-engygclxx1UImtizAgg9TXcJe84HG-jFtNp0c-JUwiP2dYHYFnqWFNQLMihUjs23jK5U3j8GJm1qN6~iPCeLSunZRuPbLD5nroCxqyWdLIl-7-Gkg2dzGfP5rONzBsSDo8dbXFydrcwR6aglK68O3zLVT754Ht3iC40GljrqtcjRHzgKMPRJ2mo-RJoVrFFSd6n8nJ0PgrHrMcIdIGRwqvIJe-wAWE3Ng__
  2. Play the video.
  3. Let it play until minute 3:30-4:00 (skipping to that minute won't reproduce this issue)
  4. Observe the behavior.

Expected Behavior:
The video plays entirely.

Actual Behavior:
Error occurs after the video is being played for 3:30-4 minutes

Notes:

  • Reproduces regardless of the status of ETP
  • Reproduces in Firefox Nightly, and Firefox Release
  • Does not reproduce in Chrome

Created from https://github.com/webcompat/web-bugs/issues/141679

Attached image image.png —
Version: unspecified → Firefox 132

Original reporter on webcompat.com here. Skipping to the time does not produce the issue, but skipping to about 5-10 seconds before the timestamp mentioned does work. I am unable to reproduce the issue in VLC, FFplay, and Kde DragonPlayer.

Severity: -- → S2
User Story: (updated)
Priority: -- → P3
Severity: S2 → S3

With the recent Internet Archive problems, I can't access the videos, did you by chance have a copy?

Flags: needinfo?(minecraftchest1)

(In reply to Paul Adenot (:padenot) from comment #5)

With the recent Internet Archive problems, I can't access the videos, did you by chance have a copy?

Here is a link to a copy on my server. https://data.s3.minio.minecraftchest1.us/webcompat/650d9163daf9b33fd41e070b.webm

I can also share more videos if needed. I am getting plenty through school.

Flags: needinfo?(minecraftchest1)

Thanks for getting back to us, I can reproduce here on Linux Desktop with your instructions (simply seeking around that time works well). I've got this recorded with rr, will attach the pernosco link soon. It smells like a webm demuxing issue, we'll look into it soon.

https://pernos.co/debug/0ZQPmO2KKs8WYlyjaR76rg/index.html is the link.

https://pernos.co/debug/0ZQPmO2KKs8WYlyjaR76rg/index.html#f{m[EYUi,oMo_,t[ARU,EPz6_,f{e[EYUi,ESw_,s{adTVRgAAA,bAZQ,uF8xVzQ,oF9EqDA___/ is the error. We're erroring out because we're being quite strict about this, but we should probably be a bit more lenient. I don't understand everything that's going on yet though, but it should be easy w/ the pernosco. I'd look at it but I'm going on PTO for some time today, over to kinetik for investigation since it's about WebM.

Flags: needinfo?(kinetik)

I have the same problem while playing a webm audio (codec opus), here is the file:
https://github.com/remisharrock/mylittlefiles/raw/refs/heads/main/blob.webm

and here is a typescript code that cannot play the file etirely and before the end of the play throws an error :

const response = await fetch(.....) // replace ... with something getting the file , for example https://github.com/remisharrock/mylittlefiles/raw/refs/heads/main/blob.webm 

		let blob = await response.blob()
		let mimeType = blob.type
		let audioElement = new Audio()
		audioSourceElement = document.createElement('source')
		audioElement.appendChild(this.audioSourceElement)
		audioSourceElement.src = URL.createObjectURL(
			new Blob([blob], { type: mimeType })
		)
		audioSourceElement.type = mimeType

		this.audioElement.onerror = (error) => {	
			console.error('ERROR audioElement playing audio : ' + error)
		}
		this.audioSourceElement.onerror = (error) => {
			console.error('ERROR audioSourceElement playing audio : ' + error)
		}
		this.audioElement.load()
		this.audioElement.play()
Webcompat Priority: --- → P3
Webcompat Score: --- → 4
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
Flags: needinfo?(kinetik)

Apologies for the delay in resolving this. I've got a possible fix in hand based on the Pernosco trace, but I'd like to test the fix against real-world files experiencing this issue. Unfortunately, all of the links above now appear to be dead - is it possible for you to supply a fresh/working link to a video exhibiting this issue? Thanks!

Flags: needinfo?(ctanase)

Oops, redirect NI to correct person.

Flags: needinfo?(ctanase) → needinfo?(minecraftchest1)

Here are two files I have that have the issue. Both have the issue at around the 3:30 timestamp. Both are saved directly to my server, and should have no expiry issues. I can get several more, but being graduated from school, I don't know how much longer I will have access to pull videos.

https://files.minecraftchest1.us/WebCompat/EdPuzzle1/EdPuzzle1.webm
https://files.minecraftchest1.us/WebCompat/EdPuzzle2/EdPuzzle2.webm

Flags: needinfo?(minecraftchest1)
Attachment #9489538 - Attachment is obsolete: true
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/100b14c96baf Use Opus packet duration when discarding padding in WebM. r=kinetik
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
Component: Site Reports → Audio/Video: Playback
Product: Web Compatibility → Core

The patch landed in nightly and beta is affected.
:kinetik, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(kinetik)
Flags: needinfo?(kinetik)
QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141]
Flags: qe-verify+
QA Contact: cgeorgiu

I've reproduced this bug using an affected Nightly build (2024-09-23) using STR from comment 0 with Win 11.

The issue is verified as fixed on Beta 141.0b3 under macOS 15, Ubuntu 24 and Win 11.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c142/b141] [qa-ver-needed-c142/b141] → [qa-triage-done-c142/b141] [qa-ver-done-c142/b141]
Flags: qe-verify+

Should we uplift this to ESR140?

Flags: needinfo?(kinetik)
Attachment #9501729 - Flags: approval-mozilla-esr140?

firefox-esr140 Uplift Approval Request

  • User impact if declined: Some WebM files with Opus tracks that rely on padding will fail to play
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: Verify the files linked from https://bugzilla.mozilla.org/show_bug.cgi?id=1920429#c13 play correctly
  • Risk associated with taking this patch: Low
  • Explanation of risk level: Fix only affects Opus tracks in WebM files if they use padding (rare), common code path untouched
  • String changes made/needed: n/a
  • Is Android affected?: no

I think an ESR uplift is safe and makes sense. I've requested uplift on the patch.

Flags: needinfo?(kinetik)
Attachment #9501729 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+

This is also verified as fixed on Esr 140.2.0 under Win 11, macOS 15 and Ubuntu 24.

Regressions: 1984505
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: