Configure h264
codecs
This commit is contained in:
parent
6ce5b5ce4a
commit
7f4619a312
@ -129,6 +129,7 @@ int camera_set_params(camera_t *camera)
|
||||
{
|
||||
// Set some defaults
|
||||
device_set_option_string(camera->codec_jpeg, "compression_quality", "80");
|
||||
device_set_option_string(camera->codec_jpeg_lowres, "compression_quality", "80");
|
||||
|
||||
device_set_option_string(camera->codec_h264, "video_bitrate_mode", "0");
|
||||
device_set_option_string(camera->codec_h264, "video_bitrate", "5000000");
|
||||
@ -138,12 +139,22 @@ int camera_set_params(camera_t *camera)
|
||||
device_set_option_string(camera->codec_h264, "h264_profile", "4");
|
||||
device_set_option_string(camera->codec_h264, "h264_minimum_qp_value", "16");
|
||||
device_set_option_string(camera->codec_h264, "h264_maximum_qp_value", "32");
|
||||
device_set_option_string(camera->codec_h264_lowres, "video_bitrate_mode", "0");
|
||||
device_set_option_string(camera->codec_h264_lowres, "video_bitrate", "5000000");
|
||||
device_set_option_string(camera->codec_h264_lowres, "repeat_sequence_header", "1");
|
||||
device_set_option_string(camera->codec_h264_lowres, "h264_i_frame_period", "30");
|
||||
device_set_option_string(camera->codec_h264_lowres, "h264_level", "11");
|
||||
device_set_option_string(camera->codec_h264_lowres, "h264_profile", "4");
|
||||
device_set_option_string(camera->codec_h264_lowres, "h264_minimum_qp_value", "16");
|
||||
device_set_option_string(camera->codec_h264_lowres, "h264_maximum_qp_value", "32");
|
||||
|
||||
device_set_fps(camera->camera, camera->options.fps);
|
||||
device_set_option_list(camera->camera, camera->options.options);
|
||||
device_set_option_list(camera->isp_srgb, camera->options.isp.options);
|
||||
device_set_option_list(camera->codec_h264, camera->options.h264.options);
|
||||
device_set_option_list(camera->codec_h264_lowres, camera->options.h264.options);
|
||||
device_set_option_list(camera->codec_jpeg, camera->options.jpeg.options);
|
||||
device_set_option_list(camera->codec_jpeg_lowres, camera->options.jpeg.options);
|
||||
|
||||
// DEVICE_SET_OPTION(camera->camera, EXPOSURE, 2684);
|
||||
// DEVICE_SET_OPTION(camera->camera, ANALOGUE_GAIN, 938);
|
||||
|
Loading…
x
Reference in New Issue
Block a user