HW Encoder h264_vaapi not working | ERR Could not send frame....
Posted: Wed Feb 02, 2022 1:34 pm
Hey there, im totally new to Zoneminder.
I run it in a docker on a unraid machine.
HARDWARE SPECS:
Pentium G4400
8GB DDR4 RAM
ASROCK B150M
about 6 TB Storage
Camera: TP-Link VIGI C300HP-6
In General options form my Monitor i selected:
Source Type: Ffmpeg
Function: Modect
Analysis FPS: 5
In the storage options from my Monitor i selected:
Storage Area: Default
SaveJPEGs: Analysis images only (if available)
Video Writer: Encode
OutputCodec: h264
Encoder: libx264
Optional Envoder Parameters: crf=23 (that's default)
Wheter to store the audio...: True
My CPU actually cant handle the videoencode, or is fully loaded and i cant do anything else on my server. So i decided to buy a cheap GPU with h264 decode/encode support and do the encoding via the gpu.
So i got a "AMD R5 430 OEM" to get the encode job done.
I changed the setting
Encoder: h264_vaapi
so the amd gpu should be used to encode, if i get this right.
When i force alarm via webinterface ZM tries to record something, but in the log it says:
2022-02-02 14:07:36 zmc_m1 1778 ERR Could not send frame (error 'Invalid argument') zm_videostore.cpp 1135
until i end the alarm.
The created videofile is 1kb (far to little for couple of seconds), and cant be replayed via webinterface or the file it self.
I dont know what's wrong there, maybe its a unraid related problem, maybe the GPU isnt compatible, but i dont know that it is or where to look for solution.
Hope somebody got an idea.
I run it in a docker on a unraid machine.
HARDWARE SPECS:
Pentium G4400
8GB DDR4 RAM
ASROCK B150M
about 6 TB Storage
Camera: TP-Link VIGI C300HP-6
In General options form my Monitor i selected:
Source Type: Ffmpeg
Function: Modect
Analysis FPS: 5
In the storage options from my Monitor i selected:
Storage Area: Default
SaveJPEGs: Analysis images only (if available)
Video Writer: Encode
OutputCodec: h264
Encoder: libx264
Optional Envoder Parameters: crf=23 (that's default)
Wheter to store the audio...: True
My CPU actually cant handle the videoencode, or is fully loaded and i cant do anything else on my server. So i decided to buy a cheap GPU with h264 decode/encode support and do the encoding via the gpu.
So i got a "AMD R5 430 OEM" to get the encode job done.
I changed the setting
Encoder: h264_vaapi
so the amd gpu should be used to encode, if i get this right.
When i force alarm via webinterface ZM tries to record something, but in the log it says:
2022-02-02 14:07:36 zmc_m1 1778 ERR Could not send frame (error 'Invalid argument') zm_videostore.cpp 1135
until i end the alarm.
The created videofile is 1kb (far to little for couple of seconds), and cant be replayed via webinterface or the file it self.
I dont know what's wrong there, maybe its a unraid related problem, maybe the GPU isnt compatible, but i dont know that it is or where to look for solution.
Hope somebody got an idea.