<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 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="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Use h264parse follGGowed by the caps you require<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">Eg. H264parse ! video/h-264,stream-format=byte-stream,alignment=au<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> gstreamer-devel [mailto:gstreamer-devel-bounces@lists.freedesktop.org]
<b>Im Auftrag von </b>joao machado<br>
<b>Gesendet:</b> Sonntag, 12. April 2015 20:23<br>
<b>An:</b> Discussion of the development of and with GStreamer<br>
<b>Betreff:</b> omxh264enc and stream-format=(string)avc<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi all, <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="line-height:16.0pt"><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444">I  am using Rpi and Gstreamer to stream my HD web cam with low latency. Currently I am using two different encoders for that purpose.
 With the omx I am getting some video quality issues and with x264 i am getting high CPU usage and low frequency. <br>
<br>
The following is the pipe with x264 encoder<a href="http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=106455&p=734508" target="_blank"><span style="color:#0068CF"><br>
</span></a><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;line-height:16.0pt"><code><span style="font-size:10.0pt;color:#444444">gst-launch-1.0 -vv v4l2src ! videoscale !  videorate  ! videoconvert ! \</span></code><span style="font-size:10.0pt;font-family:"Courier New";color:#444444"><br>
<code>  video/x-raw,width=1280,height=720,framerate=30/1  ! x264enc bitrate=8000 ! \</code><br>
<code>h264parse !  rtph264pay pt=96 config-interval=1 ! udpsink host=$1 port=$2</code></span><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:16.0pt"><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><br>
The following are pipelines with low latency but with quality issues, despite the value that is use in the bitrate property.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;line-height:16.0pt"><code><span style="font-size:10.0pt;color:#444444">gst-launch-1.0 -vv v4l2src ! videoscale !  videorate  ! videoconvert ! \</span></code><span style="font-size:10.0pt;font-family:"Courier New";color:#444444"><br>
<code>  video/x-raw,width=720,height=480,framerate=30/1  ! omxh264enc inline-header=true periodicty-idr=1 ! \</code><br>
<code>video/x-h264,width=720,height=480,framerate=30/1,profile=high,target-bitrate=8000000,control-rate=variable,quant-i-frames=250 ! \</code><br>
<code>rtph264pay pt=96 ! udpsink host=$1 port=$2</code><br>
<br>
<code>gst-launch-1.0 -vv v4l2src  \</code><br>
<code>image/jpeg,width=1280,height=720,framerate=30/1  ! jpegdec ! videoconvert  ! \</code><br>
<code>video/x-raw,width=1280,height=720  ! videorate !  omxh264enc inline-header=true periodicty-idr=1 ! \</code><br>
<code>video/x-h264,width=1280,height=720,framerate=30/1,profile=high,target-bitrate=5000000 ! \</code><br>
<code>rtph264pay pt=96 ! udpsink host=$1 port=$2</code></span><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:16.0pt"><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:16.0pt"><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444">The only difference that i found was in the stream-format property.
<br>
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#444444"><br>
<code><b>x264enc</b></code></span><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><br>
<br>
video/x-h264, codec_data=(buffer)0164001effe1001d6764001eacd940b43dbff0020001b10000030001000003003c8f162d9601000568ebecb22c,
<b>stream-format=(string)avc</b>, alignment=(string)au, level=(string)3, profile=(string)high, width=(int)720, height=(int)480, pixel-aspect-ratio=(fraction)32/27, framerate=(fraction)30/1
<br>
 <br>
</span><code><b><span style="font-size:10.0pt;color:#444444">omxh264enc</span></b></code><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><br>
 <br>
video/x-h264, <b>stream-format=(string)byte-stream</b>, alignment=(string)au, profile=(string)high, level=(string)4, width=(int)720, height=(int)480, pixel-aspect-ratio=(fraction)32/27, framerate=(fraction)30/1<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:16.0pt"><span style="font-size:11.5pt;font-family:"Calibri","sans-serif";color:#444444"><br>
Would be really cool to understand what is needed to change the stream format. <br>
<br>
Looking forward to have some clues from this community.<br>
<br>
Thanks in advance,<br>
Joao M.<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>