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

Raymond18 yhung124 at gmail.com
Fri Nov 25 00:10:24 PST 2011


Thanks a lot.

BUT..
# gst-launch-0.10 filesrc location=/home/test.mkv ! matroskademux !
h264parse ! matroskamux ! filesink location=from_matro_h264.mkv 

The above command will generate a mkv format file as following.
------------------------------
$ mediainfo from_matro_h264.mkv     
General
Unique ID  : 71489747204572974788463573681922212707
(0x35C86CAB19E3C56A9A2ECB325EC18363)
Complete name : from_matro.h264
Format : Matroska
Format version  : Version 2
Duration   : 26mn 59s
Overall bit rate    : 2 087 Kbps
Encoded date  : UTC 2011-11-25 08:01:02
------------------------------

How to generate a pure AVC format file as following by using gst-launch
without Matroska container?
Which plug-in should I use?
------------------------------
$ mediainfo test_track1_jpn.h264 
General
Complete name : test_track1_jpn.h264
Format  : AVC
Format/Info  : Advanced Video Codec

Video
Format : AVC
Format/Info   : Advanced Video Codec
Format profile  : High at L3.1
Format settings, CABAC   : Yes
Format settings, ReFrames    : 1 frame
Format settings, GOP   : M=1, N=30
Width  : 1 280 pixels
Height   : 720 pixels
Display aspect ratio  : 16:9
Frame rate mode   : Variable
Color space  : YUV
Chroma subsampling   : 4:2:0
Bit depth : 8 bits
Scan type   : Progressive
------------------------------

I already try 
# gst-launch-0.10  filesrc location=/home/test.mkv  ! matroskademux !
h264parse ! filesink location=use_h264parse.h264

It doesn't work.
------------------------------
$ mediainfo use_h264parse.h264
General
Complete name : from_matro.h264
File size : 402 MiB
------------------------------

Expect for all your response.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-split-a-mkv-AVC-AAC-file-to-pure-video-and-audio-files-by-using-gst-launch-tp4103663p4106681.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list