[Desktop-packages] [Bug 1816497] Re: [snap] vaapi chromium no video hardware decoding

2020-08-07 Thread Marc Lijour
Tested the snap package and it works fine!
Running on DELL XPS13
Version 84.0.4147.89 (Official Build) snap (64-bit)
+ using the h264ify extension in the browser to force Youtube (VP9 by default) 
to run on h264


$ sudo snap install --channel=candidate/vaapi chromium

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

$ vainfo
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
  VAProfileMPEG2Simple: VAEntrypointVLD
  VAProfileMPEG2Main  : VAEntrypointVLD
  VAProfileH264Main   : VAEntrypointVLD
  VAProfileH264Main   : VAEntrypointEncSliceLP
  VAProfileH264High   : VAEntrypointVLD
  VAProfileH264High   : VAEntrypointEncSliceLP
  VAProfileJPEGBaseline   : VAEntrypointVLD
  VAProfileJPEGBaseline   : VAEntrypointEncPicture
  VAProfileH264ConstrainedBaseline: VAEntrypointVLD
  VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
  VAProfileVP8Version0_3  : VAEntrypointVLD
  VAProfileHEVCMain   : VAEntrypointVLD
  VAProfileHEVCMain10 : VAEntrypointVLD
  VAProfileVP9Profile0: VAEntrypointVLD
  VAProfileVP9Profile2: VAEntrypointVLD


chrome://media-internals/

Timestamp   PropertyValue
00:00:00.000origin_url  "https://www.youtube.com/;
00:00:00.000kFrameUrl   "https://www.youtube.com/watch?v=LXb3EKWsInQ;
00:00:00.000kFrameTitle "COSTA RICA IN 4K 60fps HDR (ULTRA HD) - 
YouTube"
00:00:00.000url 
"blob:https://www.youtube.com/bd1489d5-5381-4f8a-b3c0-90023da92ae9;
00:00:00.000info"ChunkDemuxer"
00:00:00.000pipeline_state  "kStarting"
00:00:00.036kVideoTracks[{"alpha 
mode":"is_opaque","codec":"h264","coded size":"1920x1080","color 
space":"{primaries:BT709, transfer:BT709, matrix:BT709, 
range:LIMITED}","encryption scheme":"Unencrypted","has extra data":false,"hdr 
metadata":"unset","natural size":"1920x1080","orientation":"0°","profile":"h264 
high","visible rect":"0,0 1920x1080"}]
00:00:00.036kAudioTracks[{"bytes per channel":2,"bytes per 
frame":4,"channel layout":"STEREO","channels":2,"codec":"aac","codec 
delay":0,"discard decoder delay":false,"encryption scheme":"Unencrypted","has 
extra data":false,"profile":"unknown","sample format":"Signed 16-bit","samples 
per second":44100,"seek preroll":"0us"}]
00:00:00.039info"Effective playback rate changed from 0 to 1"
00:00:00.039event   "kPlay"
00:00:00.045kIsAudioDecryptingDemuxerStream false
00:00:00.045kAudioDecoderName   "FFmpegAudioDecoder"
00:00:00.045kIsPlatformAudioDecoder false
00:00:00.045info"Selected FFmpegAudioDecoder for audio decoding, 
config: codec: aac, profile: unknown, bytes_per_channel: 2, channel_layout: 
STEREO, channels: 2, samples_per_second: 44100, sample_format: Signed 16-bit, 
bytes_per_frame: 4, seek_preroll: 0us, codec_delay: 0, has extra data: false, 
encryption scheme: Unencrypted, discard decoder delay: false"
00:00:00.046error   
"{\"causes\":[{\"causes\":[],\"data\":{},\"stack\":[{\"file\":\"../../media/filters/decrypting_video_decoder.cc\",\"line\":53}],\"status_code\":264,\"status_message\":\"\"}],\"data\":{\"Decoder
 
name\":\"DecryptingVideoDecoder\"},\"stack\":[{\"file\":\"../../media/filters/decoder_selector.cc\",\"line\":172}],\"status_code\":265,\"status_message\":\"\"}"
00:00:00.065kIsVideoDecryptingDemuxerStream false
00:00:00.065kVideoDecoderName   "MojoVideoDecoder"
00:00:00.065kIsPlatformVideoDecoder true
00:00:00.065info"Selected MojoVideoDecoder for video decoding, config: 
codec: h264, profile: h264 high, level: not available, alpha_mode: is_opaque, 
coded size: [1920,1080], visible rect: [0,0,1920,1080], natural size: 
[1920,1080], has extra data: false, encryption scheme: Unencrypted, rotation: 
0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, 
range:LIMITED}"
00:00:00.065pipeline_state  "kPlaying"
(...)

$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor 
Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 
v5/6th Gen Core Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI 
Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP 
Thermal subsystem (rev 21)
00:15.0 Signal processing controller: 

[Desktop-packages] [Bug 1816497] Re: [snap] vaapi chromium no video hardware decoding

2020-08-07 Thread Marc Lijour
This used to do the trick for me. Since an upgrade to 20.04 the decoding is not 
working properly. Chromium (86 here) is not calling MojoVideoDecoder.
https://www.linuxuprising.com/2018/08/how-to-enable-hardware-accelerated.html


That may be related to a switch to the iHD driver (active now according to 
vainfo). I noticed other problems with ffpmeg for screengrabbing.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1816497

Title:
  [snap] vaapi chromium no video hardware decoding

Status in chromium-browser package in Ubuntu:
  In Progress

Bug description:
  News :

  - Candidate Chromium 83 Snap with vaapi enabled can be installed with
  :

  sudo snap install --channel=candidate/vaapi chromium

  Check that your vidéo is gpu decoded but checking "MojoVideoDecoder"
  in about:media-internals

  Widevine DRM streams will have DecryptingVideoDecoder

  Please report success/failure with

  - distro version
  - GPU Hardware used
  - Codec used

  --Original Bug report -

  Libva is no longer working for snap installed chromium 72.0.3626.109
  (Official Build) snap (64-bit)

  I followed this instruction
  sudo snap install --channel=candidate/vaapi chromium

  My amdgpu can use libva

  `vainfo: Driver version: Mesa Gallium driver 18.3.3 for AMD STONEY (DRM 
3.27.0, 4.20.0-10.1-liquorix-amd64, LLVM 7.0.1)
  vainfo: Supported profile and entrypoints
    VAProfileMPEG2Simple:   VAEntrypointVLD
    VAProfileMPEG2Main  :   VAEntrypointVLD
    VAProfileVC1Simple  :   VAEntrypointVLD
    VAProfileVC1Main:   VAEntrypointVLD
    VAProfileVC1Advanced:   VAEntrypointVLD
    VAProfileH264ConstrainedBaseline:   VAEntrypointVLD
    VAProfileH264ConstrainedBaseline:   VAEntrypointEncSlice
    VAProfileH264Main   :   VAEntrypointVLD
    VAProfileH264Main   :   VAEntrypointEncSlice
    VAProfileH264High   :   VAEntrypointVLD
    VAProfileH264High   :   VAEntrypointEncSlice
    VAProfileHEVCMain   :   VAEntrypointVLD
    VAProfileHEVCMain10 :   VAEntrypointVLD
    VAProfileJPEGBaseline   :   VAEntrypointVLD
    VAProfileNone   :   VAEntrypointVideoProc`

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1816497/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp