Page 1 of 1
Failed to create hwaccel device. Invalid argument
Posted: Wed Dec 16, 2020 6:35 am
by davorin
Good morning
On restarting ZM I see always this error messages:
Failed to create hwaccel device. Invalid argument zm_ffmpeg_camera.cpp
although /dev/dri/renderD128 is present....
I assume as ZM doesn't come with its own vaapi libav?
At least I see that zmc uses standard libraries from the underlying Debian OS...
thanks in advance
richard
Re: Failed to create hwaccel device. Invalid argument
Posted: Tue Dec 22, 2020 11:18 am
by davorin
Okay...did a complete fresh install of Ubuntu server 20.04.1 on an Intel NUC i7...
ffmpeg is installed by default with VAAPI acceleration, but only for encoding....
That's probably why I see this error message when adding a new monitor and set it up for VAAPI...
So is there some library missing for getting VAAPI h264 decoding?
Or do I need to completely compile ffmpeg?
thanks in advance
richard
Re: Failed to create hwaccel device. Invalid argument
Posted: Tue Dec 22, 2020 1:06 pm
by davorin
Ah okay..found it...
Acceleration device is never vaapi, but h264_vaapi (o;
Re: Failed to create hwaccel device. Invalid argument
Posted: Tue Dec 22, 2020 2:29 pm
by iconnor
That's news to me.
Too much flux in all this hwaccel stuff.
To be clear, that is a codec, not a hwaccel.
Re: Failed to create hwaccel device. Invalid argument
Posted: Tue Dec 22, 2020 2:32 pm
by davorin
Well it didn‘t complain anymore...
And by default there is no h264 vaapi decoder in ffmpeg, only encoder.
Re: Failed to create hwaccel device. Invalid argument
Posted: Tue Dec 22, 2020 10:24 pm
by tony763
Similar goes for me, I need to set nvmpi, but it is not shown as accel device, but only as codec. How can I set -c:v h264_nvmpi in zoneminder monitor setting?