Closed Bug 1525646 Opened 5 years ago Closed 5 years ago

Improve logging in MoofPaser since changes to support cbcs

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: bryce, Assigned: bryce)

Details

Attachments

(3 files)

We could benefit from more logging in the MoofParser following the changes from bug 1519617. This is also an opportunity to log instead of asserting for certain conditions that can theoretically occur, such as multiple encrypted sample description entries.

  • Use different log levels in MoofParser. Generally Error is used for out of
    memory, while warnings are used for bad mp4s.
  • Add some new logs for parsing sample description entries.
  • Add logs for when we can't find a Moof or fail to read a Moov.
  • Have logs be more specific for the Box they're in where possible rather than
    just log 'Moof'. E.g., when parsing the stsd box, we now log against that box,
    not 'Moof'.
  • Log instead of asserting if we're given multiple encrypted sample description
    entries. This is valid per the spec, and can happen (though we don't expect
    it), so we shouldn't assert.

The MoofParser didn't have logging on its normal code paths. This patch
implements such logging, covering entry and exit to many functions. Such verbose
logs are helpful for diagnosing failures and the specific file structure leading
to such failures. This should help improve our debugging experience if we can
get logs from end users which is particularly useful for cases where they can't
provide us with media due to geoblocking/proprietary media issues.

Depends on D19020

Attachment #9042212 - Attachment description: Bug 1525646 - Add verbose logging to MoofParser. r?jya → Bug 1525646 - Add debug logging to MoofParser. r?jya
Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bd4a1f69d272
Improve logging in MoofParser. r=jya
https://hg.mozilla.org/integration/autoland/rev/081476483f25
Add debug logging to MoofParser. r=jya
https://hg.mozilla.org/integration/autoland/rev/cf6f7992935c
Remove aTkhd arg from MoofParser::ParseMdia as it is unused. r=jya
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: