[gst-devel] avi (MJPEG) to mpeg or something else

Edward Hervey bilboed at gmail.com
Fri Feb 2 16:30:07 CET 2007


Why do you have 2 decodebins ???

Try:

gst-launch-0.10 filesrc location=sarah.avi ! decodebin name=dbin !
queue ! audioconvert ! audioresample ! autoaudiosink dbin. ! queue !
ffmpegcolorspace ! videoscale ! autovideosink

  Edward

On 2/2/07, Wim Taymans <wim at fluendo.com> wrote:
> On Fri, 2007-02-02 at 15:35 +0100, Andreas Volz wrote:
> > Hello,
> >
> > I have this video:
> >
> > sarah.avi: RIFF (little-endian) data, AVI, 320 x 240, 10.00 fps, video:
> > Motion JPEG, audio: uncompressed PCM (mono, 8000 Hz)
> >
> > For my application I try to convert it with gstreamer into a mpeg,
> > divx or theora video. I tried the gst-launch command from [1], but it
> > failed with:
> >
> > > LC_ALL=C gst-launch-0.8 filesrc sarah.avi ! avidemux name=demux
> > > demux.audio_00 ! decodebin ! audioconvert ! audioresample !
> > > autoaudiosink   demux.video_00 ! queue ! decodebin !
> > > ffmpegcolorspace ! videoscale ! autovideosink
> >
> > WARNING: erroneous pipeline: no element "audioresample"
> >          Trying to run anyway.
> > RUNNING pipeline ...
> > ERROR: from element /pipeline0/filesrc0: No file name specified for
> > reading.
> > ERROR: pipeline doesn't want to play.
> >
> > Then I tried this:
> >
> > > gst-launch-0.10 filesrc file://sarah.avi ! avidemux name=demux
> > > demux.audio_00 ! decodebin ! audioconvert ! audioresample !
> > > autoaudiosink   demux.video_00 ! queue ! decodebin !
> > > ffmpegcolorspace ! videoscale ! autovideosink
> > Setting pipeline to PAUSED ...
> > ERROR: Pipeline doesn't want to pause.
> > FEHLER: Von Element /pipeline0/filesrc0: Kein Dateiname zum Lesen
> > angegeben.
> > Zusätzliche Debugginginformation:
> > gstfilesrc.c(967): gst_file_src_start (): /pipeline0/filesrc0
> > Setting pipeline to NULL ...
> >
> > (gst-launch-0.10:2646): GStreamer-WARNING **: loop detected in the
> > graph !!
> > FREEING pipeline ...
> >
> > So any ideas the pipeline should look like?
>
> try:
>
> gst-launch-0.10 filesrc location=sarah.avi ! avidemux name=demux
>  demux.audio_00 ! decodebin ! audioconvert ! audioresample !
>  autoaudiosink   demux.video_00 ! queue ! decodebin !
>  ffmpegcolorspace ! videoscale ! autovideosink
>
> wim
>
> >
> > BTW: Could gstreamer autodetect the video format input?
> >
> > regards
> > Andreas
> >
> > [1]http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-avidemux.html
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


-- 
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/


More information about the gstreamer-devel mailing list