--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/2cc916a2-595e-4bf6-b268-24b0bb57b9c4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAOOxeEhxCA%3DPFCWbq0h%2B2bDbGktgZykqixcBq25T97podsaiJg%40mail.gmail.com.
Hi,
when you create capturer, you can set w*h*fps params.
my code snapshot FYI.
//capturer static int g_used_video_width = 640; static int g_used_video_height = 480; //encode static int g_used_video_fps = 15; static int g_used_video_maxqp = 30;...g_video_capturers = webrtc::VcmCapturer::Create(g_used_video_width, g_used_video_height,g_used_video_fps,cameraId);
webrtc::VideoCodecH264 h264_settings = webrtc::VideoEncoder::GetDefaultH264Settings();
encoder_config.encoder_specific_settings = new rtc::RefCountedObject<webrtc::VideoEncoderConfig::H264EncoderSpecificSettings>(h264_settings);
encoder_config.video_stream_factory = new rtc::RefCountedObject<cricket::EncoderStreamFactory>("H264", g_used_video_maxqp, g_used_video_fps, false, false);
g_video_send_stream = g_call->CreateVideoSendStream(std::move(video_send_config), std::move(encoder_config));
if (g_video_send_stream != nullptr)
{
RTC_LOG(LS_INFO) << __FUNCTION__ << " , Success!";
//kDegradationDisabled,kMaintainResolution,kMaintainFramerate,kBalanced,
g_video_send_stream->SetSource(g_video_capturers, webrtc::VideoSendStream::DegradationPreference::kBalanced);
return 0;}
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAOyuvSvrC6PfJmzjujbyLT7tQfD%3DZDRDJ_9FwQ%2BcMXkBMjhx4Q%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/2cc916a2-595e-4bf6-b268-24b0bb57b9c4%40googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAOOxeEhxCA%3DPFCWbq0h%2B2bDbGktgZykqixcBq25T97podsaiJg%40mail.gmail.com.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss...@googlegroups.com.