brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.74k stars 2.32k forks source link

kPaused to kSuspended for Video Playback #13354

Open qingxiang-jia opened 3 years ago

qingxiang-jia commented 3 years ago

Description

When playing YouTube videos (I believe the same goes for other sites based on this thread), after pausing the video for a few seconds, the video becomes black screen. Click "play" will make it back but it's extremely annoying when you want to pause and read the information on the video.

Chromium (87.0.4280.88) doesn't have this problem so it's likely Brave specific.

I checked the media-internals tab, when paused, its status is "kPaused", when it's back screen, it turns to "kSuspended".

Steps to Reproduce

  1. Go to YouTube. Play any video.
  2. Pause it, and wait for a while.

Actual result:

Black screen. See the GIF (it's about 30 seconds long). Peek 2021-01-01 12-03

Expected result:

Whatever video image it should be paused on.

Reproduces how often:

It happens all the time.

Brave version (brave://version info)

Brave   1.18.77 Chromium: 87.0.4280.101 (Official Build) unknown (64-bit)
Revision    9407c80213cda69c2b7abcb4fa8e3f74488f4956-refs/branch-heads/4280@{#1807}
OS  Linux
JavaScript  V8 8.7.220.29
Flash   (Disabled)
User Agent  Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.101 Safari/537.36
Command Line    /usr/lib/brave-bin/brave --enable-dom-distiller --disable-domain-reliability --no-pings --extension-content-verification=enforce_strict --extensions-install-verification=enforce --origin-trial-public-key=bYUKPJoPnCxeNvu72j4EmPuK7tr1PAC7SHh8ld9Mw3E=,fMS4mpO6buLQ/QMd+zJmxzty/VQ6B1EUZqoCU04zoRU= --sync-url=https://sync-v2.brave.com/v2 --lso-url=https://no-thanks.invalid --variations-server-url=https://variations.brave.com/seed --enable-features=AutoupgradeMixedContent,PrefetchPrivacyChanges,ReducedReferrerGranularity,PasswordImport,DnsOverHttps,LegacyTLSEnforced,WebUIDarkMode --disable-features=AutofillEnableAccountWalletStorage,AllowPopupsDuringPageUnload,TextFragmentAnchor,PrivacySettingsRedesign,SmsReceiver,NotificationTriggers,PasswordCheck,NetworkTimeServiceQuerying,TabHoverCards,IdleDetection,AutofillServerCommunication,SignedExchangeSubresourcePrefetch,SafeBrowsingEnhancedProtection --flag-switches-begin --enable-accelerated-video-decode --enable-gpu-rasterization --enable-zero-copy --ignore-gpu-blocklist --enable-features=AutoupgradeMixedContent,PrefetchPrivacyChanges,ReducedReferrerGranularity,PasswordImport,DnsOverHttps,LegacyTLSEnforced,WebUIDarkMode,CompositorThreadedScrollbarScrolling,LiveCaption,NativeNotifications,OopRasterizationDDL,PDFViewerUpdate,PreconnectToSearch --flag-switches-end
Executable Path /usr/lib/brave-bin/brave
Profile Path    /home/lee/.config/BraveSoftware/Brave-Browser/Default

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

I am running Arch Linux.

validatedev commented 3 years ago

The browser is cannot usable with VAAPI with that state. Any updates? Using Fedora 34, Brave 1.22.71 with Chromium 89.0.4389.114.

qingxiang-jia commented 3 years ago

I also notice the same issue with latest Vivaldi so it may not be a Brave-specific thing.

tmdh commented 2 years ago

This is happenning for me too in Arch Linux.

Logs from brave://media-internals ``` { "12:45": { "id": "12:45", "properties": { "render_id": 12, "player_id": 45, "origin_url": "https://www.youtube.com/", "kFrameUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "kFrameTitle": "rick astley - YouTube", "url": "blob:https://www.youtube.com/c8903785-b030-4bf9-8eac-16cdcba7a467", "kTextTracks": [], "info": "Selected video track: []", "kRendererName": "RendererImpl", "pipeline_state": "kSuspended", "kVideoTracks": [ { "alpha mode": "is_opaque", "codec": "av1", "coded size": "1280x720", "color space": "{primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}", "encryption scheme": "Unencrypted", "has extra data": false, "hdr metadata": "unset", "natural size": "1280x720", "orientation": "0°", "profile": "av1 profile main", "visible rect": "0,0 1280x720" } ], "kAudioTracks": [ { "bytes per channel": 4, "bytes per frame": 8, "channel layout": "STEREO", "channels": 2, "codec": "opus", "codec delay": 312, "discard decoder delay": true, "encryption scheme": "Unencrypted", "has extra data": true, "profile": "unknown", "sample format": "Float 32-bit", "samples per second": 48000, "seek preroll": "80000us" } ], "event": "kSuspended", "kIsAudioDecryptingDemuxerStream": false, "kAudioDecoderName": "FFmpegAudioDecoder", "kIsPlatformAudioDecoder": false, "kIsVideoDecryptingDemuxerStream": false, "kVideoDecoderName": "Dav1dVideoDecoder", "kIsPlatformVideoDecoder": false, "duration": 212.061, "video_buffering_state": { "state": "BUFFERING_HAVE_ENOUGH" }, "dimensions": "1280x720", "kResolution": "1280x720", "pipeline_buffering_state": { "for_suspended_start": false, "state": "BUFFERING_HAVE_ENOUGH" } }, "allEvents": [ { "time": 0, "key": "origin_url", "value": "https://www.youtube.com/" }, { "time": 0.05000000074505806, "key": "kFrameUrl", "value": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }, { "time": 0.071000000461936, "key": "kFrameTitle", "value": "rickroll - YouTube" }, { "time": 0.803999999538064, "key": "url", "value": "blob:https://www.youtube.com/c8903785-b030-4bf9-8eac-16cdcba7a467" }, { "time": 0.8250000011175871, "key": "kTextTracks", "value": [] }, { "time": 0.9360000006854534, "key": "info", "value": "ChunkDemuxer" }, { "time": 1.0030000004917383, "key": "kRendererName", "value": "RendererImpl" }, { "time": 1.1370000001043081, "key": "pipeline_state", "value": "kStarting" }, { "time": 962.3080000001937, "key": "kVideoTracks", "value": [ { "alpha mode": "is_opaque", "codec": "av1", "coded size": "1280x720", "color space": "{primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}", "encryption scheme": "Unencrypted", "has extra data": false, "hdr metadata": "unset", "natural size": "1280x720", "orientation": "0°", "profile": "av1 profile main", "visible rect": "0,0 1280x720" } ] }, { "time": 963.0870000012219, "key": "kAudioTracks", "value": [ { "bytes per channel": 4, "bytes per frame": 8, "channel layout": "STEREO", "channels": 2, "codec": "opus", "codec delay": 312, "discard decoder delay": true, "encryption scheme": "Unencrypted", "has extra data": true, "profile": "unknown", "sample format": "Float 32-bit", "samples per second": 48000, "seek preroll": "80000us" } ] }, { "time": 1086.5669999998063, "key": "info", "value": "Effective playback rate changed from 0 to 1" }, { "time": 1086.6679999995977, "key": "event", "value": "kPlay" }, { "time": 1120.3980000000447, "key": "kIsAudioDecryptingDemuxerStream", "value": false }, { "time": 1120.411000000313, "key": "kAudioDecoderName", "value": "FFmpegAudioDecoder" }, { "time": 1120.4130000006407, "key": "kIsPlatformAudioDecoder", "value": false }, { "time": 1120.4409999996424, "key": "info", "value": "Selected FFmpegAudioDecoder for audio decoding, config: codec: opus, profile: unknown, bytes_per_channel: 4, channel_layout: STEREO, channels: 2, samples_per_second: 48000, sample_format: Float 32-bit, bytes_per_frame: 8, seek_preroll: 80000us, codec_delay: 312, has extra data: true, encryption scheme: Unencrypted, discard decoder delay: true, target_output_channel_layout: STEREO" }, { "time": 1120.5640000011772, "key": "info", "value": "Failed to initialize DecryptingVideoDecoder" }, { "time": 1120.6129999998957, "key": "info", "value": "Failed to initialize VDAVideoDecoder" }, { "time": 1120.6390000004321, "key": "info", "value": "Failed to initialize VpxVideoDecoder" }, { "time": 1126.2290000002831, "key": "kIsVideoDecryptingDemuxerStream", "value": false }, { "time": 1126.2350000012666, "key": "kVideoDecoderName", "value": "Dav1dVideoDecoder" }, { "time": 1126.2369999997318, "key": "kIsPlatformVideoDecoder", "value": false }, { "time": 1126.2670000009239, "key": "info", "value": "Selected Dav1dVideoDecoder for video decoding, config: codec: av1, profile: av1 profile main, level: not available, alpha_mode: is_opaque, coded size: [1280,720], visible rect: [0,0,1280,720], natural size: [1280,720], has extra data: false, encryption scheme: Unencrypted, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}" }, { "time": 1126.3130000010133, "key": "pipeline_state", "value": "kPlaying" }, { "time": 705.5710000004619, "key": "duration", "value": 212.061 }, { "time": 1220.9419999998063, "key": "video_buffering_state", "value": { "state": "BUFFERING_HAVE_ENOUGH" } }, { "time": 1300.6650000009686, "key": "dimensions", "value": "1280x720" }, { "time": 1300.6740000005811, "key": "kResolution", "value": "1280x720" }, { "time": 1309.8330000005662, "key": "pipeline_buffering_state", "value": { "for_suspended_start": false, "state": "BUFFERING_HAVE_ENOUGH" } }, { "time": 9228.6520000007, "key": "video_buffering_state", "value": { "reason": "DECODER_UNDERFLOW", "state": "BUFFERING_HAVE_NOTHING" } }, { "time": 9295.634999999776, "key": "video_buffering_state", "value": { "state": "BUFFERING_HAVE_ENOUGH" } }, { "time": 12987.211000001058, "key": "event", "value": "kPause" }, { "time": 28670.58100000024, "key": "pipeline_state", "value": "kSuspending" }, { "time": 28671.798000000417, "key": "pipeline_state", "value": "kSuspended" }, { "time": 28672.15799999982, "key": "event", "value": "kSuspended" }, { "time": 33663.351999999955, "key": "info", "value": "Selected video track: []" } ], "lastRendered": 0, "firstTimestamp_": 16218696.066 } } ```