<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">Hi,</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">How can to customize a VideoEncodingProfile params, like profile or level for h264?</div><div id="bloop_customfont" style="margin: 0px;">I’ve tried to set params in Caps, but it doesn’t have any effect.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">Here is I’m creating an EncodingContainerProfile with EncodingAudioProfile and EncodingVideoProfile:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(52, 187, 199); background-color: rgb(0, 0, 0);"><span style="color: rgb(41, 249, 20);">  </span><span style="color: rgb(206, 121, 36);">def</span> make_encoding_profile<span style="color: rgb(41, 249, 20);">(self):</span></p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    container_caps = Gst.Caps.new_empty_simple(<span style="color: rgb(195, 55, 32);">"video/quicktime"</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    container_caps.set_value(<span style="color: rgb(195, 55, 32);">"variant"</span>,<span style="color: rgb(195, 55, 32);">"iso"</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    container = GstPbutils.EncodingContainerProfile.new(<span style="color: rgb(195, 55, 32);">'mp4'</span>,<span style="color: rgb(195, 55, 32);">'mp4 format'</span>, container_caps, <span style="color: rgb(52, 187, 199);">None</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    video_caps = Gst.Caps.new_empty_simple(<span style="color: rgb(195, 55, 32);">"video/x-h264"</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(195, 55, 32); background-color: rgb(0, 0, 0);"><span style="color: rgb(41, 249, 20);">    video_caps.set_value(</span>"profile"<span style="color: rgb(41, 249, 20);">,</span>"constrained-baseline"<span style="color: rgb(41, 249, 20);">)</span></p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    video_profile = GstPbutils.EncodingVideoProfile.new(video_caps, <span style="color: rgb(52, 187, 199);">None</span>, <span style="color: rgb(52, 187, 199);">None</span>, <span style="color: rgb(195, 55, 32);">1</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    audio_caps = Gst.Caps.new_empty_simple(<span style="color: rgb(195, 55, 32);">"audio/mpeg"</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    audio_caps.set_value(<span style="color: rgb(195, 55, 32);">"version"</span>, <span style="color: rgb(195, 55, 32);">4</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    audio_profile = GstPbutils.EncodingAudioProfile.new(audio_caps, <span style="color: rgb(52, 187, 199);">None</span>, <span style="color: rgb(52, 187, 199);">None</span>, <span style="color: rgb(195, 55, 32);">1</span>)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    container.add_profile(video_profile)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    container.add_profile(audio_profile)</p><p style="margin: 0px; font-size: 12px; font-family: 'Andale Mono'; color: rgb(41, 249, 20); background-color: rgb(0, 0, 0);">    <span style="color: rgb(206, 121, 36);">return</span> container</p></div><div><div class="bloop_container"><div class="bloop_frame"></div></div></div><br><div id="bloop_sign_1411726791598263040" class="bloop_sign"><p style="font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: rgb(25, 25, 28);"><span class="txt">I’m using this profile in camerabin as video-profile. How can I force high or baseline profile for video?  Or how can I set a constant bitrate?</span></p><p style="font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: rgb(25, 25, 28);">gstreamer version is 1.2.1</p><p style="font-family: Helvetica, Arial, sans-serif; font-size: 12px; line-height: 14px; color: rgb(25, 25, 28);"><span id="name-input" class="txt" style="font-weight: bold;">AlexanderMalaev</span><br><span id="title-sep">Lead developer</span><br><span id="mobile-input" class="txt" style="color: rgb(128, 128, 130);">+7 <a href="tel://(962) 938-93-23">(962) 938-93-23</a></span><br><br><span class="txt" style="color: rgb(128, 128, 130);"><a href="tel://+7 (495) 204 23">+7 (495) 204 23</a> 98</span><br><br><a href="http://mobigear.ru/" class="clink"><img src="cid:D23BEF62-BF5E-464E-B904-2E44247991B7" alt="ООО "МобиГир"" border="0" id="sig-logo" name="sig-logo"></a></p></div></div></body></html>