<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">For streaming h264 encoded video over RTP I use the following elements:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.pipeline = gst_pipeline_new ( "my_pipeline" );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.source = gst_element_factory_make ( "v4l2src", NULL );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.videoflip = gst_element_factory_make ( "videoflip", NULL );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.encoder = gst_element_factory_make ( "omxh264enc", "encoder1" );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.parser = gst_element_factory_make ( "h264parse", NULL );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.rtp = gst_element_factory_make ( "rtph264pay", NULL );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> data.sink = gst_element_factory_make ( "udpsink", NULL );<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">When I link these and start the program everything works.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">However when I try to add an “rtpbin” element I get the following feedback:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.232185933 4623 0xa942c0 WARN v4l2 gstv4l2bufferpool.c:658:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> using 3 buffers instead of 2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.822579433 4623 0xa942c0 ERROR omxh264enc gstomxh264enc.c:204:gst_omx_h264_enc_set_format:<encoder1> Unsupported profile constrained-baseline<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.822898025 4623 0xa942c0 ERROR omxvideoenc gstomxvideoenc.c:1176:gst_omx_video_enc_set_format:<encoder1> Subclass failed to set the new format<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.823036878 4623 0xa942c0 WARN videoencoder gstvideoencoder.c:647:gst_video_encoder_setcaps:<encoder1> rejected caps video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1,
interlace-mode=(string)progressive, framerate=(fraction)30/1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.823490105 4623 0xa942c0 WARN videoencoder gstvideoencoder.c:1463:gst_video_encoder_chain:<encoder1> error: encoder not initialized<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.824441037 4623 0xa942c0 WARN basesrc gstbasesrc.c:2933:gst_base_src_loop:<v4l2src0> error: Internal data flow error.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.824608744 4623 0xa942c0 WARN basesrc gstbasesrc.c:2933:gst_base_src_loop:<v4l2src0> error: streaming task paused, reason not-negotiated (-4)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0:00:00.825509677 4623 0xa942c0 WARN baseparse gstbaseparse.c:1155:gst_base_parse_sink_event_default:<h264parse0> error: No valid frames found before end of stream<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there a known issue for using omxh264enc in combination with rtpbin on Raspberry Pi ? Or is there something else I can look into?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kind Regards.<o:p></o:p></span></p>
</div>
</body>
</html>