Alex313031 / thorium

Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md.
https://thorium.rocks/
BSD 3-Clause "New" or "Revised" License
4.68k stars 145 forks source link

HEVC on latest thorium not working. #798

Open thnkman opened 2 weeks ago

thnkman commented 2 weeks ago

System Details

env variables: export LIBVA_DRIVER_NAME=iHD export VDPAU_DRIVER=va_gl export VAAPI_MPEG4_ENABLED=true

vainfo: vainfo: VA-API version: 1.22 (libva 2.22.0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.2.5 () vainfo: Supported profile and entrypoints VAProfileNone : VAEntrypointVideoProc VAProfileNone : VAEntrypointStats VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointFEI VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264High : VAEntrypointFEI VAProfileH264High : VAEntrypointEncSliceLP VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointFEI VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointFEI VAProfileHEVCMain : VAEntrypointEncSliceLP VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointEncSliceLP VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointEncSliceLP VAProfileVP9Profile1 : VAEntrypointVLD VAProfileVP9Profile1 : VAEntrypointEncSliceLP VAProfileVP9Profile2 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointEncSliceLP VAProfileVP9Profile3 : VAEntrypointVLD VAProfileVP9Profile3 : VAEntrypointEncSliceLP VAProfileHEVCMain12 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointEncSlice VAProfileHEVCMain422_10 : VAEntrypointVLD VAProfileHEVCMain422_10 : VAEntrypointEncSlice VAProfileHEVCMain422_12 : VAEntrypointVLD VAProfileHEVCMain422_12 : VAEntrypointEncSlice VAProfileHEVCMain444 : VAEntrypointVLD VAProfileHEVCMain444 : VAEntrypointEncSliceLP VAProfileHEVCMain444_10 : VAEntrypointVLD VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP VAProfileHEVCMain444_12 : VAEntrypointVLD VAProfileHEVCSccMain : VAEntrypointVLD VAProfileHEVCSccMain : VAEntrypointEncSliceLP VAProfileHEVCSccMain10 : VAEntrypointVLD VAProfileHEVCSccMain10 : VAEntrypointEncSliceLP VAProfileHEVCSccMain444 : VAEntrypointVLD VAProfileHEVCSccMain444 : VAEntrypointEncSliceLP VAProfileAV1Profile0 : VAEntrypointVLD VAProfileHEVCSccMain444_10 : VAEntrypointVLD VAProfileHEVCSccMain444_10 : VAEntrypointEncSliceLP

thorium-browser flags:

Canvas: Hardware accelerated Canvas out-of-process rasterization: Disabled Direct Rendering Display Compositor: Disabled Compositing: Hardware accelerated Multiple Raster Threads: Enabled OpenGL: Enabled Rasterization: Hardware accelerated Raw Draw: Disabled Skia Graphite: Disabled Video Decode: Hardware accelerated Video Encode: Hardware accelerated Vulkan: Enabled WebGL: Hardware accelerated WebGL2: Hardware accelerated WebGPU: Disabled

Problem thorium-browser will no longer playback HEVC videos. Tested using https://thorium.rocks/misc/h265-tester.html Tested latest google chrome, and it works, although without sound.

midzer commented 2 weeks ago

https://thorium.rocks/misc/h265-tester.html works for me using latest Thorium (M126).

You use

Thorium Version 122.0.6261.132

Please update and try again.

genesis224 commented 2 weeks ago

image Same here it doesnt work on Windows with latest thorium build

thnkman commented 2 weeks ago

https://thorium.rocks/misc/h265-tester.html works for me using latest Thorium (M126).

You use

Thorium Version 122.0.6261.132

Please update and try again.

Odd, i was sure i was running the latest version. In any regard, i removed 122, deleted all cache files and directories (.cache/thorium & .config/thorium) installed 126, but the problem persists.

Flags tried: thorium-browser --enable-features=VaapiVideoDecodeLinuxGL --ozone-platform=x11 thorium-browser --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan,VaapiIgnoreDriverChecks,VaapiVideoDecoder,VaapiVideoEncoder Error: ERROR:vaapi_video_decoder.cc(1212)] failed Initialize()ing the frame pool

chrome://gpu:

Video Acceleration Information

Decoding : Decode h264 baseline : 16x16 to 4096x4096 pixels Decode h264 main : 16x16 to 4096x4096 pixels Decode h264 high : 16x16 to 4096x4096 pixels Decode vp8 : 16x16 to 4096x4096 pixels Decode vp9 profile0 : 16x16 to 16384x16384 pixels Decode vp9 profile2 : 16x16 to 16384x16384 pixels Decode hevc main : 16x16 to 16384x16384 pixels Decode hevc main 10 : 16x16 to 16384x16384 pixels Decode hevc main still-picture: 16x16 to 16384x16384 pixels Decode av1 profile main : 16x16 to 16384x16384 pixels

Alex313031 commented 1 week ago

@midzer @genesis224 @thnkman I am not able to recreate this on any of my machines. I have one with a core 2 duo and integrated graphics, a 4th gen laptop with AMD graphics, and my main system with nvidia graphics. Two of those have no hardware HEVC decoding support, which is what Thorium's patches are for, to allow HEVC and AC3 no matter what, falling back to software FFMPEG decoding if needed.

I can play HEVC videos on test sites, as well as the AC3 test files on my site.

thnkman commented 1 week ago

@midzer @genesis224 @thnkman I am not able to recreate this on any of my machines. I have one with a core 2 duo and integrated graphics, a 4th gen laptop with AMD graphics, and my main system with nvidia graphics. Two of those have no hardware HEVC decoding support, which is what Thorium's patches are for, to allow HEVC and AC3 no matter what, falling back to software FFMPEG decoding if needed.

I can play HEVC videos on test sites, as well as the AC3 test files on my site.

Then i am at a loss. Thanks for checking.

Alex313031 commented 1 week ago

@thnkman Are you using the regular AVX build? Because I think I may have found why

thnkman commented 1 week ago

@thnkman Are you using the regular AVX build? Because I think I may have found why

Yes, i am using the AVX2 build

gz83 commented 1 week ago

@thnkman Are you using the regular AVX build? Because I think I may have found why

Yes, i am using the AVX2 build

Please try these flags

https://git.launchpad.net/~chromium-team/chromium-browser/+git/snap-from-source/diff/launcher/chromium.launcher?id=146a69e604ba05ff2b59ccdc3b0e647cd4d61139

thnkman commented 1 week ago

@thnkman Are you using the regular AVX build? Because I think I may have found why

Yes, i am using the AVX2 build

Please try these flags

https://git.launchpad.net/~chromium-team/chromium-browser/+git/snap-from-source/diff/launcher/chromium.launcher?id=146a69e604ba05ff2b59ccdc3b0e647cd4d61139

Still getting ERROR:vaapi_video_decoder.cc(1212)] failed Initialize()ing the frame pool