brave / brave-browser

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

No video hardware decode #21406

Open kramer04 opened 2 years ago

kramer04 commented 2 years ago

Ubuntu 22.04 using X11 or wayland Version 1.37.77 Chromium: 99.0.4844.45 (Build officiel) beta (64 bits)

Play video youtube but no hardware decode using FFmpegVideoDecoder

Steps to Reproduce

  1. launch in a terminal brave-browser-beta --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --disable-features=UseChromeOSDirectVideoDecoder

Actual result:

On Youtube Decoder name: VpxVideoDecoder Hardware decoder : false

Graphics Feature Status Canvas: Hardware accelerated Canvas out-of-process rasterization: Enabled Direct Rendering Display Compositor: Disabled Compositing: Hardware accelerated Multiple Raster Threads: Enabled OpenGL: Enabled Rasterization: Hardware accelerated on all pages Raw Draw: Disabled Skia Renderer: Enabled Video Decode: Hardware accelerated Video Encode: Hardware accelerated Vulkan: Disabled WebGL: Hardware accelerated WebGL2: Hardware accelerated

Driver Bug Workarounds adjust_src_dst_region_for_blitframebuffer clear_uniforms_before_first_program_use disable_discard_framebuffer enable_webgl_timer_query_extensions exit_on_context_lost force_cube_complete init_gl_position_in_vertex_shader init_vertex_attributes pack_parameters_workaround_with_pack_buffer reset_base_mipmap_level_before_texstorage unpack_alignment_workaround_with_unpack_buffer unpack_overlapping_rows_separately_unpack_buffer use_virtualized_gl_contexts disabled_extension_GL_KHR_blend_equation_advanced disabled_extension_GL_KHR_blend_equation_advanced_coherent disabled_extension_GL_MESA_framebuffer_flip_y Problems Detected [Program link fails in NVIDIA Linux if gl_Position is not set](): 286468 Applied Workarounds: init_gl_position_in_vertex_shader [Clear uniforms before first program use on all platforms](): 124764, 349137 Applied Workarounds: clear_uniforms_before_first_program_use [Linux NVIDIA drivers don't have the correct defaults for vertex attributes](): 351528 Applied Workarounds: init_vertex_attributes [MakeCurrent is slow on Linux with NVIDIA drivers](): 449150, 514510 Applied Workarounds: use_virtualized_gl_contexts [NVIDIA fails glReadPixels from incomplete cube map texture](): 518889 Applied Workarounds: force_cube_complete [Pack parameters work incorrectly with pack buffer bound](): 563714 Applied Workarounds: pack_parameters_workaround_with_pack_buffer [Alignment works incorrectly with unpack buffer bound](): 563714 Applied Workarounds: unpack_alignment_workaround_with_unpack_buffer [Framebuffer discarding can hurt performance on non-tilers](): 570897 Applied Workarounds: disable_discard_framebuffer [Unpacking overlapping rows from unpack buffers is unstable on NVIDIA GL driver](): 596774 Applied Workarounds: unpack_overlapping_rows_separately_unpack_buffer [Disable KHR_blend_equation_advanced until cc shaders are updated](): 661715 Applied Workarounds: disable(GL_KHR_blend_equation_advanced), disable(GL_KHR_blend_equation_advanced_coherent) [Expose WebGL's disjoint_timer_query extensions on platforms with site isolation](): 808744, 870491 Applied Workarounds: enable_webgl_timer_query_extensions [glTexStorage* are buggy when base mipmap level is not 0](): 877874 Applied Workarounds: reset_base_mipmap_level_before_texstorage [Some drivers can't recover after OUT_OF_MEM and context lost](): 893177 Applied Workarounds: exit_on_context_lost [adjust src/dst region if blitting pixels outside framebuffer on Linux NVIDIA](): 830046 Applied Workarounds: adjust_src_dst_region_for_blitframebuffer [Disable GL_MESA_framebuffer_flip_y for desktop GL](): 964010 Applied Workarounds: disable(GL_MESA_framebuffer_flip_y)

Expected result:

hardware decode

kramer04 commented 2 years ago

Now i'm on Version 1.37.97 Chromium: 99.0.4844.74 (Build officiel) beta (64 bits)

and same issue

Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: EnabledGraphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Enabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

No hardware video decode when playing video for example on youtube

Pratham16112002 commented 1 year ago

Now i'm on Version 1.37.97 Chromium: 99.0.4844.74 (Build officiel) beta (64 bits)

and same issue

Graphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: EnabledGraphics Feature Status
Canvas: Hardware accelerated
Canvas out-of-process rasterization: Enabled
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Direct Rendering Display Compositor: Disabled
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
OpenGL: Enabled
Rasterization: Hardware accelerated on all pages
Raw Draw: Disabled
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Video Encode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

No hardware video decode when playing video for example on youtube

Found any fix ?

kramer04 commented 1 year ago

no, just go back to firefox

Pratham16112002 commented 1 year ago

no, just go back to firefox

Btw which gpu ? For me firefox is also not working 🥲

kramer04 commented 1 year ago

nvidia https://discourse.ubuntu.com/t/enabling-accelerated-video-decoding-in-firefox-on-ubuntu-21-04/22081

ch3n9w commented 1 year ago

Same here, Firefox can use vaapi to decode video, but brave can't, I have only one AMD gpu.