mpeg-2 to mpeg-4
Martijn Grendelman
martijn at iphion.nl
Wed Mar 21 04:40:20 PDT 2012
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
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list