Hello
Does v4l2h264enc support Constant Rate Factor?
If so, please let me know how to set CRF value in gstreamer. I'm using Processor SDK Linux for J721s2 09_01_00.
Best regards,
Wilson
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello
Does v4l2h264enc support Constant Rate Factor?
If so, please let me know how to set CRF value in gstreamer. I'm using Processor SDK Linux for J721s2 09_01_00.
Best regards,
Wilson
Hi Wilson,
Yes, v4l2h264enc does support setting the bitrate. You can do this with the following example command and controls that sets the bitrate to 20mbps with a demo pattern ball video:
gst-launch-1.0 videotestsrc pattern=ball num-buffers=5000 ! video/x-raw, format=NV12, width=852, height=480, framerate=30/1 ! v4l2h264enc extra-controls="enc,frame_level_rate_control_enable=1,video_bitrate_mode=1,video_bitrate=20000000" ! h264parse ! filesink location=/test_streams/demo20mbps.264
Thank you,
Sarabesh S
Hi Sarabesh,
Could you provide a setting equivalent to CRF(or CQ) level 18?
As far as I know, CRF is a bitrate control mechanism. I doubt sole bitrate setting can give equivalent result.
Best regards,
Wilson
Hi Wilson,
I do not think there is a supported control in our driver for CRF. We have an open query with our IP Vendor on whether this is supported by the hardware or firmware. I will update you when I have more information.
Thank you,
Sarabesh S
Hi Wilson,
The VPU's encoder hardware does not support CRF.
Thank you,
Sarabesh S