[FFmpeg-user] av1_vaapi encoding testing

Patrick M. s7mon at web.de
Wed Oct 11 15:35:25 EEST 2023


On Wed, 11 Oct 2023 07:21:28 +0000
"Xiang, Haihao" <haihao.xiang-at-intel.com at ffmpeg.org> wrote:

> 
> > On Mon, 25 Sep 2023 04:39:53 +0000
> > "Xiang, Haihao" <haihao.xiang-at-intel.com at ffmpeg.org> wrote:
> > 
> > > On Vr, 2023-09-22 at 22:11 +0200, Patrick M. wrote:
> > > > On Fri, 22 Sep 2023 20:04:57 +0300
> > > > Dennis Mungai <dmngaie at gmail.com> wrote:
> > > > > 
> > > > > 
> > > > > That's good to hear. You may also want to ensure that the likes of
> > > > > OneVPL
> > > > > are up to date if you're using any of its encoder wrappers. It was
> > > > > formerly
> > > > > called (and implemented as) QuickSync (QSV).
> > > > > 
> > > > > > 
> > > > > _______________________________________________
> > > > > ffmpeg-user mailing list
> > > > > ffmpeg-user at ffmpeg.org
> > > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > > > 
> > > > > To unsubscribe, visit link above, or email
> > > > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > > > > 
> > > > 
> > > > Well i think they are - av1_vaapi works now without issues so far.
> > > > oneVPL-intel-gpu 23.3.2 and
> > > > oneVPL 2023.3.1
> > > > 
> > > > With direct QSV i had no luck yet - see
> > > > https://community.intel.com/t5/Media-Intel-oneAPI-Video/ffmpeg-6-using-qsv-on-ARC380/m-p/1524165/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufExNS0o5N1ZLMzlUMkRIfDE1MjQxNjV8U1VCU0NSSVBUSU9OU3xoSw
> > > 
> > > Could you double check whether /dev/dri/renderD129 is your Intel GPU ? 
> > Yes, sure:
> > 
> >  vainfo --display drm --device /dev/dri/renderD129
> > Trying display: drm
> > libva info: VA-API version 1.19.0
> > libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
> > libva info: Found init function __vaDriverInit_1_19
> > libva info: va_openDriver() returns 0
> > vainfo: VA-API version: 1.19 (libva 2.18.2)
> > vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.2 ()
> > vainfo: Supported profile and entrypoints
> > ...
> >       VAProfileAV1Profile0            : VAEntrypointVLD
> >       VAProfileAV1Profile0            : VAEntrypointEncSliceLP
> > 
> > 
> > l /dev/dri/by-path/
> > total 0
> > lrwxrwxrwx 1 root root  8 Sep 30  2023 pci-0000:2f:00.0-card -> ../card0
> > lrwxrwxrwx 1 root root 13 Sep 30  2023 pci-0000:2f:00.0-render ->
> > ../renderD128
> > lrwxrwxrwx 1 root root  8 Sep 30  2023 pci-0000:32:00.0-card -> ../card1
> > lrwxrwxrwx 1 root root 13 Sep 30  2023 pci-0000:32:00.0-render ->
> > ../renderD129
> > 
> > 
> > and from lspci 
> > 
> > 32:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A380] (rev 05)
> > (prog-if 00 [VGA controller])
> >         Subsystem: ASRock Incorporation DG2 [Arc A380]
> >         Flags: bus master, fast devsel, latency 0, IRQ 46, IOMMU group 2
> >         Memory at fa000000 (64-bit, non-prefetchable) [size=16M]
> >         Memory at 7fc0000000 (64-bit, prefetchable) [size=256M]
> >         Expansion ROM at fb000000 [disabled] [size=2M]
> >         Capabilities: [40] Vendor Specific Information: Len=0c <?>
> >         Capabilities: [70] Express Endpoint, MSI 00
> >         Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit+
> >         Capabilities: [d0] Power Management version 3
> >         Capabilities: [100] Alternative Routing-ID Interpretation (ARI)
> >         Capabilities: [420] Physical Resizable BAR
> >         Capabilities: [400] Latency Tolerance Reporting
> >         Kernel driver in use: i915
> > 
> 
> Thanks for the detailed info, could you try with
> https://github.com/intel-media-ci/ffmpeg/pull/682 ? 



Hi,

yes that update for libavutil enables proper session creation for me.

Without:
AVHWDeviceContext @ 0x563d94c1f080] libva: VA-API version 1.19.0
[AVHWDeviceContext @ 0x563d94c1f080] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x563d94c1f080] libva: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
[AVHWDeviceContext @ 0x563d94c1f080] libva: Found init function __vaDriverInit_1_19
[AVHWDeviceContext @ 0x563d94c1f080] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x563d94c1f080] Initialised VAAPI connection: version 1.19
[AVHWDeviceContext @ 0x563d94c1f080] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.3.2 ().
[AVHWDeviceContext @ 0x563d94c1f080] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x563d94c1eb80] Use Intel(R) oneVPL to create MFX session, API version is 2.9, the required implementation version is 1.3
[AVHWDeviceContext @ 0x563d94c1eb80] Error adding a MFX configurationVendorID property: -9.
Device creation failed: -1313558101.
Failed to set value '/dev/dri/renderD129' for option 'qsv_device': Unknown error occurred

same with the change:
[AVHWDeviceContext @ 0x562030bc0080] libva: VA-API version 1.19.0
[AVHWDeviceContext @ 0x562030bc0080] libva: User requested driver 'iHD'
[AVHWDeviceContext @ 0x562030bc0080] libva: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
[AVHWDeviceContext @ 0x562030bc0080] libva: Found init function __vaDriverInit_1_19
[AVHWDeviceContext @ 0x562030bc0080] libva: va_openDriver() returns 0
[AVHWDeviceContext @ 0x562030bc0080] Initialised VAAPI connection: version 1.19
[AVHWDeviceContext @ 0x562030bc0080] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 23.3.2 ().
[AVHWDeviceContext @ 0x562030bc0080] Driver not found in known nonstandard list, using standard behaviour.
[AVHWDeviceContext @ 0x562030bbfb80] Use Intel(R) oneVPL to create MFX session, API version is 2.9, the required implementation version is 1.3
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib64/va/drivers/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x562030bbfb80] Initialize MFX session: implementation version is 2.9


best regards
Patrick

> BRs
> Haihao
> 
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



-- 
Patrick M. <s7mon at web.de>


More information about the ffmpeg-user mailing list