<span style>Yeah thank you very much Martijn, now i&#39;m able to &quot;CONVERT&quot; mpeg2 to mpeg4 using the pipeline that you gave me. But now i am having trouble with &quot;CONVERTING&quot; mpeg4 to mpeg2. The audio of mpeg2 is not smooth. E.g when singer starts singing her void is very noisy. Could it be because of my mp4 sample is not good but i don&#39;t think so. </span><br>
<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=4495210&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 21-03-12 12:35, prototype18 wrote:
<div><div class='shrinkable-quote'><br>&gt; Oh right, thanks for correcting me, 
<br>&gt; And i wanna say that i have tried only video with this pipeline
<br>&gt; 
<br>&gt; gst-launch filesrc location=sample_mpeg2.mpg ! mpegdemux name=demux
<br>&gt; demux.video_00 ! ffdec_mpeg2video ! queue ! x264enc ! mp4mux name=mux !
<br>&gt; queue ! filesink location=output.mp4
<br>&gt; 
<br>&gt; and it works perfectly, but when i am trying to decode and encode audio
<br>&gt; then sink both, process never ends.
<br>&gt; It seems to me that maybe my plugins of decoding and encoding audio stream
<br>&gt; are good or maybe i am doing something wrong. 
<br>&gt; Here is what i am talking about, 
<br>&gt; This one does not work for me! 
<br>&gt; 
<br>&gt; gst-launch -v filesrc location= sample_mpeg2.mpg ! mpegdemux name=demux
<br>&gt; demux.video_00 ! ffdec_mpeg2video ! queue ! x264enc ! queue ! mp4mux
<br>&gt; name=mux ! filesink location=mpeg4_sample.mp4 demux.audio_00 ! ffdec_mp3 !
<br>&gt; queue ! faac ! queue ! mux.
</div></div></div>I have seen that too, pipeline doesn&#39;t PREROLL. Add
<br><br>! audioconvert ! audioresample
<br><br>between ffdec_mp3 and faac, that seemed to make a difference.
<br><br>Cheers,
<br>Martijn.
<br><br><br><div><br>&gt; 
<br>&gt; 
<br>&gt; 2012/3/21 Martijn Grendelman [via GStreamer-devel] &lt;[hidden email]
<br>&gt; &lt;/user/SendEmail.jtp?type=node&amp;node=4492012&amp;i=0&gt;&gt;
<br><div class="im">&gt; 
<div class='shrinkable-quote'><br>&gt;     On 20-03-12 13:21, prototype18 wrote:
<br>&gt;     &gt; Hello everyone, i want to read mpeg-2 file demux it encode
<br>&gt;     video(h262 to
<br>&gt;     &gt; raw), encode audio(mp3 to raw) then decode video(raw to h264) decode
<br>&gt;     &gt; audio(raw to aac) mux it and sink it as mp4 file. But every time i
<br>&gt;     stuck in
<br>&gt;     &gt; encoding and decoding video and audio. I need to create pipe which
<br>&gt;     will do
<br>&gt;     &gt; all this job. Pleas help me
<br>&gt; 
<br>&gt;     It seems to me you have the terms &#39;encode&#39; and &#39;decode&#39; mixed up.
<br>&gt; 
<br>&gt;     What pipeline(s) have you tried so far?
<br>&gt; 
<br>&gt;     It shouldn&#39;t be very difficult, something along the lines of:
<br>&gt; 
<br>&gt;     gst-launch -v uridecodebin uri=file:///... name=decode ! queue !
<br>&gt;     ffmpegcolorspace ! x264enc ! queue ! mux. decode. ! queue !
<br>&gt;     audioconvert !
<br>&gt;     audioresample ! faac ! queue ! mux. ffmux_mp4 name=mux ! filesink
<br>&gt;     location=...
<br>&gt; 
<br>&gt;     Cheers,
<br>&gt;     Martijn.
<br>&gt;     _______________________________________________
<br>&gt;     gstreamer-devel mailing list
</div></div>&gt;     [hidden email] &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4491968&amp;i=0" rel="nofollow" link="external" target="_blank">http://user/SendEmail.jtp?type=node&amp;node=4491968&amp;i=0</a>&gt;
<br>&gt;     <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>&gt; 
<br>&gt; 
<br>&gt;     --------------------------------------------------------------------------
<br><div class="im">&gt;     If you reply to this email, your message will be added to the
<br>&gt;     discussion below:
<br>&gt;     <a href="http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4491968.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4491968.html</a><br>
&gt; 
<br>&gt;     To unsubscribe from mpeg-2 to mpeg-4, click here.
<br>&gt;     NAML
<br></div>&gt;     &lt;<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" link="external" target="_blank">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</a>&gt;
<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; --------------------------------------------------------------------------
<br>&gt; View this message in context: Re: mpeg-2 to mpeg-4
<br>&gt; &lt;<a href="http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492012.html" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492012.html</a>&gt;
<br><div class="im">&gt; Sent from the GStreamer-devel mailing list archive
<br></div>&gt; &lt;<a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a>&gt; at Nabble.com.
<br><div class="im">&gt; 
<br>&gt; 
<br>&gt; _______________________________________________
<br>&gt; gstreamer-devel mailing list
<br>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=4492031&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; <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></div></div><div class="im">
<br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4492031&amp;i=1" 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><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492031.html" target="_blank" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492031.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <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></div></div></blockquote></div><br>

        
<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-tp4488594p4495210.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/>