[Cin] Prepping HW upgrade options for AV1 de-/encoding

Andrew Randrianasulu randrianasulu at gmail.com
Thu Dec 14 23:55:00 CET 2023


пт, 15 дек. 2023 г., 01:21 Terje J. Hanssen via Cin <
cin at lists.cinelerra-gg.org>:

>
>
> On 12/14/23 18:38, Phyllis Smith via Cin wrote:
>
>
>
> On Tue, Dec 12, 2023 at 8:17 AM Andrea paz via Cin <
> cin at lists.cinelerra-gg.org> wrote:
>
>> I tried to create an encoding profile for av1_vaapi. I attach the preset.
>> It does not work and I get the following error:
>>
>> [av1_vaapi @ 0x7f8c94163500] A hardware frames reference is required
>> to associate the encoding device.
>> FFMPEG::open_encoder  err: Invalid argument
>>
>
> A lot of "muddy waters" when searching this on the internet but the bottom
> line is for us in looking for what are the current ffmpeg 6.1 supported
> encoders, key in:
>
> # ./thirdparty/ffmpeg-6.1/ffmpeg -encoders | grep av1
>  V....D *libaom-av1*          libaom AV1 (codec av1)
>  A....D *wmav1 *              Windows Media Audio 1
>
> which means the first line of av1_vaapi.webm can only be "webm libaom-av1"
> which will not provide vaapi; that is the line used in av1.webm.
>
>
> Hm, I wonder why so few av1 encoders are enabled?
>

Because  additional ones tend to have external dependencies we normally do
not carry? Also, at least on aarch64 librav1e was a bit of disappointment,
at least on default  settings it was SLOW.



> In comparison I get this list from Packman's ffmpeg 6.0.1 on
> Tumbleweed-Slowroll:
>
> fmpeg -encoders -hide_banner | grep av1
>  V....D libaom-av1           libaom AV1 (codec av1)
>  V....D librav1e             librav1e AV1 (codec av1)
>  V..... libsvtav1            SVT-AV1(Scalable Video Technology for AV1)
> encoder (codec av1)
>  V....D av1_nvenc            NVIDIA NVENC av1 encoder (codec av1)
>  V....D av1_amf              AMD AMF AV1 encoder (codec av1)
>  A....D wmav1                Windows Media Audio 1
>
> ffmpeg -hwaccels -hide_banner
> Hardware acceleration methods:
> vdpau
> cuda
> vaapi
> qsv
> drm
> vulkan
>
>
> Additional references:
> https://trac.ffmpeg.org/wiki/HWAccelIntro
> https://trac.ffmpeg.org/wiki/Hardware/VAAPI
> https://trac.ffmpeg.org/wiki/Hardware/QuickSync
> https://www.reddit.com/r/AV1/comments/14zwron/guidance_for_av1_hwaccel/
>
>
>
> Just to ensure that the " ./thirdparty/ffmpeg-6.1/ffmpeg -encoders | grep
> your_request" works as expected, keyin:
>
> # ./thirdparty/ffmpeg-6.1/ffmpeg -encoders | grep h264
>  V....D *libx264*              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4
> part 10 (codec h264)
>  V....D *libx264rgb*           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4
> part 10 RGB (codec h264)
>  V....D *h264_nvenc*           NVIDIA NVENC H.264 encoder (codec h264)
>  V..... *h264_v4l2m2m *        V4L2 mem2mem H.264 encoder wrapper (codec
> h264)
>  V....D *h264_vaapi*           H.264/AVC (VAAPI) (codec h264)
>
>
>>
>
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20231215/ce3a5a2d/attachment.htm>


More information about the Cin mailing list