Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accelerated video decoding in Chrome?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Tue Apr 30, 2019 5:53 pm    Post subject: Accelerated video decoding in Chrome? Reply with quote

Does anyone have hardware accelerated decoding working in Chromium or Chrome? I'm reading that it's supposed to work but I'm hitting dead ends.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5913

PostPosted: Tue Apr 30, 2019 8:13 pm    Post subject: Reply with quote

about:gpu should contain an explanation as to if/why it's not working. If not, you might have to change a related setting in about:flags to force-enable it.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Sun May 12, 2019 7:51 pm    Post subject: Reply with quote

I'm on this hardware:

https://www.gigabyte.com/us/Mini-PcBarebone/GB-BXBT-2807-rev-10#ov

These errors in about:gpu stand out because none of them appear in about:gpu on my Gentoo laptop:

Code:
Hardware Protected Video Decode: Unavailable
Video Decode: Unavailable
Accelerated video decode is unavailable on Linux: 137247
    Disabled Features: accelerated_video_decode
Protected video decoding with swap chain is for Windows and Intel only
    Disabled Features: protected_video_decode


Here's the full about:gpu:

Code:

Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Disabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Out-of-process Rasterization: Disabled
Hardware Protected Video Decode: Unavailable
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Disabled
Surface Control: Disabled
Surface Synchronization: Enabled
Video Decode: Unavailable
Viz Service Display Compositor: Enabled
Viz Hit-test Surface Layer: Enabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Driver Bug Workarounds
adjust_src_dst_region_for_blitframebuffer
clear_uniforms_before_first_program_use
count_all_in_varyings_packing
decode_encode_srgb_for_generatemipmap
disable_post_sub_buffers_for_onscreen_surfaces
exit_on_context_lost
max_3d_array_texture_size_1024
max_texture_size_limit_4096
msaa_is_slow
rely_on_implicit_sync_for_swap_buffers
scalarize_vec_and_mat_constructor_args
disabled_extension_GL_KHR_blend_equation_advanced
disabled_extension_GL_KHR_blend_equation_advanced_coherent
Problems Detected
Accelerated video decode is unavailable on Linux: 137247
Disabled Features: accelerated_video_decode
Protected video decoding with swap chain is for Windows and Intel only
Disabled Features: protected_video_decode
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Mesa drivers in Linux handle varyings without static use incorrectly: 333885
Applied Workarounds: count_all_in_varyings_packing
Disable partial swaps on Mesa drivers (detected with GL_RENDERER): 339493
Applied Workarounds: disable_post_sub_buffers_for_onscreen_surfaces
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565
Applied Workarounds: msaa_is_slow
Disable partial swaps on Mesa drivers (detected with GL_VERSION): 339493
Applied Workarounds: disable_post_sub_buffers_for_onscreen_surfaces
Decode and encode before generateMipmap for srgb format textures on os except macosx: 634519
Applied Workarounds: decode_encode_srgb_for_generatemipmap
adjust src/dst region if blitting pixels outside framebuffer on Linux Intel: 664740
Applied Workarounds: adjust_src_dst_region_for_blitframebuffer
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)
Some drivers can't recover after OUT_OF_MEM and context lost: 893177
Applied Workarounds: exit_on_context_lost
Avoid waiting on a egl fence before swapping buffers and rely on implicit sync on Intel GPUs: 938286
Applied Workarounds: rely_on_implicit_sync_for_swap_buffers
Mesa hangs the system when allocating large textures: 927470
Applied Workarounds: max_3d_array_texture_size_1024, max_texture_size_limit_4096
Raster is using a single thread.
Disabled Features: multiple_raster_threads
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
Skia renderer is not used by default.
Disabled Features: skia_renderer
Version Information
Data exported   2019-05-12T19:42:20.235Z
Chrome version   Chrome/75.0.3770.9
Operating system   Linux 4.19.27-gentoo-r1
Software rendering list URL   https://chromium.googlesource.com/chromium/src/+/57b04b7c3a6b666023828459acaa0b2946e27a9e/gpu/config/software_rendering_list.json
Driver bug list URL   https://chromium.googlesource.com/chromium/src/+/57b04b7c3a6b666023828459acaa0b2946e27a9e/gpu/config/gpu_driver_bug_list.json
ANGLE commit id   85a239d09128
2D graphics backend   Skia/75 847d55be4e6273fc3cd9c0b30c7bfc8a2d6575b7
Command Line   /usr/bin/google-chrome-unstable --flag-switches-begin --flag-switches-end
Driver Information
Initialization time   378
In-process GPU   false
Passthrough Command Decoder   false
Sandboxed   false
GPU0   VENDOR = 0x8086 [Intel Open Source Technology Center], DEVICE= 0x0f31 [Mesa DRI Intel(R) Bay Trail ] *ACTIVE*
Optimus   false
AMD switchable   false
Driver vendor   Mesa
Driver version   18.3.6
Driver date   
GPU CUDA compute capability major version   0
Pixel shader version   4.20
Vertex shader version   4.20
Max. MSAA samples   8
Machine model name   
Machine model version   
GL_VENDOR   Intel Open Source Technology Center
GL_RENDERER   Mesa DRI Intel(R) Bay Trail
GL_VERSION   4.2 (Core Profile) Mesa 18.3.6
GL_EXTENSIONS   GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_performance_query GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_NV_conditional_render GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
Disabled Extensions   GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent
Disabled WebGL Extensions   
Window system binding vendor   SGI
Window system binding version   1.4
Window system binding extensions   GLX_ARB_create_context GLX_ARB_create_context_no_error GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_multisample GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_libglvnd GLX_EXT_no_config_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer GLX_OML_swap_method GLX_SGI_make_current_read GLX_SGI_swap_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_INTEL_swap_event
Window manager   Xfwm4
XDG_CURRENT_DESKTOP   XFCE
GDMSESSION   xfce
Compositing manager   No
Direct rendering version   DRI2
Reset notification strategy   0x8252
GPU process crash count   0
System visual ID   32
RGBA visual ID   262
Compositor Information
Tile Update Mode   One-copy
Partial Raster   Enabled
GpuMemoryBuffers Status
R_8   Software only
R_16   Software only
RG_88   Software only
BGR_565   Software only
RGBA_4444   Software only
RGBX_8888   Software only
RGBA_8888   Software only
BGRX_8888   Software only
BGRX_1010102   Software only
RGBX_1010102   Software only
BGRA_8888   Software only
RGBA_F16   Software only
YVU_420   Software only
YUV_420_BIPLANAR   Software only
UYVY_422   Software only
Display(s) Information
Info   Display[18348234073474371] bounds=[0,0 1920x1080], workarea=[0,0 1920x1080], scale=1, external.
Color space information   {primaries:INVALID, transfer:INVALID, matrix:INVALID, range:INVALID}
Bits per color component   8
Bits per pixel   24
Video Acceleration Information
Log Messages
[6855:6855:0512/124207.474417:ERROR:sandbox_linux.cc(368)] : InitializeSandbox() called with multiple threads in process gpu-process.
[6855:6855:0512/124208.364300:ERROR:buffer_manager.cc(488)] : [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Wed May 15, 2019 2:52 pm    Post subject: Reply with quote

Does chrome accelerate decoding or just chromium? If only chromium currently then this makes sense.
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 468

PostPosted: Wed May 15, 2019 4:03 pm    Post subject: Reply with quote

What that page says doesn't matter, what matters is do you see a difference when you turn on/off hardware acceleration.

I don't use Chrome or Chromium, switched to Vivaldi recently from Firefox and I too have problems detected in that gpu page, but I can clearly see a difference when I turn on/off hw acceleration.
Try with this animation:
http://ondras.github.io/fireworks-webgl/
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Fri May 17, 2019 2:35 pm    Post subject: Reply with quote

I just installed Vivaldi but how do you turn on/off hardware acceleration in that browser? about:gpu and about:flags don't work there.

But I think that fireworks animation is only testing webgl acceleration and I need decode accelerated.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Fri May 17, 2019 3:12 pm    Post subject: Reply with quote

Found the on/off switch in vivaldi://flags and somehow got rid of the accelerated decode errors in about:gpu in chrome but performance is still subpar on Netflix. All streaming video is perfectly smooth in Kodi and also on Amazon in chrome.
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 468

PostPosted: Fri May 17, 2019 3:47 pm    Post subject: Reply with quote

In Settings->Webpages you can turn it on/off

btw do you have chromium USE flag on ffmpeg ?
if yes then you need to replace the file that ships with Vivaldi
Code:
ln -s /usr/lib64/chromium/libffmpeg.so /opt/vivaldi/lib/libffmpeg.so
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 468

PostPosted: Fri May 17, 2019 4:18 pm    Post subject: Reply with quote

Actually you're right and I got it wrong completely, sorry about that.
I don't use Netflix, Amazon and didn't notice any problems watching HD videos, I thought it was using gpu, but now I compared it with Firefox and I see the difference in cpu usage, in firefox is as in Kodi and mpv, around 7%, in Vivaldi it's around 25%

I'll investigate more, I just recently switched to it.
How did you solved this message ?
Code:
Video Decode: Unavailable
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 468

PostPosted: Fri May 17, 2019 5:59 pm    Post subject: Reply with quote

Tried Chrome and Opera and I don't have video hw acceleration there as well.
Only in Firefox I have it.
Maybe VAAPI works but I'm on VDPAU

I like Vivaldi but I think I'm going back to Firefox, even though I don't even notice the difference when cpu renders the video, it bugs me now.
Ah.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Sat May 18, 2019 10:12 pm    Post subject: Reply with quote

I'm not totally sure how I got rid of those errors. Did you enable #ignore-gpu-blacklist? That might have been what did it. But in my own experience here as well as what I've read online is that getting rid of those errors does not mean acceleration is actually working.

Do you think it's safe to say no one on Gentoo has hardware acceleration in Chrome/Chromium?
Back to top
View user's profile Send private message
kajzer
Guru
Guru


Joined: 27 Nov 2014
Posts: 468

PostPosted: Sun May 19, 2019 12:01 am    Post subject: Reply with quote

I think that in Linux there's no browser which supports video decode by gpu.
I got that by reading these days about it.
In my case firefox does use much less cpu when watching 1080p then chrome/vivaldi/opera, didn't try chromium, I figure they're all the same family.
I thought it was using gpu to be honest, I guess there's a way to actually see that but I don't know how to do it, didn't even try.
I read some articles how chromium can be patched to use vaapi.

Right now I'm back with Firefox and I removed all other browsers.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 992

PostPosted: Sun May 19, 2019 12:10 am    Post subject: Reply with quote

Yeah I saw that about the Chromium patch in other distros that enables GPU decoding:

https://www.linuxuprising.com/2018/08/how-to-enable-hardware-accelerated.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum