List Info

Thread: avi (MJPEG) to mpeg or something else




avi (MJPEG) to mpeg or something else
user name
2007-02-02 08:35:54
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?

BTW: Could gstreamer autodetect the video format input?

regards
Andreas

[1]http://gstreamer.freedesktop.org/data/doc/gstre
amer/head/gst-plugins-good-plugins/html/gst-plugins-good-plu
gins-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-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
Re: avi (MJPEG) to mpeg or something else
user name
2007-02-02 09:44:35
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/gstre
amer/head/gst-plugins-good-plugins/html/gst-plugins-good-plu
gins-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-devellists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstream
er-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-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
Re: avi (MJPEG) to mpeg or something else
user name
2007-02-02 09:12:10
Am Fri, 02 Feb 2007 15:44:35 +0000 schrieb Wim Taymans:

> > 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

Thanks. That works. But the performance is really bad. With
totem it
looks really smooth. Does gst-launch not buffer the video
source?

regards
Andreas

------------------------------------------------------------
-------------
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-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )