YouTube video gets "corrupted" after about 10 minutes while using VAAPI on X11
Categories
(Core :: Audio/Video: Playback, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | disabled |
People
(Reporter: jmsharvey771, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: correctness)
Attachments
(1 file)
(deleted),
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
- Installed Firefox Nightly and started it with MOZ_X11_EGL=1 using my Firefox release profile. This also happens with a fresh profile with only the required about:config settings changed.
- Changed the about:config settings to enable Webrender and VAAPI
- Watched a YouTube video (using 4K VP9. Video URL is https://youtu.be/tFmb5h1lN-w)
Important Modified Preferences from about:support:
accessibility.typeaheadfind.flashBar 0
browser.cache.disk.amount_written 1077131
browser.cache.disk.capacity 1048576
browser.cache.disk.filesystem_reported 1
browser.cache.disk.hashstats_reported 1
browser.contentblocking.category custom
browser.display.use_system_colors true
browser.search.region GB
browser.sessionstore.upgradeBackup.latestBuildID 20200728094725
browser.startup.homepage https://start.duckduckgo.com/
browser.startup.homepage_override.buildID 20200728094725
browser.startup.homepage_override.mstone 81.0a1
browser.tabs.drawInTitlebar false
browser.tabs.warnOnClose false
browser.urlbar.placeholderName DuckDuckGo
browser.urlbar.placeholderName.private DuckDuckGo
browser.urlbar.suggest.topsites false
browser.urlbar.tipShownCount.searchTip_onboard 1
browser.urlbar.tipShownCount.searchTip_redirect 4
dom.push.userAgentID d9bf485c6e4f47b9841009309d888941
extensions.lastAppVersion 81.0a1
font.default.x-western sans-serif
font.internaluseonly.changed true
font.name.monospace.x-western Hack
font.name.sans-serif.x-western SF Pro Text
font.name.serif.x-western Noto Serif
general.autoScroll true
gfx.webrender.all true
idle.lastDailyNotification 1595938848
media.autoplay.default 5
media.ffmpeg.vaapi-drm-display.enabled true
media.ffmpeg.vaapi.enabled true
media.ffvpx.enabled false
media.gmp-gmpopenh264.abi x86_64-gcc3
media.gmp-gmpopenh264.lastUpdate 1590168894
media.gmp-gmpopenh264.version 1.8.1.1
media.gmp-manager.buildID 20200728094725
media.gmp-manager.lastCheck 1595950297
media.gmp.storage.version.observed 1
mousewheel.min_line_scroll_amount 10
mousewheel.system_scroll_override_on_root_content.enabled true
mousewheel.system_scroll_override_on_root_content.horizontal.factor 175
mousewheel.system_scroll_override_on_root_content.vertical.factor 175
network.dns.disablePrefetch true
network.http.speculative-parallel-limit 0
network.predictor.enabled false
network.prefetch-next false
places.database.lastMaintenance 1595426074
places.history.expiration.transient_current_max_pages 154506
plugin.flash.lastmod_hi 370
plugin.flash.lastmod_lo -1701224816
print.print_bgcolor false
print.print_bgimages false
print.print_duplex 0
print.print_evenpages true
print.print_margin_bottom 0.5
print.print_margin_left 0.5
print.print_margin_right 0.5
print.print_margin_top 0.5
print.print_oddpages true
print.print_orientation 0
print.print_page_delay 50
print.print_paper_data 0
print.print_paper_height 11.69
print.print_paper_name iso_a4
print.print_paper_size_unit 0
print.print_paper_width 8.27
print.print_scaling 1.00
print.print_shrink_to_fit true
print.print_to_file false
print.print_unwriteable_margin_bottom 56
print.print_unwriteable_margin_left 25
print.print_unwriteable_margin_right 25
print.print_unwriteable_margin_top 25
privacy.cpd.downloads false
privacy.cpd.history false
privacy.cpd.offlineApps true
privacy.cpd.siteSettings true
privacy.donottrackheader.enabled true
privacy.purge_trackers.date_in_cookie_database 0
privacy.purge_trackers.last_purge 1594800379482
privacy.sanitize.pending [{"id":"newtab-container","itemsToClear":[],"options":{}}]
privacy.sanitize.timeSpan 0
privacy.trackingprotection.enabled true
privacy.userContext.enabled true
privacy.userContext.extension @testpilot-containers
privacy.userContext.ui.enabled true
security.remote_settings.crlite_filters.checked 1595950819
security.remote_settings.intermediates.checked 1595950819
security.sandbox.content.tempDirSuffix 7defd183-a2ca-4348-b071-68685eb4db31
security.sandbox.plugin.tempDirSuffix 756aa7ed-79a3-493b-9db3-bc4d8cbf5812
services.sync.declinedEngines
services.sync.engine.addresses true
services.sync.engine.bookmarks.validation.lastTime 1595950617
services.sync.engine.passwords.validation.lastTime 1595950617
services.sync.engine.prefs.modified false
services.sync.lastPing 1595938638
services.sync.lastSync Tue Jul 28 2020 16:58:30 GMT+0100 (British Summer Time)
signon.importedFromSqlite true
signon.rememberSignons false
storage.vacuum.last.index 1
storage.vacuum.last.places.sqlite 1595426073
Actual results:
Video started fine (aside from the flashing green screen in the first few frames) but after about 10 minutes, the video started looking glitchy and corrupted. This sometimes fixes itself and causes the YouTube video to buffer, effectively starting the video again from that point (I'm assuming it restarts the video playback because of the green screen). When it does this, the following is outputted to the console:
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) - virtual mozilla::MediaResult mozilla::FFmpegVideoDecoder<58>::DoDecode(mozilla::MediaRawData *, uint8_t *, int, bool *, MediaDataDecoder::DecodedData &): avcodec_send_packet error: -12: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<MediaSourceTrackDemuxer::SamplesPromise> mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
[Child 26541, MediaDecoderStateMachine #1] WARNING: Decoder=7f389c49f400 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<MediaSourceTrackDemuxer::SamplesPromise> mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /builds/worker/checkouts/gecko/dom/media/MediaDecoderStateMachine.cpp, line 3470
I have attached a screenshot of the issue happening.
Expected results:
The video continues to play normally.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•4 years ago
|
Reporter | ||
Comment 2•4 years ago
|
||
Forgot to put my specs in. I'm using a Radeon RX 5700 XT with Mesa 20.1.4-1 on Arch Linux. My desktop environment is KDE Plasma 5.19.4-1.
Comment 3•4 years ago
|
||
I can reproduce this on my system, with Radeon RX Vega 10 APU with Mesa 20.1.4-1 on Arch Linux and KDE Plasma 5.19.4-1.
Comment 4•4 years ago
|
||
The same on:
- Radeon Vega 10 Graphics (AMD Ryzen 7 PRO 3700U), Mesa 20.0.8, Ubuntu 20.04, Wayland, Gnome 3.36.3.
- Radeon Vega 8 Graphics (AMD Ryzen 5 PRO 3500U), Mesa 20.1.3, Manjaro (latest, stable), Wayland, Gnome 3.36.4
I also noticed that notifications from other apps promote this behaviour: video artefacts like I-frame has been lost, as well as some video blinking which precedes mentioned video corruptions.
Also, youtube may drop quality to the lowest one (360p) when blinking happens.
Comment 5•4 years ago
|
||
May be a dupe of Bug 1656436. Can you check if h264 video works for you?
Thanks.
Reporter | ||
Comment 6•4 years ago
|
||
(In reply to Martin Stránský [:stransky] from comment #5)
May be a dupe of Bug 1656436. Can you check if h264 video works for you?
Thanks.
I just watched about an hour of YouTube using h264ify-enhanced (blocked VP8, VP9, and AV1) and encountered no corruption. The only weird thing I did see is that the video would sometimes flash green for one frame after switching tabs but that's not what this issue was about.
Comment 7•4 years ago
|
||
Looks like Bug 1656436.
Description
•