Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
22nd August 2008, 16:00 | #5861 | Link |
Registered User
Join Date: Aug 2002
Posts: 221
|
"mkvextract --raw" and "mkvextract --fullraw" don't make any different for this particular fragment at the beginning. comparing 20MB after the fragment at the beginning shows that:
- the different between raw_1 and raw_2 is missing from time to time the following sequence: 0CFF[FF]800000000109xx00000001 which is something else + AUD. - the different between raw_2 and raw_3 is missing from time to time the following sequence: 780A @sehgal.v7 yes, i agree that such behavior is not what i'm expecting from container format. |
22nd August 2008, 16:10 | #5863 | Link | |||
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Quote:
Quote:
Quote:
I'm in contact with Mosu. He seems to consider adding AUDs to mkvextract. Maybe he'll also fix the double sequence headers at the beginning of the stream. That should give us bit perfection. Except this "something else" which we need to identify before we can talk about what to do with it. |
|||
22nd August 2008, 16:40 | #5864 | Link | ||
Registered User
Join Date: Aug 2002
Posts: 221
|
VC-1 doesn't work here too. i'm doing the same test as with h264. also, will try with MPEG2.
Quote:
http://rapidshare.de/files/40296284/...20mb.h264.html eac3to file.m2ts file.mkv mkvextract file.mkv to raw_2.h264: http://rapidshare.de/files/40296287/...20mb.h264.html Quote:
[edit] eac3to file.vob raw_1.m2v: eac3to file.vob file.mkv mkvextract file.mkv to raw_2.m2v: compare raw_1.m2v and raw_2.m2v: so, overall result is that currently merge/extract video to/from MKV is not bit-perfect for VC1, H264 and MPEG2. Last edited by xkodi; 22nd August 2008 at 17:28. |
||
22nd August 2008, 17:29 | #5865 | Link | |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Sample?
Quote:
Sample? P.S: Please use "--raw" for MPEG2 demuxing. I think at least with MPEG2 there's a big difference. You should not use mkvmerge + mkvextract. You should use eac3to + "mkvextract --raw". That results in bit perfect results for VC-1 and MPEG2, as far as I remember. Eventually the last video frame will be lost, but that's about it. Last edited by madshi; 22nd August 2008 at 17:52. |
|
22nd August 2008, 17:35 | #5866 | Link |
Registered User
Join Date: Jul 2008
Posts: 93
|
@Madshi
Test file hxxp://rapidshare.com/files/139290511/Test.ts - Demuxing them. Original size - 9,400,000 (50000x188) 6,750,422 Video by Eac3to.h264 6,770,832 Video by TSMuxer.264 6,770,832 Video by TSRemux.h264 2,243,576 Audio by Eac3to.dtsma 2,244,847 Audio by TSMuxer.dtsma 2,244,847 Audio by TSRemux.dtsma Last edited by sehgal.v7; 22nd August 2008 at 17:38. |
22nd August 2008, 17:48 | #5867 | Link |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
That's filler data and AUD. I already explained the AUD. The filler data is just there to achieve CBR or some other stupid aims. So there's no reason to leave it in the stream. It's like zero padded DTS files. No reason really to keep it in the stream. That's why it gets removed by the MKV muxing process.
|
22nd August 2008, 17:51 | #5868 | Link | |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Quote:
|
|
22nd August 2008, 18:34 | #5869 | Link | |
Registered User
Join Date: Aug 2002
Posts: 221
|
Quote:
MPEG2 sample: http://rapidshare.de/files/40296979/VTS_02_1.VOB.html screenshot from the comparison: i really can't get why destroying the original stream by removing data even if they are useless. the only reason that i can think of is to save space, but with removing things like AUD you can't save space anyway. |
|
22nd August 2008, 18:48 | #5870 | Link | |
Registered User
Join Date: Jan 2006
Location: Athens, Greece
Posts: 1,518
|
Quote:
And I like removing useless things from my data. I want them as clean as possible, but that's my opinion. |
|
22nd August 2008, 18:53 | #5871 | Link | |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Quote:
Look, with VOB and m2ts containers the video data is stored as one continuous stream of bytes. The AUDs are in the h264 streams cause they make it easier to separate frames. But MKV works very differently. It stores each frame separately. So storing the AUDs in MKV doesn't make any sense. I wouldn't even know where to store them! Should I put them in front of each frame or behind? IMO the software which demuxes a h264 stream from an MKV should put the AUDs back in. That's really easy to do. Now unfortunately Mosu doesn't seem to like the idea. But that's a different topic. |
|
22nd August 2008, 19:05 | #5872 | Link |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
I've tested your MPEG2 sample and I get 100% bit perfection when I use "--raw". Caution: You need to put the "--raw" parameter at the right place in the command line! Or else it will have no effect. The right command line would be this:
"mkvextract tracks sample.mkv --raw 1:test.m2v" |
22nd August 2008, 19:25 | #5873 | Link | |
Registered User
Join Date: Aug 2002
Posts: 221
|
my command was "mkvextract tracks sample.mkv 1:test.m2v --raw"
after put the "--raw" at the right place it is bit-perfect here too. so, indeed with MPEG2 everything is OK. thank you for you help! Quote:
what about AUDs - are decoders OK with raw h264 stream without AUDs? |
|
22nd August 2008, 20:54 | #5874 | Link | |
Registered User
Join Date: Nov 2004
Location: NZ
Posts: 141
|
Quote:
However, when I ran the usual commands again, the step prior to that recorded in the log clearly shows that it is adding 00001.m2ts and 00002.m2ts together. Looking at the stream list the 00002.m2ts file is only 54kb in size, and is not required at all. The only thing it does is prevent eac3to from doing it's job properly. Let me know if there's anything further I can do to help. |
|
22nd August 2008, 21:40 | #5875 | Link | |||
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Quote:
Quote:
Quote:
However, eac3to depends on h264 files containing AUDs. Without them eac3to doesn't properly handle h264 files. So basically if you mux a raw h264 stream to MKV, then demux it again, eac3to will not handle it properly, anymore. In the long run I need to find a way to solve this problem. Maybe I'll make eac3to not depend on AUDs, anymore. Or maybe I'll find another way. Not sure... |
|||
22nd August 2008, 21:42 | #5876 | Link | |
Registered Developer
Join Date: Sep 2006
Posts: 9,140
|
Quote:
|
|
22nd August 2008, 22:04 | #5877 | Link | |
b4k3d
Join Date: Sep 2007
Posts: 310
|
Quote:
Yeah, once I went back in just used the main M2TS file for my source input instead of my BD-rom, Mr and Mrs Smith ran through fine. Thanks for the tip |
|
23rd August 2008, 07:41 | #5879 | Link |
Registered User
Join Date: Jul 2008
Posts: 93
|
@Madshi
VC-1 Sample for your study, hxxp://rapidshare.com/files/139429429/Video.ts Original TS File Size - 5,220,384 4,948,722 Demuxed Video by Eac3to.vc1 4,933,798 Extracted Video by mkvextract.vc1 4,927,251 Muxed by Eac3to.mkv Not Exact VC1 File. Regards, Sehgal |
Tags |
eac3to |
Thread Tools | Search this Thread |
Display Modes | |
|
|