<div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Thank you very much for your help</span></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> Le Mardi 22 avril 2014 12h40, Sebastian Dröge-3 [via GStreamer-devel] <<a href="/user/SendEmail.jtp?type=node&node=4666542&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :<br> </font> </div>  <div class="y_msg_container"><div id="yiv1137983676"><div>

        On Mo, 2014-04-21 at 06:57 -0700, Gstlili wrote:
<div class="yiv1137983676shrinkable-quote"><div class="yiv1137983676shrinkable-quote"><div class='shrinkable-quote'><br clear="none">> Hi, all !
<br clear="none">> 
<br clear="none">> I need to record audio from incoming udp stream, and convert it to wav
<br clear="none">> format.
<br clear="none">> 
<br clear="none">> I have two problems:
<br clear="none">> 
<br clear="none">> First: 
<br clear="none">> 
<br clear="none">> The following pipeline record the played video without sound !!!
<br clear="none">> 
<br clear="none">> sender: 
<br clear="none">> 
<br clear="none">> gst-launch-0.10 -e -v filesrc location=/home/media/example.mp4 ! qtdemux !
<br clear="none">> h264parse ! queue ! ffdec_h264 ! x264enc ! video/x-h264 ! rtph264pay pt=96 !
<br clear="none">> udpsink host=127.0.0.1 port=1234 sync=false 
<br clear="none">> 
<br clear="none">> receiver: 
<br clear="none">> 
<br clear="none">> gst-launch-0.10 udpsrc port=1234
<br clear="none">> caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
<br clear="none">> ! gstrtpjitterbuffer latency=100 ! rtph264depay ! mpegtsmux ! filesink
<br clear="none">> location=/home/mtlili/audio_record.mp4
</div></div>This does not have any sound at all because you only handle the video
</div>part of the file here. Take a look at the examples in
<br clear="none">gst-plugins-good/tests/examples/rtp to see how to use the RTP elements
<br clear="none">properly and with multiple streams, but basically you a) should use the
<br clear="none">rtpbin element, b) use sync=true on all RTP udpsinks, c) have multiple
<br clear="none">branches in your pipeline (one for audio, one for video).
<br clear="none"><br clear="none">(Also on the receiver you use mpegtsmux but write to a file called .mp4.
<br clear="none">MPEG TS is not the same as MP4).
<br clear="none"><div class="yiv1137983676shrinkable-quote"><div class="yiv1137983676shrinkable-quote"><div class='shrinkable-quote'><br clear="none">> Second:
<br clear="none">> I change the receiver pipeline to save a wav file format but i doesn't work 
<br clear="none">> :
<br clear="none">> 
<br clear="none">> gst-launch-0.10 udpsrc port=1234
<br clear="none">> caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
<br clear="none">> ! gstrtpjitterbuffer latency=100 ! rtph264depay ! mpegtsmux ! audioconvert !
<br clear="none">> wavenc ! filesink location=file.wav
<br clear="none">> 
<br clear="none">> I receive : WARNING: erroneous pipeline: could not link mpegtsmux0 to
<br clear="none">> audioconvert0.
</div></div>rtph264depay outputs an H264 video stream, mpegtsmux converts that to an
</div>MPEG TS stream with H264 video... and audioconvert can only handle raw
<br clear="none">audio. You'll have to stream the audio separately via RTP and use an
<br clear="none">audio codec for that.
<br clear="none"><br clear="none"><br clear="none">-- 
<br clear="none">Sebastian Dröge, Centricular Ltd - <a rel="nofollow" shape="rect" target="_blank" href="http://www.centricular.com/" link="external">http://www.centricular.com</a><br clear="none">Expertise, Straight from the Source
<br clear="none"><br clear="none">_______________________________________________
<br clear="none">gstreamer-devel mailing list
<br clear="none"><a rel="nofollow" shape="rect" href="" target="_top" link="external">[hidden email]</a>
<div class="yiv1137983676yqt9463168894" id="yiv1137983676yqtfd79684"><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" link="external">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div><br clear="none"><div class="yiv1137983676small"><br clear="none"><img src="http://gstreamer-devel.966125.n4.nabble.com/images/icon_attachment.gif"> <b>signature.asc</b> (968 bytes) <a rel="nofollow" shape="rect" target="_blank" href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4666535/0/signature.asc" link="external">Download Attachment</a></div>

        
        
        
        <br clear="none">
        <br clear="none">
        <hr noshade="" size="1" color="#cccccc">
        <div style="color: rgb(68, 68, 68); font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: tahoma, geneva, helvetica, arial, sans-serif;">
                <div style="font-weight:bold;">If you reply to this email, your message will be added to the discussion below:</div>
                <a rel="nofollow" shape="rect" target="_blank" href="http://gstreamer-devel.966125.n4.nabble.com/Record-wav-file-from-rtp-stream-tp4666512p4666535.html" link="external">http://gstreamer-devel.966125.n4.nabble.com/Record-wav-file-from-rtp-stream-tp4666512p4666535.html</a>
        </div>
        <div style="color: rgb(102, 102, 102); font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-family: tahoma, geneva, helvetica, arial, sans-serif; margin-top: 0.4em; line-height: 1.5em;">
                
                To unsubscribe from Record wav file from rtp stream, <a rel="nofollow" shape="rect" target="_blank" href="" link="external">click here</a>.<br clear="none">
                <a rel="nofollow" shape="rect" target="_blank" href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-family: serif;" link="external">NAML</a><div class="yiv1137983676yqt9463168894" id="yiv1137983676yqtfd53516">
        </div></div></div></div><br><br></div>  </div> </div>  </div> </div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Record-wav-file-from-rtp-stream-tp4666512p4666542.html">Re: Record wav file from rtp stream</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>