avi to mp4 Conversion

Raushan Kumar Choudhary raushankumar at tataelxsi.co.in
Mon Jan 25 13:09:44 PST 2016


Thanks for your quick response but i am getting this error :
WARNING: erroneous pipeline: no element "lamemp3enc"
 
i am using gstreamer 1.0 so can u suggest which element can replace lamemp3enc.

This is my pipeline:
sudo ./gst-launch-1.0 filesrc location=test.avi ! decodebin name=dbin dbin. ! queue ! x264enc ! mux. dbin. ! queue max-size-time=4000000000 ! lamemp3enc ! mux. qtmux name=mux ! filesink location=result.mov


Thanks,
Raushan

________________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Sebastian Dröge <sebastian at centricular.com>
Sent: Monday, January 25, 2016 11:26 PM
To: Discussion of the development of and with GStreamer
Subject: Re: avi to mp4 Conversion

On Mo, 2016-01-25 at 10:49 +0000, Raushan Kumar Choudhary wrote:
>
> I am trying to convert mp4 from avi using following pipeline:
>
> ./gst-launch-1.0 filesrc location=test.avi ! decodebin !  x264enc !
> qtmux ! filesink location=result.mov
>
> There is no audio in the mp4 file so can anyone  tell how i can get
> audio and video both after  conversion.

You're only passing the video stream to the QT muxer and drop the audio
stream. Try something like

  filesrc ! decodebin name=dbin
    dbin. ! queue ! x264enc ! mux.
    dbin. ! queue max-size-time=4000000000 ! lamemp3enc ! mux.
    qtmux name=mux ! filesink

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


More information about the gstreamer-devel mailing list