LINUX.ORG.RU

История изменений

Исправление melkor217, (текущая версия) :

кодирование или декодирование?

Второе.

VAEntrypointVLD means that your card is capable to decode this format, VAEntrypointEncSlice means that you can encode to this format.

Вот пример:

[dan@dan-desktop ~]$ vainfo
vainfo: VA-API version: 1.7 (libva 2.7.1)
vainfo: Driver version: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0)
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
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Если под вяленым поставить пару флажков в Firefox Nightly, то будет ютубчик через vaapi:

[dan@dan-desktop ~]$ cat /tmp/firelog|grep -E 'AVHWDeviceContext|vp9'|head -n 30
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] VAAPI driver: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0).
[AVHWDeviceContext @ 0x7fe13eb27bc0] Driver not found in known nonstandard list, using standard behaviour.
[vp9 @ 0x7fe128f6f800] Format vaapi_vld chosen by get_format().
[vp9 @ 0x7fe128f6f800] Format vaapi_vld requires hwaccel initialisation.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Decode context initialised: 0x13/0x14.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (82302 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x12.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (9812 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x11.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.

Ну и twitch с его h264 тоже работает.

p.s. Тот же фокус на последнем релизе FF не прокатывает - GPU уходит в ресет и херит всю видеопамять :D

p.p.s. За карточку ТСа ничего не знаю, тем более за хромиум - у меня 83.0.4103.61 честно говорит, что Video Decode: Unavailable.

Исправление melkor217, :

кодирование или декодирование?

Второе.

VAEntrypointVLD means that your card is capable to decode this format, VAEntrypointEncSlice means that you can encode to this format.

Вот пример:

[dan@dan-desktop ~]$ vainfo
vainfo: VA-API version: 1.7 (libva 2.7.1)
vainfo: Driver version: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0)
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
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Если под вяленым поставить пару флажков в Firefox Nightly, то будет ютубчик через vaapi:

[dan@dan-desktop ~]$ cat /tmp/firelog|grep -E 'AVHWDeviceContext|vp9'|head -n 30
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] VAAPI driver: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0).
[AVHWDeviceContext @ 0x7fe13eb27bc0] Driver not found in known nonstandard list, using standard behaviour.
[vp9 @ 0x7fe128f6f800] Format vaapi_vld chosen by get_format().
[vp9 @ 0x7fe128f6f800] Format vaapi_vld requires hwaccel initialisation.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Decode context initialised: 0x13/0x14.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (82302 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x12.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (9812 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x11.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.

Ну и twitch с его h264 тоже работает.

p.s. Тот же фокус на последнем релизе FF не прокатывает - GPU уходит в ресет и херит всю видеопамять :D

p.p.s. За карточку ТСа ничего не знаю

Исправление melkor217, :

кодирование или декодирование?

Второе.

VAEntrypointVLD means that your card is capable to decode this format, VAEntrypointEncSlice means that you can encode to this format.

Вот пример:

[dan@dan-desktop ~]$ vainfo
vainfo: VA-API version: 1.7 (libva 2.7.1)
vainfo: Driver version: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0)
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
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Если под вяленым поставить пару флажков в Firefox Nightly, то будет ютубчик через vaapi:

[dan@dan-desktop ~]$ cat /tmp/firelog|grep -E 'AVHWDeviceContext|vp9'|head -n 30
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] VAAPI driver: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0).
[AVHWDeviceContext @ 0x7fe13eb27bc0] Driver not found in known nonstandard list, using standard behaviour.
[vp9 @ 0x7fe128f6f800] Format vaapi_vld chosen by get_format().
[vp9 @ 0x7fe128f6f800] Format vaapi_vld requires hwaccel initialisation.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Decode context initialised: 0x13/0x14.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (82302 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x12.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (9812 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x11.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.

Ну и twitch с его h264 тоже работает.

p.s. Тот же фокус на последнем релизе FF не прокатывает - GPU уходит в ресет херит всю видеопамять :D

p.p.s. За карточку ТСа ничего не знаю

Исходная версия melkor217, :

кодирование или декодирование?

Второе.

VAEntrypointVLD means that your card is capable to decode this format, VAEntrypointEncSlice means that you can encode to this format.

Вот пример:

[dan@dan-desktop ~]$ vainfo
vainfo: VA-API version: 1.7 (libva 2.7.1)
vainfo: Driver version: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0)
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
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc

Если под вяленым поставить пару флажков в Firefox Nightly, то будет ютубчик через vaapi:

[dan@dan-desktop ~]$ cat /tmp/firelog|grep -E 'AVHWDeviceContext|vp9'|head -n 30
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x7fe13eb27bc0] VAAPI driver: Mesa Gallium driver 20.0.7 for Radeon RX 5500 XT (NAVI14, DRM 3.36.0, 5.6.13-arch1-1, LLVM 10.0.0).
[AVHWDeviceContext @ 0x7fe13eb27bc0] Driver not found in known nonstandard list, using standard behaviour.
[vp9 @ 0x7fe128f6f800] Format vaapi_vld chosen by get_format().
[vp9 @ 0x7fe128f6f800] Format vaapi_vld requires hwaccel initialisation.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Considering format 0x3231564e -> nv12.
[vp9 @ 0x7fe128f6f800] Picked nv12 (0x3231564e) as best match for yuv420p.
[vp9 @ 0x7fe128f6f800] Decode context initialised: 0x13/0x14.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (82302 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x12.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.
[vp9 @ 0x7fe128f6f800] Slice 0 data buffer (9812 bytes) is 0x17.
[vp9 @ 0x7fe128f6f800] Decode to surface 0x11.
[vp9 @ 0x7fe128f6f800] Param buffer (type 0, 92 bytes) is 0x15.
[vp9 @ 0x7fe128f6f800] Slice 0 param buffer (316 bytes) is 0x16.

Ну и twitch с его h264 тоже работает.

p.s. Тот же фокус на последнем релизе FF не прокатывает - GPU уходит в ресет херит всю видеопамять :D