-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console log frame decoding timestamps and out-of-order errors #734
base: main
Are you sure you want to change the base?
Console log frame decoding timestamps and out-of-order errors #734
Conversation
@youennf PTAL, is this indicating a difference between Safari and other browsers? Do we have a WPT test case for out of order decoding? |
VideoToolbox is outputting video frames in decoding order not presentation order. |
Thanks! That sounds good. I'll leave it to you, @sandersdan and @aboba on whether to merge this PR. (I'd suggest it shouldn't log for every frame, only those detected as out of order.) |
@youennf did this fix ship? Because I'm still seeing out of order failures on Safari and Safari Technology Preview and haven't seen it mentioned on any of the STP release notes. I've posted on bugzilla but gotten no response: https://bugs.webkit.org/show_bug.cgi?id=263901 Here is my repro:
Expected:
Actual:
|
It should be in STP. Maybe there is still a bug in the queue size computation. |
+1 to add tests to WPT. I don't think samples should document implementation bugs though, or at least they should be very explicit about it and link to the tracking issue in bug trackers. Otherwise, the code could confuse readers with issues that will hopefully disappear once the spec, test suite and implementations become more stable. |
For context: this PR wasn't intended to be merged, just was the smallest/easiest way to make a test case for the bug. I'm not sure how to make a WPT but happy to contribute one if someone can point me in the right direction! |
@chrisn, do you know whether we can use https://w3c.github.io/webcodecs/samples/data/bbb_video_avc_frag.mp4 for WPT tests? |
From a licensing perspective I think we can. The website says it's released under the Creative Commons Attribution 3.0 license, which means we can copy it for any purpose but we must credit Blender Foundation (www.blender.org) and link to the license. I guess we could add a README file to the relevant WPT folder to do that. |
To help diagnose out-of-order decoding on Safari I added this logging. context: #55 (comment)