Closed Bug 1893523 Opened 2 years ago Closed 2 years ago

Add telemetry for when we encounter unplayable HEVC videos

Categories

(Core :: Audio/Video: Playback, task)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: jrmuizel, Assigned: alwu)

References

Details

Attachments

(4 files)

e.g. visiting https://mylogi.co.jp/wp-content/uploads/2024/04/edaa17a4fd56aac58e6cc039a0a8217e.mp4 on macOS.

I'd like to better understand how often not having HEVC is a web compat problem, so only want to the probe to be triggered when the video is unplayable. If we fallback to another codec it should not trigger.

See Also: → hevc-missing
Flags: needinfo?(alwu)
Severity: -- → S3

We already have this. You can look at requests for support the isTypeSupported telemetry here -

https://sql.telemetry.mozilla.org/queries/94146/source#232707

and you can look at actual consumption on Windows in Nightly for a measure of the amount of hevc content we handle -

https://sql.telemetry.mozilla.org/queries/95278/source#235493

Flags: needinfo?(alwu)

That telemetry doesn't do what I want. Upon a fresh launch on macOS and going to https://vimeo.com/channels/bestofstaffpicks/900211313 I see:

MSE_SOURCE_BUFFER_TYPE
27 samples, average = 2.1, sum = 56

0 |############## 9 33%
3 |######################### 16 59%
4 |### 2 7%
5 | 0 0%

The video was playable.

What Jeff wanted is to know how many HEVC video failed to play due to HEVC is unsupported in order to know the web compatibilities. Our current probe can tell how many HEVC videos get played or being asked in MSE, but couldn't tell the amount of that kind of error.

Assignee: nobody → alwu

(In reply to Alastor Wu [:alwu] from comment #3)

What Jeff wanted is to know how many HEVC video failed to play due to HEVC is unsupported in order to know the web compatibilities. Our current probe can tell how many HEVC videos get played or being asked in MSE, but couldn't tell the amount of that kind of error.

Would that show up in payload.processes.content.keyed_scalars.media_decode_error_per_mime_type?

https://sql.telemetry.mozilla.org/queries/93875/source#232165

Flags: needinfo?(alwu)

(In reply to Jim Mathies [:jimm] from comment #4)

Would that show up in payload.processes.content.keyed_scalars.media_decode_error_per_mime_type?

https://sql.telemetry.mozilla.org/queries/93875/source#232165

No, it won't. That scalar is for any error happening during decoding. For unsupported video type, we won't even start decoding.

Flags: needinfo?(alwu)

Depends on D210375

Attached file data-review-request
Attachment #9401777 - Flags: data-review?(chutten)
Attachment #9401768 - Attachment description: Bug 1893523 - part1 : do no report HEVC support if the pref is OFF. → Bug 1893523 - part1 : if the remote process hasn't started yet, only report HEVC support on Windows when the pref is ON.

Comment on attachment 9401777 [details]
data-review-request

There's a new data review process in town (for new/expanded data collections landing via Phabricator): https://wiki.mozilla.org/Data_Collection#Firefox_Desktop.2C_Firefox_and_Focus_for_Android.2C_Gecko_.28from_May_7.2C_2024.29

(( Basically, just do what Herald told you on your patchset ))

Attachment #9401777 - Flags: data-review?(chutten)
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/83a20bc70352 part1 : if the remote process hasn't started yet, only report HEVC support on Windows when the pref is ON. r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/1c9749c706d7 part2 : add debug logs. r=media-playback-reviewers,padenot https://hg.mozilla.org/integration/autoland/rev/e2cbe5351e93 part3 : add a Glean metric to record the case where video playback fails due to a not supported type. r=media-playback-reviewers,padenot
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: