Log in

View Full Version : MP4 to MKV then extract fails


Sirber
18th August 2005, 01:39
Convert
C:\Projets\RealAnime\output\mkv>mkvmerge.exe -o c:\test.mkv "y:\Animes\In progress\Transformers\E01.mp4" --enable-durations

Extract
C:\Projets\RealAnime\output\mkv\mkvextract.exe tracks "C:\Projets\RealAnime\output\temp\E01.mkv" 1:"C:\Projets\RealAnime\output\temp\source-vid1.avi" 2:"C:\Projets\RealAnime\output\temp\source-aud2.aac"

Error
Error: Track 1 with the CodecID 'V_MS/VFW/FOURCC' is missing the "default duraton" element and cannot be extracted.

Infos
+ EBML head
+ Segment, size 163599059
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4027)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v0.7.5 + libmatroska v0.7.7
| + Writing application: mkvmerge v1.5.0 ('It's alright, baby') built on Jul 1 2005 10:35:18
| + Duration: 1310.276s (00:21:50.276000000)
| + Date: Thu Aug 18 00:25:58 2005 UTC
| + Segment UID: 0x90 0x80 0x9d 0x9e 0x41 0x34 0xd0 0xf0 0x9f 0x95 0xd0 0x86 0x19 0x9b 0x3c 0x1b
|+ Segment tracks
| + A track
| + Track number: 1
| + Track UID: 920064425
| + Track type: video
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 0
| + MinCache: 1
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: V_MS/VFW/FOURCC
| + CodecPrivate, length 40 (FourCC: DIVX, 0x58564944)
| + Language: und
| + Video track
| + Pixel width: 512
| + Pixel height: 384
| + Display width: 512
| + Display height: 384
| + A track
| + Track number: 2
| + Track UID: 4134910876
| + Track type: audio
| + Default flag: 1
| + Forced flag: 0
| + Lacing flag: 1
| + MinCache: 0
| + Timecode scale: 1.000000
| + Max BlockAddition ID: 0
| + Codec ID: A_AAC/MPEG4/LC/SBR
| + Default duration: 42.667ms (23.438 fps for a video track)
| + Language: und
| + Audio track
| + Sampling frequency: 24000.000000
| + Channels: 6
| + Output sampling frequency: 48000.000000
|+ EbmlVoid (size: 1024)
|+ Cluster

MeteorRain
18th August 2005, 03:25
Can mp4inmkv be extracted to avi? <_< >_>

Sirber
18th August 2005, 03:29
Yes, if I had "Default duration".

stephanV
18th August 2005, 10:31
you can use --default-duration when muxing to mkv... you cant extract to avi if mkvextract doesnt know what frame rate to use.

Sirber
18th August 2005, 14:37
C:\Projets\RealAnime\output\mkv>mkvmerge.exe -o c:\test.mkv --default-duration 2:43ms "y:\Animes\In progress\Transformers\E01.mp4"

?

Valid MP4 tracks are the #3 and #4, #1 and #2 are crap.

stephanV
19th August 2005, 09:57
You will have to specify a duration per track, you cant obviously do it for a whole file. Maybe you should read mkvmerge documentation for a bit.

Sirber
19th August 2005, 12:05
Can't mkvmerge get it from the MP4 like it does from OGM?

stephanV
19th August 2005, 12:57
i guess not, i dont even know if there is something like a frame rate in mp4...

on the other hand, i have no idea why you would go via mp4 to mux MPEG4 ASP into Matroska. and extracting it to AVI afterwards...

bond
19th August 2005, 13:27
i guess not, i dont even know if there is something like a frame rate in mp4...there is

Sirber
19th August 2005, 13:57
So then it's a bug in mkvmerge?

stephanV
19th August 2005, 14:12
maybe a missing feature, assuming the mkv plays ok. i dont know if the default duration element is mandatory for a video track.

only Mosu could clear this up though.

Sirber
19th August 2005, 14:19
it plays ok but I cannot seek in it.

bond
19th August 2005, 14:49
i dont know the details discussed here, but in mp4 the duration is stored explicitely in the track header atom