[Libav-user] Format requires hwaccel initialisation
sw at jkqxz.net
Sun Feb 9 18:38:35 EET 2020
On 08/02/2020 22:51, Philippe Noël wrote:
> I'm trying to do the vaapi/d3d11va/videotoolbox hardware accel for AV_CODEC_ID_H264. I'm following the libav example, but when I init it gives me "requires waccel initialisation" although I am creating the hw device w/ av_hwdevice_ctx_create. What am I missing?
> Format videotoolbox_vld chosen by get_format().
> Error found
> Format videotoolbox_vld requires hwaccel initialisation.
This isn't an error - it's a debug message noting that the decoder needs some system-specific initialisation to use the hardware, which is true (<http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/decode.c;h=03b9da25f9fd9932ae6b29d65dd76d67a105098c;hb=HEAD#l1482>).
Whatever is going wrong must be somewhere after that.
More information about the Libav-user