<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div>Hello,</div><div>&nbsp;</div><div>I have&nbsp;written a C application&nbsp;for&nbsp;streaming H.264 encoded videos, and this command describes it:</div><div>&nbsp;</div><div><font face="Times New Roman">

</font></div><div style="margin: 0cm 0cm 10pt; text-autospace: ; mso-layout-grid-align: none;" class="MsoNormal"><span style='font-family: "Courier New";'>gst-launch v4l2src ! videorate ! video/x-raw-yuv,width=176,height=144,framerate=15/1
! ffmpegcolorspace ! x264enc bitrate=64 cabac=false ! udpsink
host=127.0.0.1 port=8991<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></div><div><font face="Times New Roman">

</font></div><div>and I have written a C application which can receive, decode and display&nbsp;the streamed video, and this command describes it:</div><div>&nbsp;</div><div style="margin: 0cm 0cm 10pt; mso-layout-grid-align: none;" class="MsoNormal"><span style='font-family: "Courier New";'>gst-launch udpsrc caps = "video/x-h264, width=(int)176, height=(int)144, framerate=(fraction)15/1, codec_data=(buffer)014d401effe10018674d401e92540501ed8088000003000800000301e078b17501000468ee3c80, stream-format=(string)avc" multicast-group=127.0.0.1 port=8991 ! h264parse ! ffdec_h264 ! ffmpegcolorspace ! autovideosink<o:p></o:p></span></div><div style="margin: 0cm 0cm 10pt; mso-layout-grid-align: none;" class="MsoNormal"><font face="Times New Roman"></font></div><div>It is working perfectly using the "gst-launch", but when I implement it in a C application, it did not working for me and let me descibe what I am thinking is the problem:</div><div>the "caps" property
 should be included for the "udpsrc" element&nbsp;in order to get&nbsp;the H.264 video&nbsp;displayed.&nbsp;This "caps" property has different parameters as follows:</div><div>&nbsp;</div><div>filtercaps <span class="pun">=</span><span class="pln"> gst_caps_new_simple </span><span class="pun">(</span><span class="str"><font color="#800000">"video/x-h264<var id="yui-ie-cursor"></var>"</font></span><span class="pun">,</span></div><div><span class="pun"></span><span class="pln">&nbsp;
 
         </span><span class="str"><font color="#800000">"width"</font></span><span class="pun">,</span><span class="pln"> </span><span class="pln">G_TYPE_INT</span><span class="pun">,</span><span class="pln"> </span><span class="lit"><font color="#800000">176</font></span><span class="pun">,</span></div><div><span class="pun"></span><span class="pln">&nbsp;
 
         </span><span class="str"><font color="#800000">"height"</font></span><span class="pun">,</span><span class="pln"> G_TYPE_INT</span><span class="pun">,</span><span class="pln"> </span><span class="lit"><font color="#800000">144</font></span><span class="pun">,</span></div><div><span class="pun"></span><span class="pln">&nbsp;
 
         </span><span class="str"><font color="#800000">"framerate"</font></span><span class="pun">,</span><span class="pln"> GST_TYPE_FRACTION</span><span class="pun">,</span><span class="pln"> </span><span class="lit"><font color="#800000">15</font></span><span class="pun">,</span><span class="pln"> </span><span class="lit"><font color="#800000">1</font></span><span class="pun">,</span><span class="pln"> 
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></div><div><span class="pln">"codec_data", ........!!!!!!!!!!, 014d401effe10018674d401e92540501ed8088000003000800000301e078b17501000468ee3c80,</span></div><div><span class="pln">"stream-format", G_TYPE_STRING, "avc",</span></div><div><span class="pln"></span><span class="pln">NULL</span><span class="pun">);</span><span class="pln"> 
 </span></div><div><span class="pln"></span>&nbsp;</div><div><span class="pln">as yuo can see, the problem is that "codec_data" should be of type (buffer) and I am not sure how to deal with this type of value. So, please help in this....</span></div><div><span class="pln"></span>&nbsp;</div><div><span class="pln">Cheers</span></div><div><span class="pln"></span>&nbsp;</div><div><span class="pln">Ibra</span></div><div><font face="Times New Roman">

&nbsp;</font></div></div></body></html>