[gst-devel] Using gst-launch to convert between video formats on the command line?

Michael R. Head burner at suppressingfire.org
Mon Oct 2 20:20:41 CEST 2006


On Mon, 2006-10-02 at 20:02 +0200, Mark Nauwelaerts wrote:
> Both of the problems are (probably) typical of failing caps negotiation.
> In this case, you said that the mkv contains AAC, but the caps on avimux do not
> support AAC, only mpegversion 1 (leaving aside any discussion whether or not an
> AVI file can or should contain AAC). If you modify the pipeline to transcode the
> audio to e.g. mp3 (or ac3), then it should be OK.

Cool. That makes sense. I wondered if that would be problematic.

> So, e.g. (though personally haven't done much with the AAC elements)
> 
> gst-launch-0.10 filesrc location="in.mkv" ! matroskademux name=d \
>                 d.video_00 ! queue ! m. \
>                 d.audio_00 ! queue ! faad ! audioconvert ! lame ! m. \
>                 avimux name=m ! filesink location=out.avi

Almost there, but it still doesn't work quite right for me:

$ gst-launch-0.10 filesrc location="in.mkv" ! matroskademux name=d \
 d.video_00 ! queue ! m.  d.audio_00 ! queue ! faad ! audioconvert ! \
 lame ! m.  avimux name=m ! filesink location=out.avi
WARNING: erroneous pipeline: could not link lame0 to m

And then I tried the video/mpeg trick from before:
$ gst-launch-0.10 filesrc location="in.mkv" ! matroskademux name=d \
 d.video_00 ! queue ! video/mpeg, version=4 ! m.  d.audio_00 ! queue !
 faad ! audioconvert ! lame ! m.  avimux name=m ! filesink \
 location=out.avi
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

And it hung there PREROLLING. 

> Regards,
> Mark.

-- 
Michael R. Head <burner at suppressingfire.org>
suppressingfire.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20061002/8a51910b/attachment.pgp>


More information about the gstreamer-devel mailing list