Quantcast
Viewing all articles
Browse latest Browse all 5084

Graphics, sound and multimedia • h264_v4l2m2m Encoder Video Quality Parameters

Hi,

I am on Raspberry Pi 4 Model B successfully able to encode video with h264_v4l2m2m encoder with FFMPEG 5.1.6-0+deb12u1+rpt1.

However, I am getting extremely low video quality and bit rate using the h264_v4l2m2m hardware encoder even at low FPS. Any tips on how to improve my video quality?

Here is my command:

Code:

ffmpeg -f v4l2 -i /dev/video2 -video_size 1920x1080 -c:v h264_v4l2m2m -b:v 5M -framerate 5 output.mp4
In practice, FFMPEG is keeping a dynamic bitrate bitrate closer under 1000kbits/s, CRF is not obeyed by FFMPEG because it says its private to the encoder, and I can't set a CBR because FFMPEG doesn't appear to be doing it and I can't change it manually with v4l2-ctl because I think it is spawning a new V4l2 instance each time I call v4l2-ctl. Any help is appreciated.

Statistics: Posted by ccwyatt — Sat Oct 12, 2024 12:12 am — Replies 0 — Views 16



Viewing all articles
Browse latest Browse all 5084