<span style>Yeah thank you very much Martijn, now i'm able to "CONVERT" mpeg2 to mpeg4 using the pipeline that you gave me. But now i am having trouble with "CONVERTING" 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't think so. </span><br>
<br><div class="gmail_quote">2012/3/21 Martijn Grendelman [via GStreamer-devel] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4495210&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></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>> 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
<br>> demux.video_00 ! ffdec_mpeg2video ! queue ! x264enc ! mp4mux name=mux !
<br>> queue ! filesink location=output.mp4
<br>>
<br>> and it works perfectly, but when i am trying to decode and encode audio
<br>> then sink both, process never ends.
<br>> It seems to me that maybe my plugins of decoding and encoding audio stream
<br>> 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!
<br>>
<br>> gst-launch -v filesrc location= sample_mpeg2.mpg ! mpegdemux name=demux
<br>> demux.video_00 ! ffdec_mpeg2video ! queue ! x264enc ! queue ! mp4mux
<br>> name=mux ! filesink location=mpeg4_sample.mp4 demux.audio_00 ! ffdec_mp3 !
<br>> queue ! faac ! queue ! mux.
</div></div></div>I have seen that too, pipeline doesn'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>>
<br>>
<br>> 2012/3/21 Martijn Grendelman [via GStreamer-devel] <[hidden email]
<br>> </user/SendEmail.jtp?type=node&node=4492012&i=0>>
<br><div class="im">>
<div class='shrinkable-quote'><br>> On 20-03-12 13:21, prototype18 wrote:
<br>> > Hello everyone, i want to read mpeg-2 file demux it encode
<br>> video(h262 to
<br>> > raw), encode audio(mp3 to raw) then decode video(raw to h264) decode
<br>> > audio(raw to aac) mux it and sink it as mp4 file. But every time i
<br>> stuck in
<br>> > encoding and decoding video and audio. I need to create pipe which
<br>> will do
<br>> > all this job. Pleas help me
<br>>
<br>> It seems to me you have the terms 'encode' and 'decode' mixed up.
<br>>
<br>> What pipeline(s) have you tried so far?
<br>>
<br>> It shouldn'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 !
<br>> audioconvert !
<br>> audioresample ! faac ! queue ! mux. ffmux_mp4 name=mux ! filesink
<br>> location=...
<br>>
<br>> Cheers,
<br>> Martijn.
<br>> _______________________________________________
<br>> gstreamer-devel mailing list
</div></div>> [hidden email] <<a href="http://user/SendEmail.jtp?type=node&node=4491968&i=0" rel="nofollow" link="external" target="_blank">http://user/SendEmail.jtp?type=node&node=4491968&i=0</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>> --------------------------------------------------------------------------
<br><div class="im">> If you reply to this email, your message will be added to the
<br>> discussion below:
<br>> <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>
>
<br>> To unsubscribe from mpeg-2 to mpeg-4, click here.
<br>> NAML
<br></div>> <<a 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" rel="nofollow" link="external" target="_blank">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</a>>
<br>>
<br>>
<br>>
<br>>
<br>> --------------------------------------------------------------------------
<br>> View this message in context: Re: mpeg-2 to mpeg-4
<br>> <<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>>
<br><div class="im">> Sent from the GStreamer-devel mailing list archive
<br></div>> <<a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="nofollow" link="external" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a>> at Nabble.com.
<br><div class="im">>
<br>>
<br>> _______________________________________________
<br>> gstreamer-devel mailing list
<br>> <a href="http://user/SendEmail.jtp?type=node&node=4492031&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></div></div><div class="im">
<br>_______________________________________________
<br>gstreamer-devel mailing list
<br><a href="http://user/SendEmail.jtp?type=node&node=4492031&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&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" 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/>