Oh right, thanks for correcting me, <br>And i wanna say that i have tried only video with this pipeline<br><br>gst-launch filesrc location=sample_mpeg2.mpg ! mpegdemux name=demux demux.video_00 ! ffdec_mpeg2video ! queue ! x264enc ! mp4mux name=mux ! queue ! filesink location=output.mp4<div>
<br></div><div>and it works perfectly, but when i am trying to decode and encode audio then sink both, process never ends.<br>It seems to me that maybe my plugins of decoding and encoding audio stream are good or maybe i am doing something wrong. <br>
Here is what i am talking about, <br>This one does not work for me! </div><div><br>gst-launch -v filesrc location= sample_mpeg2.mpg ! mpegdemux name=demux demux.video_00 ! ffdec_mpeg2video ! queue ! x264enc ! queue ! mp4mux name=mux ! filesink location=mpeg4_sample.mp4 demux.audio_00 ! ffdec_mp3 ! queue ! faac ! queue ! mux.</div>
<div><br></div><div><br><div class="gmail_quote">2012/3/21 Martijn Grendelman [via GStreamer-devel] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4492012&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">

        On 20-03-12 13:21, prototype18 wrote:
<br>&gt; Hello everyone, i want to read mpeg-2 file demux it encode video(h262 to
<br>&gt; raw), encode audio(mp3 to raw) then decode video(raw to h264) decode
<br>&gt; audio(raw to aac) mux it and sink it as mp4 file. But every time i stuck in
<br>&gt; encoding and decoding video and audio. I need to create pipe which will do
<br>&gt; all this job. Pleas help me 
<br><br></div>It seems to me you have the terms &#39;encode&#39; and &#39;decode&#39; mixed up.
<br><br>What pipeline(s) have you tried so far?
<br><br>It shouldn&#39;t be very difficult, something along the lines of:
<br><br>gst-launch -v uridecodebin uri=file:///... name=decode ! queue !
<br>ffmpegcolorspace ! x264enc ! queue ! mux. decode. ! queue ! audioconvert !
<br>audioresample ! faac ! queue ! mux. ffmux_mp4 name=mux ! filesink location=...
<br><br>Cheers,
<br>Martijn.
<br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4491968&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="nofollow" link="external" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px 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 href="http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4491968.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4491968.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from mpeg-2 to mpeg-4, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote></div><br></div>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492012.html">Re: mpeg-2 to mpeg-4</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>