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

Raymond18 yhung124 at
Fri Nov 25 03:59:56 PST 2011

To TIm,

According to your describing, The following command should create a file
with H.264 data that can be read without a container. But something wrong
after executing.
Do I use a wrong pipeline?

$ gst-launch-0.10 filesrc location=/home/test.mkv  ! matroskademux !
h264parse ! 'video/x-h264,stream-format=byte-stream' ! filesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstMatroskaDemux:matroskademux0:
GStreamer encountered a general stream error.
Additional debug info:
matroska-demux.c(6090): gst_matroska_demux_loop ():
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list