Closed Bug 1302027 Opened 8 years ago Closed 8 years ago

Moov rust metadata parser to provide detail and stream error location

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla53
Tracking Status
firefox53 --- fixed

People

(Reporter: jya, Assigned: ayang)

References

Details

Attachments

(1 file)

Following bug 1299072, we can now provide extensive descriptions back to the JS on why we got a MEDIA_DECODE_ERR. It would be good to provide details on why an init segment decoding failed. stagefright has logging telling which box and byte location in the stream caused the failure. We should provide the same with the rust moov parser. Can consist of a string like: "Invalid [BLAH] box at 1300 bytes" optionally what was wrong with that box.
Followings are my plan: 1. let the log more readable, for example, change the 4cc number to char. 2. print box name and the remain length in box if parsing is aborted. 3. enable rust log when MOZ_LOG="MP4Metadata:4". Please let me know if anything is worth to be added.
Assignee: nobody → ayang
Depends on: 1329061
Depends on: 1329126
Depends on: 1330243
Depends on: 1331330
Comment on attachment 8823189 [details] Bug 1302027 - enable rust log when MP4Metadata prlog is set. https://reviewboard.mozilla.org/r/101760/#review105846
Attachment #8823189 - Flags: review?(kinetik) → review+
Pushed by ayang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d6d0f8b6e78d enable rust log when MP4Metadata prlog is set. r=kinetik
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
No longer depends on: 1331330
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: