Jump to content

4k content "black screen buffer" issue with Brave Browser


Recommended Posts

RetroZelda
Posted

I dont really know how to describe it, but while watching 4k 10bit HDR videos in browser above 40mbps. This only happens after a few seconds of playback and it seems to only be on Brave and Chromium.  I tried on Librewolf(firefox) and konqueror without any issues. 

Heres a video of librewolf and brave playing the same video off the same server at the same time to show the difference in what I mean: 

audio being different is probably unrelated as it still occurs regardless of the audio stream i choose. The left is Librewolf v142.0-1 and the right is Brave v1.81.137.

The video stream from ffprobe is:

Quote

 {
            "index": 0,
            "codec_name": "hevc",
            "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
            "profile": "Main 10",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 3840,
            "height": 2160,
            "coded_width": 3840,
            "coded_height": 2160,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 3,
            "sample_aspect_ratio": "1:1",
            "display_aspect_ratio": "16:9",
            "pix_fmt": "yuv420p10le",
            "level": 153,
            "color_range": "tv",
            "color_space": "bt2020nc",
            "color_transfer": "smpte2084",
            "color_primaries": "bt2020",
            "chroma_location": "topleft",
            "refs": 1,
            "view_ids_available": "",
            "view_pos_available": "",
            "r_frame_rate": "24000/1001",
            "avg_frame_rate": "24000/1001",
            "time_base": "1/1000",
            "start_pts": 0,
            "start_time": "0.000000",
            "extradata_size": 206,
            "disposition": {
                "default": 1,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "non_diegetic": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0,
                "multilayer": 0
            },
            "tags": {
                "language": "eng",
                "title": "MPEG-H HEVC Video / 46118 kbps / 2160p / 23.976 fps / 16:9 / Main 10 Profile 5.1 High / 4:2:0 / 10 bits / HDR / BT.2020",
                "BPS-eng": "45864647",
                "DURATION-eng": "01:45:02.806000000",
                "NUMBER_OF_FRAMES-eng": "151073",
                "NUMBER_OF_BYTES-eng": "36134497268",
                "_STATISTICS_WRITING_APP-eng": "mkvmerge v21.0.0 ('Tardigrades Will Inherit The Earth') 64-bit",
                "_STATISTICS_WRITING_DATE_UTC-eng": "2018-02-27 20:25:20",
                "_STATISTICS_TAGS-eng": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
            }
        }

This is all while being on the same network as the server. where brave is running on a Debian machine and occurs with both wayland and x11(video was captured on wayland).  The machine is has a RTX 3080 Ti with drivers 575.51.02(although i thought I had just installed 575.57.08, but I guess something went wrong)

On my work computer at the office, a similar thing happens with chrome, edge, and firefox - although instead it just stutters like its buffering and doesnt go black so I just assume thats due to trying to do 4k at high bitrates with subpar internet with the server. I dont have a windows machine at home to test tho.

RetroZelda
Posted

ffmpeg-transcode-4826dba1-6739-4d68-bc49-56078e93bc01_1(librewolf).txtffmpeg-transcode-734bd765-12bc-4a45-b4c1-672d93b80b98_1(Brave).txt
Ah yes, here are 2 logs: 1 from brave and 1 from librewolf.  both are the same video as above running from the beginning until about 18 seconds into the movie. Liberwolf ran fine while Brave ran for a few seconds, stuttered like in the video, and then ran alright for a bit more, then indefinitly froze(not black screen)

RetroZelda
Posted (edited)

Also, if it helps, the logs from the console inside Brave:
 

Quote

validateFeature: playback
playqueuemanager.js?v=4.8.11.0:1 PlayQueueManager.setPlaylistState: playlistItemId: playlistItem4, playlistIndex: 0
approuter.js?v=4.8.11.0:1 appRouter - processing path: /web#!/videoosd/videoosd.html, isBack: undefined
approuter.js?v=4.8.11.0:1 appRouter - user is authenticated
approuter.js?v=4.8.11.0:1 appRouter - proceeding to /web#!/videoosd/videoosd.html
approuter.js?v=4.8.11.0:1 appRouter.sendRouteToViewManager - processing path: isBack: undefined
osdcontroller.js?v=4.8.11.0:1 onPositionSliderEndEditing
osdcontroller.js?v=4.8.11.0:1 onPositionSliderEndEditing
videoosd.js?v=4.8.11.0:1 updateTransparency: isLocalVideo:true, mediaType:Video
videoosd.js?v=4.8.11.0:1 attempting to lock orientation to: any
plugin.js?v=4.8.11.0:1 playing url: https://my.emby.server/emby/videos/1036680/master.m3u8?DeviceId=769f5dbe-15ed-4d66-af51-694f502db783&MediaSourceId=b0a80b5abdd204d2048b6401b5e4f6a1&PlaySessionId=39ef1945e3a14e07acd22be194c7b9f6&api_key=d8cd3d41c8434656ab108249fb1a91ec&VideoCodec=h264,av1&AudioCodec=mp3,aac&VideoBitrate=199616000&AudioBitrate=384000&MaxWidth=3840&AudioStreamIndex=1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&SubtitleStreamIndexes=-1&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=62&TranscodeReasons=VideoCodecNotSupported,AudioCodecNotSupported
plugin.js?v=4.8.11.0:1 setCurrentTrackElement Setting new text track index to: -1
plugin.js?v=4.8.11.0:1 mediaStreamTextTracks: 0
plugin.js?v=4.8.11.0:1 setCurrentTrackElement targetIndex: -1, track language: undefined
videoosd.js?v=4.8.11.0:1 focusMainOsdControls
videoosd.js?v=4.8.11.0:1 error locking orientation: NotSupportedError: screen.orientation.lock() is not available on this device.
dom.js?v=4.8.11.0:1 dom getWindowSize
cardbuilder.js?v=4.8.11.0:1 getImageWidth: card backdropCard card-horiz backdropCard-horiz card-hoverable card-autoactive2060normal
cardbuilder.js?v=4.8.11.0:1 card width: 362 - card backdropCard card-horiz backdropCard-horiz card-hoverable card-autoactive
appheadercontent.js?v=4.8.11.0:1 header height : 80
registrationservices.js?v=4.8.11.0:1 validateFeature: dvr
connectionmanager.js?v=4.8.11.0:1 getRegistrationInfo returning cached info
videoosd.js?v=4.8.11.0:1 nowplaying event: playbackstart
osdcontroller.js?v=4.8.11.0:1 onPositionSliderEndEditing
videoosd.js?v=4.8.11.0:1 updateTransparency: isLocalVideo:true, mediaType:Video
videoosd.js?v=4.8.11.0:1 attempting to lock orientation to: any
registrationservices.js?v=4.8.11.0:1 validateFeature: dvr
connectionmanager.js?v=4.8.11.0:1 getRegistrationInfo returning cached info
videoosd.js?v=4.8.11.0:1 error locking orientation: NotSupportedError: screen.orientation.lock() is not available on this device.
plugin.js?v=4.8.11.0:1 setInitialSubtitleTrack
plugin.js?v=4.8.11.0:1 setCurrentTrackElement Setting new text track index to: -1
plugin.js?v=4.8.11.0:1 mediaStreamTextTracks: 0
plugin.js?v=4.8.11.0:1 setCurrentTrackElement targetIndex: -1, track language: undefined
videoosd.js?v=4.8.11.0:1 focusMainOsdControls
htmlmediahelper.js?v=4.8.11.0:1 HLS Error: Type: mediaError Details: bufferAppendError Fatal: true Reason: 
htmlmediahelper.js?v=4.8.11.0:1 media error encountered, try to recover
htmlmediahelper.js?v=4.8.11.0:1 try to recover media Error ...
htmlmediahelper.js?v=4.8.11.0:1 HLS Error: Type: mediaError Details: bufferAppendError Fatal: true Reason: 
htmlmediahelper.js?v=4.8.11.0:1 media error encountered, try to recover
htmlmediahelper.js?v=4.8.11.0:1 try to swap Audio Codec and recover media Error ...
htmlmediahelper.js?v=4.8.11.0:1 HLS Error: Type: mediaError Details: bufferAppendError Fatal: true Reason: 
htmlmediahelper.js?v=4.8.11.0:1 media error encountered, try to recover
htmlmediahelper.js?v=4.8.11.0:1 try to recover media Error ...
videoosd.js?v=4.8.11.0:1 focusMainOsdControls
osdcontroller.js?v=4.8.11.0:1 onPositionSliderEndEditing
htmlmediahelper.js?v=4.8.11.0:1 HLS Error: Type: mediaError Details: bufferStalledError Fatal: false Reason: 
videoosd.js?v=4.8.11.0:1 focusMainOsdControls
videoosd.js?v=4.8.11.0:1 

 

Edited by RetroZelda
anonymizing
Posted

OK we'll take a look at it. Thanks.

  • 1 month later...
yoyoyopop40
Posted

Same issue here I believe. Only occurs on 4K direct play for me.

Posted
14 hours ago, yoyoyopop40 said:

Same issue here I believe. Only occurs on 4K direct play for me.

Then if it’s direct playing it is an issue in one browser video player. 
try clicking the playback correction button in the web app video player. It is a feature that is designed for this very purpose that will switch to server transcoding to try and produce something that your browser will play.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...