Closed Bug 1739546 Opened 2 years ago Closed 2 years ago

YouTube 360° videos black screen with VAAPI

Categories

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

Firefox 94
x86_64
Linux
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr91 --- disabled

People

(Reporter: estemal, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: correctness)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

Open https://www.youtube.com/watch?v=KGerjHMa90s and start video playback

Actual results:

Playback starts, I can hear the audio, but the video area is completely black.

Also, I get this message in the JS console:

Media resource blob:https://www.youtube.com/ddd79aaf-a101-4e03-a32b-06f8141dc1da could not be decoded, error: Error Code: NS_ERROR_OUT_OF_MEMORY (0x8007000e)
Details: mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::CreateImageVAAPI(int64_t, int64_t, int64_t, MediaDataDecoder::DecodedData &): Unable to get frame by vaExportSurfaceHandle()

Expected results:

360° video playback

OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Version: Firefox 91 → Firefox 94

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Blocks: 1619523
Severity: -- → S3
Priority: -- → P5
Blocks: egl-linux-vaapi
No longer blocks: 1619523
Keywords: correctness
See Also: → 1667537, 1729902

Can you please retest with latest nightly?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox#Testing_Mozilla_binaries
If so please run Firefox on terminal with MOZ_LOG="PlatformDecoderModule:5" env variable set and attach the log here.
Thanks.

Flags: needinfo?(lynx1534)
Attached file firefox.log

Just tried it on both release 96.0.2 and nightly. Actually on 96.0.2 the screen is not black, I can see the video, but it is very distorted by strange rendering artifacts. With nightly it's still black. To test with nightly I started it with MOZ_ENABLE_WAYLAND=1 and enabled media.ffmpeg.vaapi.enabled. Also, I had to install the h264ify extension, because my hardware does not support vp9 decoding. The screen was black. The log with MOZ_LOG="PlatformDecoderModule:5" is attached.

I also tried disabling media.rdd-process.enabled, the playback was fine, but hardware decoding did not work.

Flags: needinfo?(lynx1534)

Yes, I can reproduce that too, Thanks.

This should be fixed by patch in Bug 1752282 so let's retest when it lands.

I just tested it with latest nightly on different hardware. I get this error:

libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
[Child 1419053: MediaPDecoder #2]: V/PlatformDecoderModule AudioTrimmer[7f9b7c156020] ::HandleDecodedResult: sample[0,21000] (decoded[0,13500] no trimming needed
libva error: dlopen of /usr/lib64/va/drivers/radeonsi_drv_video.so failed: libLLVM-13.so: cannot open shared object file: No such file or directory
libva info: va_openDriver() returns -1

And hardware decoding does not work.

With stable firefox 97 on the same system hardware decoding works well, but 360° videos are still black. Also hardware decoding works with MPV, so it's definitely Nightly problem.

Does it help if you run it with MOZ_DISABLE_RDD_SANDBOX=1 env variable?

Flags: needinfo?(lynx1534)

Yep, this works. For some reason I thought this was a problem only for Intel GPUs.

Flags: needinfo?(lynx1534)

Should be fixed now, please reopen if you see it again.
Thanks.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: