Encoding MP4 Storage use VAAPI - Poor Quality
Posted: Mon May 24, 2021 3:57 pm
Well I've tried everything. Ubuntu 20.04 with VAAPI enabled running the dev version of Zoneminder 1.37.0 but the same problem exists on 1.36.0.
VAAPI is working to decode the video from my monitors. I can see the GPU usage using intel-gpu-top. No problem on the decoding side.
I'm trying to use VAAPI to encode MP4s for my monitor events. Under the Storage options I select h264 and h264_vaapi but the resulting video produced has a very low bitrate and is extremely poor quality. The only good thing is the file size is very small, result of the bitrate. I've tried every option I can think of under Optional Encoder Parameters but nothing changes the output. I would expect "b:v=5M" should give me a 5Mb bitrate but it does nothing.
Using ffmpeg and VAAPI hwaccel from the command prompt and encoding an MP4 from my RTSP camera feeds works flawless. I get a nice high quality MP4.
Also, using libx264 under the Storage options instead or x264_vaapi works great as well.
Any ideas? Has anyone got this working?
Thanks
VAAPI is working to decode the video from my monitors. I can see the GPU usage using intel-gpu-top. No problem on the decoding side.
I'm trying to use VAAPI to encode MP4s for my monitor events. Under the Storage options I select h264 and h264_vaapi but the resulting video produced has a very low bitrate and is extremely poor quality. The only good thing is the file size is very small, result of the bitrate. I've tried every option I can think of under Optional Encoder Parameters but nothing changes the output. I would expect "b:v=5M" should give me a 5Mb bitrate but it does nothing.
Using ffmpeg and VAAPI hwaccel from the command prompt and encoding an MP4 from my RTSP camera feeds works flawless. I get a nice high quality MP4.
Also, using libx264 under the Storage options instead or x264_vaapi works great as well.
Any ideas? Has anyone got this working?
Thanks