How to split a mkv(AVC+AAC) file to pure video and audio files by using gst-launch?

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Nov 25 03:20:55 PST 2011


On Fri, 2011-11-25 at 10:08 +0100, Rob wrote:

> > BUT..
> > # gst-launch-0.10 filesrc location=/home/test.mkv ! matroskademux !
> > h264parse ! matroskamux ! filesink location=from_matro_h264.mkv
> 
> Try:
> 
> gst-launch-0.10 filesrc location=/home/test.mkv ! matroskademux !
> h264parse ! 'video/x-h264,stream-format=avc' ! filesink
> location=rawh264.h264


Try 'video/x-h264,stream-format=byte-stream' instead. That should create
a file with H.264 data that can be read without a container.

gst-typefind-0.10 foo.h264

should be able to recognise it then as well.

 Cheers
  -Tim



More information about the gstreamer-devel mailing list