Closed Bug 1777264 Opened 3 years ago Closed 3 years ago

Add telemetry for HDR video playback on macOS

Categories

(Core :: Graphics, task)

task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: jrmuizel, Assigned: bradwerth)

References

Details

Attachments

(7 files)

We don't seem to have telemetry for this yet. It would be good to get a sense for how common HDR playback is.

Flags: needinfo?(bwerth)

We'll do video low power telemetry in Bug 1737682, and once that lands, that will give us a sensible template to use for this telemetry also.

Assignee: nobody → bwerth
Flags: needinfo?(bwerth)
See Also: → 1737682

From a conversation with Product Team, here are the goals for the telemetry:

  1. Of the video played by macOS users, what percentage of it is HDR?
  2. How often does a Firefox session include the playback of HDR video?
  3. For how long are users watching HDR video?

All of this broken down by region.

This doesn't seperately track whether or not the HDR video is visible, as
we do for video generally.

Some information that VideoInfo needs is not available from the metadata
header. This change makes it so that VideoInfo structure is updated with
color depth information as frames come in.

Attachment #9287149 - Attachment description: WIP: Bug 1777264 Part 1: Make TelemetryProbesReporter track play time of HDR video. → WIP: Bug 1777264 Part 3: Make TelemetryProbesReporter track play time of HDR video.
Attachment #9287150 - Attachment description: WIP: Bug 1777264 Part 2: Define and emit VIDEO_HDR_PLAY_TIME_MS. → WIP: Bug 1777264 Part 4: Define and emit VIDEO_HDR_PLAY_TIME_MS.

This test will only pass on platform that accurately report the color
depth in their VideoInfo structures. Presently that is only macOS, so the
test has a conditional task that only runs on macOS.

Depends on D152820

Attachment #9287781 - Attachment description: WIP: Bug 1777264 Part 1: Update VideoInfo color depth with information from decoded frames. → Bug 1777264 Part 1: Update VideoInfo color depth with information from decoded frames.
Attachment #9287782 - Attachment description: WIP: Bug 1777264 Part 2: Make MacIOSurfaceImage report color depth accurately. → Bug 1777264 Part 2: Make MacIOSurfaceImage report color depth accurately.
Attachment #9287149 - Attachment description: WIP: Bug 1777264 Part 3: Make TelemetryProbesReporter track play time of HDR video. → Bug 1777264 Part 3: Make TelemetryProbesReporter track play time of HDR video.
Attachment #9287150 - Attachment description: WIP: Bug 1777264 Part 4: Define and emit VIDEO_HDR_PLAY_TIME_MS. → Bug 1777264 Part 4: Define and emit VIDEO_HDR_PLAY_TIME_MS.
Attachment #9287783 - Attachment description: WIP: Bug 1777264 Part 5: Add a chrome test of HDR telemetry. → Bug 1777264 Part 5: Add a chrome test of HDR telemetry.

Comment on attachment 9287959 [details]
request_VIDEO_HDR_PLAY_TIME_MS.md

Data Review

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?

Yes, through the Histograms.json file and the Probe Dictionary.

  1. Is there a control mechanism that allows the user to turn the data collection on and off?

Yes, through the standard telemetry preference in the application settings.

  1. If the request is for permanent data collection, is there someone who will monitor the data over time?

Permanent collection to be monitored by Brad Werth <bwerth@mozilla.com>

  1. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2: Technical data

  1. Is the data collection request for default-on or default-off?

Default-on

  1. Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?

No

  1. Is the data collection covered by the existing Firefox privacy notice?

Yes

  1. Does the data collection use a third-party collection tool?

No

Result

data-review+

Attachment #9287959 - Flags: data-review?(tlong) → data-review+

When TrackInfo changes in the MediaFormatReader, this ensures that MediaDecoder
has the same information.

Attachment #9287781 - Attachment description: Bug 1777264 Part 1: Update VideoInfo color depth with information from decoded frames. → Bug 1777264 Part 2: Update VideoInfo color depth with information from decoded frames.
Attachment #9287782 - Attachment description: Bug 1777264 Part 2: Make MacIOSurfaceImage report color depth accurately. → Bug 1777264 Part 3: Make MacIOSurfaceImage report color depth accurately.
Attachment #9287149 - Attachment description: Bug 1777264 Part 3: Make TelemetryProbesReporter track play time of HDR video. → Bug 1777264 Part 4: Make TelemetryProbesReporter track play time of HDR video.
Attachment #9287150 - Attachment description: Bug 1777264 Part 4: Define and emit VIDEO_HDR_PLAY_TIME_MS. → Bug 1777264 Part 5: Define and emit VIDEO_HDR_PLAY_TIME_MS.
Attachment #9287783 - Attachment description: Bug 1777264 Part 5: Add a chrome test of HDR telemetry. → Bug 1777264 Part 6: Add a chrome test of HDR telemetry.
Attachment #9288575 - Attachment description: Bug 1777264 Part 1: Make MediaDecoderStateMachine check for changed TrackInfo for all frames. → Bug 1777264 Part 1: Make MediaDecoder aware of changed TrackInfo as it changes.
Pushed by bwerth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0c4a071fadda Part 1: Make MediaDecoder aware of changed TrackInfo as it changes. r=alwu https://hg.mozilla.org/integration/autoland/rev/2ec8c0fb6613 Part 2: Update VideoInfo color depth with information from decoded frames. r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/2a00517ffd28 Part 3: Make MacIOSurfaceImage report color depth accurately. r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/caac6179b27f Part 4: Make TelemetryProbesReporter track play time of HDR video. r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/753e0ca024a8 Part 5: Define and emit VIDEO_HDR_PLAY_TIME_MS. r=media-playback-reviewers,alwu https://hg.mozilla.org/integration/autoland/rev/8c6b4a145528 Part 6: Add a chrome test of HDR telemetry. r=media-playback-reviewers,alwu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: