mpeg-2 to mpeg-4

prototype18 edward.chopuryan at gmail.com
Thu Mar 22 04:17:25 PDT 2012


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.

2012/3/21 Martijn Grendelman [via GStreamer-devel] <
ml-node+s966125n4492031h93 at n4.nabble.com>

> On 21-03-12 12:35, prototype18 wrote:
>
> > Oh right, thanks for correcting me,
> > And i wanna say that i have tried only video with this pipeline
> >
> > 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
> >
> > and it works perfectly, but when i am trying to decode and encode audio
> > then sink both, process never ends.
> > It seems to me that maybe my plugins of decoding and encoding audio
> stream
> > are good or maybe i am doing something wrong.
> > Here is what i am talking about,
> > This one does not work for me!
> >
> > 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.
>
> I have seen that too, pipeline doesn't PREROLL. Add
>
> ! audioconvert ! audioresample
>
> between ffdec_mp3 and faac, that seemed to make a difference.
>
> Cheers,
> Martijn.
>
>
>
> >
> >
> > 2012/3/21 Martijn Grendelman [via GStreamer-devel] <[hidden email]
> > </user/SendEmail.jtp?type=node&node=4492012&i=0>>
> >
> >     On 20-03-12 13:21, prototype18 wrote:
> >     > Hello everyone, i want to read mpeg-2 file demux it encode
> >     video(h262 to
> >     > raw), encode audio(mp3 to raw) then decode video(raw to h264)
> decode
> >     > audio(raw to aac) mux it and sink it as mp4 file. But every time i
> >     stuck in
> >     > encoding and decoding video and audio. I need to create pipe which
> >     will do
> >     > all this job. Pleas help me
> >
> >     It seems to me you have the terms 'encode' and 'decode' mixed up.
> >
> >     What pipeline(s) have you tried so far?
> >
> >     It shouldn't be very difficult, something along the lines of:
> >
> >     gst-launch -v uridecodebin uri=file:///... name=decode ! queue !
> >     ffmpegcolorspace ! x264enc ! queue ! mux. decode. ! queue !
> >     audioconvert !
> >     audioresample ! faac ! queue ! mux. ffmux_mp4 name=mux ! filesink
> >     location=...
> >
> >     Cheers,
> >     Martijn.
> >     _______________________________________________
> >     gstreamer-devel mailing list
> >     [hidden email] <http://user/SendEmail.jtp?type=node&node=4491968&i=0>
>
> >     http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
> >
> >
> --------------------------------------------------------------------------
> >     If you reply to this email, your message will be added to the
> >     discussion below:
> >
> http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4491968.html
> >
> >     To unsubscribe from mpeg-2 to mpeg-4, click here.
> >     NAML
> >     <
> 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>
>
> >
> >
> >
> >
> >
> --------------------------------------------------------------------------
> > View this message in context: Re: mpeg-2 to mpeg-4
> > <
> http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492012.html>
>
> > Sent from the GStreamer-devel mailing list archive
> > <http://gstreamer-devel.966125.n4.nabble.com/> at Nabble.com.
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4492031&i=0>
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4492031&i=1>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4492031.html
>  To unsubscribe from mpeg-2 to mpeg-4, click here<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4488594&code=ZWR3YXJkLmNob3B1cnlhbkBnbWFpbC5jb218NDQ4ODU5NHwtMTM0NTQyMDc3Mw==>
> .
> NAML<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>
>


--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/mpeg-2-to-mpeg-4-tp4488594p4495210.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120322/e48e00a8/attachment.html>


More information about the gstreamer-devel mailing list