[Cin] Tested vaapi hwaccel presets
Terje J. Hanssen
terjejhanssen at gmail.com
Thu Jan 2 13:01:40 CET 2025
On 02.01.2025 10:38, Andrea paz wrote:
> I tested vaapi presets with the compile of the new CinGG release.
> Previously vaapi was not working for me in either encoding or
> decoding. Now I have no errors or warnings.
>
> I used the Big Buck Bunny 1080p and 30 fps file with h264 codec. With
> some presets the rendering fails with the following errors in the
> terminal:
>
> - av1_vaapi_10b420.mp4
>
> [av1_vaapi @ 0x7d304c2269c0] No usable encoding profile found.
> FFMPEG::open_encoder err: Function not implemented
> int FFMPEG::open_encoder(const char*, const char*):
> open failed av1_vaapi:/home/paz/test_vaapi.mp4
>
>
> - av1_vaapi_10b420.mp4
>
> [av1_vaapi @ 0x7d304c2269c0] No usable encoding profile found.
> FFMPEG::open_encoder err: Function not implemented
> int FFMPEG::open_encoder(const char*, const char*):
> open failed av1_vaapi:/home/paz/test_vaapi.mp4
Your gpu has av1 10-bit encoding capability?
Possibly try to comment out profile=main
>
>
> - hevc_vaapi_10b420.mp4
>
> Render::render_single: Session finished.
> FFStream::encode_frame: vaapi encode failed.
> file: /home/paz/test_vaapi.mp4
> err: Input/output error
> FFMPEG::mux_video err: Operation not permitted
> FFStream::encode_frame: vaapi encode failed.
> file: /home/paz/test_vaapi.mp4
> err: Input/output error
> FFMPEG::mux_video err: Operation not permitted
> Assertion !pic->prev failed at libavcodec/vaapi_encode.c:962
> [CRASH]
>
>
> - hevc_vaapi_10b422.mp4
>
> [AVHWFramesContext @ 0x76b6f40eab40] Failed to create surface: 14 (the
> requested RT Format is not supported).
> [AVHWFramesContext @ 0x76b6f40eab40] Unable to allocate a surface from
> internal buffer pool.
> Failed to initialize HW frame context.
> err: Cannot allocate memory
> [hevc_vaapi @ 0x76b6f400be40] Specified pixel format y210le is not
> supported by the hevc_vaapi encoder.
> [hevc_vaapi @ 0x76b6f400be40] Supported pixel formats:
> [hevc_vaapi @ 0x76b6f400be40] vaapi
> FFMPEG::open_encoder err: Invalid argument
> int FFMPEG::open_encoder(const char*, const char*):
> open failed hevc_vaapi:/home/paz/test_vaapi.mp4
> Render::render_single: Session finished.
>
>
> - vp9_vaapi_10b420.mp4
>
> [vp9_vaapi @ 0x76b63c0350c0] No usable encoding profile found.
> FFMPEG::open_encoder err: Function not implemented
> int FFMPEG::open_encoder(const char*, const char*):
> open failed vp9_vaapi:/home/paz/test_vaapi.mp4
Try to comment out profile=0 or edit it to profile=2
>
>
> - vp9_vaapi_8b420.mp4
>
> [vp9_vaapi @ 0x76b6180d7fc0] No usable encoding entrypoint found for
> profile VAProfileVP9Profile0 (19).
> FFMPEG::open_encoder err: Function not implemented
> int FFMPEG::open_encoder(const char*, const char*):
> open failed vp9_vaapi:/home/paz/test_vaapi.mp4
>
>
> Other presets work more or less well:
>
> - h264.mp4 --> 78 fps
> - h264_vaapi.mp4 --> 118 fps
> - h264_vaapi_8b420.mp4 --> 80 fps
> - hevc_vaapi.mp4 --> 81 fps
> - hevc_vaapi_8b420.mp4 --> 110 fps
>
>
> IMPORTANT: These tests are not indicative, as I always have new
> problems with my Radeon RX 5700 XT with every driver update.
>
> PS: Compilation time got a lot longer, is it because of the new patches?
> PPS: I have not followed the various threads very well and so I do not
> know the conclusions you have reached....
I get all presets above to work from the suse15 RPM installation on Leap
15.6
On the other hand, I don't get vaapi rendering to work from the 31.12
AppImage, while they work from my 24.11 IntelHW AppImage, except vp9
10bit that looks distorted video.
More information about the Cin
mailing list