Failed to create hwaccel device. Invalid argument

Previous development branch now released as 1.36
Locked
davorin
Posts: 18
Joined: Thu Dec 10, 2020 7:43 am

Failed to create hwaccel device. Invalid argument

Post 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
davorin
Posts: 18
Joined: Thu Dec 10, 2020 7:43 am

Re: Failed to create hwaccel device. Invalid argument

Post 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
davorin
Posts: 18
Joined: Thu Dec 10, 2020 7:43 am

Re: Failed to create hwaccel device. Invalid argument

Post by davorin »

Ah okay..found it...

Acceleration device is never vaapi, but h264_vaapi (o;
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Failed to create hwaccel device. Invalid argument

Post 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.
davorin
Posts: 18
Joined: Thu Dec 10, 2020 7:43 am

Re: Failed to create hwaccel device. Invalid argument

Post by davorin »

Well it didn‘t complain anymore...

And by default there is no h264 vaapi decoder in ffmpeg, only encoder.
tony763
Posts: 1
Joined: Sat Dec 12, 2020 8:41 pm

Re: Failed to create hwaccel device. Invalid argument

Post 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?
Locked