Log in

View Full Version : mkvextract gui not extracting h.264 video stream


zammil
21st February 2011, 11:02
hi,

I've got a mkv file of h.264 and when i use mkvextract gui it's only extracting only 20 MB of the whole video stream which is above 1.75 GB.tried various versions of mkvextract gui ,avi-mux ,yamb but result is still the same.is it the video's problem??.when i tried to demux using xvid4psp it is showing the error NAL too big cannot extract.is there any other h.264 extractor for mkv files.
i have tried tsmuxer but keep showing the error can't create the temporary meta file .any other solution plz help

Mediainfo of file

General
Unique ID : 188404013269171282185055390717313268716 (0x8DBD4B0746D1DAF69A28708323D3BBEC)
Complete name : D:\Die Hard Set Box\Die Hard 2 (1990)\Die Hard 2 (1)-003.mkv
Format : Matroska
File size : 1.77 GiB
Duration : 2h 2mn
Overall bit rate : 2 060 Kbps
Encoded date : UTC 2011-02-20 20:06:13
Writing application : mkvmerge v4.4.0 ('Die Wiederkehr') built on Oct 31 2010 21:52:48
Writing library : libebml v1.0.0 + libmatroska v1.0.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 2h 2mn
Bit rate : 2 019 Kbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.121
Stream size : 1.73 GiB (98%)

Brazil2
21st February 2011, 11:57
The old MKVextract GUI is outdated and deprecated, now you'd rather use MKVExtractGUI-2:
http://sourceforge.net/projects/mkvextractgui-2/files/

zammil
21st February 2011, 13:17
tried it the same result .rebuilded the header using meteorite and then tried to extract but it's extracting only 20 MB of the file.

nm
21st February 2011, 13:33
Try remuxing to MP4 with ffmpeg or VLC:

ffmpeg -i in.mkv -vcodec copy -acodec copy out.mp4

vlc -I dummy --sout file/mp4:out.mp4 in.mkv

If ffmpeg fails too, you'll probably need to seek over the broken point. If the audio can't be placed in MP4, use -an instead of -acodec copy and deal with it separately.

upyzl
21st February 2011, 13:48
Did you update mkvextract(mkvtoolnix)?

mkvextractGUI-2 is also based on mkvextract

zammil
21st February 2011, 14:31
Try remuxing to MP4 with ffmpeg or VLC:

ffmpeg -i in.mkv -vcodec copy -acodec copy out.mp4

vlc -I dummy --sout file/mp4:out.mp4 in.mkv

If ffmpeg fails too, you'll probably need to seek over the broken point. If the audio can't be placed in MP4, use -an instead of -acodec copy and deal with it separately.

i don't want to remux to mp4 i just want to extract the h.264 files.it doesn't have audio stream.have extracted many files with mkvextractgui successfully this is the first time a problem has come.but the video has no problem during playback.it runs on all players smoothly

zammil
21st February 2011, 14:32
Did you update mkvextract(mkvtoolnix)?

mkvextractGUI-2 is also based on mkvextract

yes both mkvtoolnix(4.4.5) and mkvextract gui(2) are up to date

upyzl
21st February 2011, 14:42
try

ffmpeg -i in.mkv -vcodec copy out.h264

nm
21st February 2011, 14:46
i don't want to remux to mp4 i just want to extract the h.264 files.it doesn't have audio stream

Well, you could've simply extracted the streams from the MP4 if it works. But if you insist, try this then:

ffmpeg -i in.mkv -an -vcodec copy -vbsf h264_mp4toannexb -f h264 out.264


try

ffmpeg -i in.mkv -vcodec copy out.h264

It doesn't work without the h264_mp4toannexb bitstream filter.

zammil
21st February 2011, 14:52
thank you nm i tried the CLI u give me but i keep getting errors.can u give me any ffmpeg gui which can extract the streams

nm
21st February 2011, 15:02
thank you nm i tried the CLI u give me but i keep getting errors.can u give me any ffmpeg gui which can extract the streams

If they are the same errors as before and you only get a 20 MB file out, a GUI wouldn't help at all.

Try seeking over the problematic point with -ss <seconds>. For example to skip the first 120 seconds:

ffmpeg -i in.mkv -ss 120 -an -vcodec copy -vbsf h264_mp4toannexb -f h264 out.264

If you are getting different errors and no output file at all, copy the whole printout here.

zammil
21st February 2011, 15:05
no its not the same error if possible plz give the gui link

nm
21st February 2011, 15:06
no its not the same error if possible plz give the gui link

I don't know a GUI that works. Post the error log and the exact command you used.

zammil
21st February 2011, 16:03
Extraction started on 02/21/2011 at 20:09:24
Meteorite.Die Hard 2 (1)-003.mkv :
Extracting Items - video(vfr)(error)
Error: Track 1: NAL too big
Extraction failed
Extraction finished on 02/21/2011 at 20:10:11
error log when used mkvcleaver
my cmd is corrupted that's y i'm getting the errors when using ffmpeg

nm
21st February 2011, 17:27
my cmd is corrupted that's y i'm getting the errors when using ffmpeg

Shouldn't be too hard to fix that. Make sure you quote the input file name properly or rename it to something simple like video.mkv.