Author Topic: mkv header compression easy fixes using batch files  (Read 80436 times)

September 26, 2010, 05:18:08 AM
Reply #15

RavRob

  • DeSpammer
  • Hero Member

  • Offline
  • ****

  • 1728
Nice.  Soooo simple to use too.  Love it.  Now I can go back to custom FW instead of using 1.03.40
Windows 7 Ultimate with SP1
WDTV Live
1.02.21 WDLXTV 0.5.1.4 (Beta)
Linksys - WUSB600N USB Adapter
DLink - Dir-655 Router
Atheros - AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
XBMC - The Future of Television

September 26, 2010, 05:28:00 AM
Reply #16

RavRob

  • DeSpammer
  • Hero Member

  • Offline
  • ****

  • 1728
Nice.  Soooo simple to use too.  Love it.  Now I can go back to custom FW instead of using 1.03.40

Hmmm......just did a file with it but once done it disappears....where did it go?
Windows 7 Ultimate with SP1
WDTV Live
1.02.21 WDLXTV 0.5.1.4 (Beta)
Linksys - WUSB600N USB Adapter
DLink - Dir-655 Router
Atheros - AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
XBMC - The Future of Television

September 26, 2010, 07:02:41 AM
Reply #17

gffmac

  • Newbie

  • Offline
  • *

  • 8
Just an update here - But I've put together a small GUI for automating the remuxing process.

Just click on a directory - it scans it, identifies which files have header compression, and then remuxes them in the background (without having multiple console windows popping up).

It worked fine for me. Hopefully, some people will find it simpler than a batch file. As it really is a 2-click process.

It requires:
.NET framework v3.5 or v 4 (should be automatically installed by Windows update on XP and higher)
MKVToolNix v4.3.0 or newer http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-unicode-4.3.0-setup.exe
MKClean v0.5.7 or newer https://sourceforge.net/projects/matroska/files/mkclean/mkclean-win32.v0.6.0.zip/download

Just pop the MKWDClean.exe file in the same directory as MKVFix.exe. If you don't, MKVFix will ask you where to find it.

You can download the GUI app from: www.chumpusrex.com/junk/MKVFix.exe

If you are worried about downloading exe files and would prefer to compile it yourself - then the source package is available from: www.chumpusrex.com/junk/MVVFix-src.rar
Please bear in mind that this was knocked up in a couple of hours and the code is seriously ugly. However, it seems to work with no glaring bugs.

Screenshots:
Pic1
Pic2

Just tried your gui and im getting this error on the only file that reported needing fixing
15:56:08: MkWDclean has exited with code -1073741819
15:56:08: MkWDClean returned a failure code

Ive been searching around and it seems to be something to do with subtitles.
« Last Edit: September 26, 2010, 07:22:56 AM by gffmac »

September 26, 2010, 08:47:54 AM
Reply #18

ChumpusRex

  • Newbie

  • Offline
  • *

  • 9
Quote
Hmmm......just did a file with it but once done it disappears....where did it go?

Are you sure that the file has gone?

During processing, a temporary file called 'clean.<old file>' is created.

Once processing is complete - the temporary file is double checked for completeness. Once the file has been validated, the old file is deleted, and the clean file renamed to take its place.

September 26, 2010, 09:47:05 AM
Reply #19

ChumpusRex

  • Newbie

  • Offline
  • *

  • 9
Just tried your gui and im getting this error on the only file that reported needing fixing
15:56:08: MkWDclean has exited with code -1073741819
15:56:08: MkWDClean returned a failure code

Ive been searching around and it seems to be something to do with subtitles.

Error code -1073741819 (or 0xC0000005) means 'access violation'. This means that the program has crashed due to a bug in the program.

Unfortunately, I don't really have any good suggestions. Possibilities are that you have some obscure MKV file format that even the Matroska tools can't handle it; that your file is corrupted; or your computer is malfunctioning (e.g. overclocked, faulty RAM).

You could try getting 'mkvalidator' and seeing what it says about the file.

For what it's worth, I've updated the program, so it's got more detailed logging, so any further problems should be more traceable.

Log example
Log example2
« Last Edit: September 26, 2010, 10:42:07 AM by ChumpusRex »

September 26, 2010, 01:11:49 PM
Reply #20

gffmac

  • Newbie

  • Offline
  • *

  • 8
Just tried your gui and im getting this error on the only file that reported needing fixing
15:56:08: MkWDclean has exited with code -1073741819
15:56:08: MkWDClean returned a failure code

Ive been searching around and it seems to be something to do with subtitles.

Error code -1073741819 (or 0xC0000005) means 'access violation'. This means that the program has crashed due to a bug in the program.

Unfortunately, I don't really have any good suggestions. Possibilities are that you have some obscure MKV file format that even the Matroska tools can't handle it; that your file is corrupted; or your computer is malfunctioning (e.g. overclocked, faulty RAM).

You could try getting 'mkvalidator' and seeing what it says about the file.

For what it's worth, I've updated the program, so it's got more detailed logging, so any further problems should be more traceable.

Log example
Log example2

Nice update ChumpusRex I have ran it through mkvalidator and appears to be valid:
mkvalidator 0.2.3: the file appears to be valid
Track #1 V_MPEG4/ISO/AVC 700517 bits/s
Track #2 A_DTS 1509002 bits/s
Track #3 S_TEXT/UTF8 29 bits/s
file created with libebml v1.0.0 + libmatroska v1.0.0 / mkvmerge v4.2.0 ('no talking') built on July 29 2010 ...

And im using a laptop with no overclocking whatsoever core2duo 2.6ghz 4gb ram, plenty of hd space.
« Last Edit: September 26, 2010, 01:44:14 PM by gffmac »

September 26, 2010, 01:43:11 PM
Reply #21

RavRob

  • DeSpammer
  • Hero Member

  • Offline
  • ****

  • 1728
Are you sure that the file has gone?

During processing, a temporary file called 'clean.<old file>' is created.

Once processing is complete - the temporary file is double checked for completeness. Once the file has been validated, the old file is deleted, and the clean file renamed to take its place.


Yeah I  read the log and it says it did not succeed in fixing the file.  That one has been giving me problems for a long time. 

I'll keep this though as it is the nicest and easiest MKV fix I have seen so far.
Windows 7 Ultimate with SP1
WDTV Live
1.02.21 WDLXTV 0.5.1.4 (Beta)
Linksys - WUSB600N USB Adapter
DLink - Dir-655 Router
Atheros - AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
XBMC - The Future of Television

September 28, 2010, 02:21:26 PM
Reply #22

ChumpusRex

  • Newbie

  • Offline
  • *

  • 9
Quote
Just tried your gui and im getting this error on the only file that reported needing fixing
15:56:08: MkWDclean has exited with code -1073741819
15:56:08: MkWDClean returned a failure code

I have confirmed that this is a bug in mkWDclean 0.6.0.

I can reproduce it by muxing a file in a particular way with MKVMerge 4.3.0.

mkWDclean 0.5.7 doesn't have this bug, and remuxes all my files fine - whereas 0.6.0 crashes on quite a few - especially those muxed with mkvMerge 4.3.0

September 29, 2010, 03:27:42 AM
Reply #23

gffmac

  • Newbie

  • Offline
  • *

  • 8
Quote
Just tried your gui and im getting this error on the only file that reported needing fixing
15:56:08: MkWDclean has exited with code -1073741819
15:56:08: MkWDClean returned a failure code

I have confirmed that this is a bug in mkWDclean 0.6.0.

I can reproduce it by muxing a file in a particular way with MKVMerge 4.3.0.

mkWDclean 0.5.7 doesn't have this bug, and remuxes all my files fine - whereas 0.6.0 crashes on quite a few - especially those muxed with mkvMerge 4.3.0

Thanks ChumpusRex I will test this out when I get home later.

September 30, 2010, 08:44:21 AM
Reply #24

gffmac

  • Newbie

  • Offline
  • *

  • 8
Quote
Just tried your gui and im getting this error on the only file that reported needing fixing
15:56:08: MkWDclean has exited with code -1073741819
15:56:08: MkWDClean returned a failure code

I have confirmed that this is a bug in mkWDclean 0.6.0.

I can reproduce it by muxing a file in a particular way with MKVMerge 4.3.0.

mkWDclean 0.5.7 doesn't have this bug, and remuxes all my files fine - whereas 0.6.0 crashes on quite a few - especially those muxed with mkvMerge 4.3.0

Working perfect now! thx man

September 30, 2010, 09:06:45 AM
Reply #25

RavRob

  • DeSpammer
  • Hero Member

  • Offline
  • ****

  • 1728
Where can I get that mkWDclean 0.5.7?
I can only find v0.6 on their site.

Thanks
Windows 7 Ultimate with SP1
WDTV Live
1.02.21 WDLXTV 0.5.1.4 (Beta)
Linksys - WUSB600N USB Adapter
DLink - Dir-655 Router
Atheros - AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
XBMC - The Future of Television

September 30, 2010, 02:43:22 PM
Reply #26

ChumpusRex

  • Newbie

  • Offline
  • *

  • 9
http://sourceforge.net/projects/matroska/files/mkclean/mkclean-win32.v0.5.7.zip/download

I've also updated the GUI (fixed a few bugs, added warning about dodgy mkwdclean, made it a bit slicker, rewrote large chunks of it).
www.chumpusrex.com/junk/MKVFix.exe

October 01, 2010, 02:33:23 PM
Reply #27

RavRob

  • DeSpammer
  • Hero Member

  • Offline
  • ****

  • 1728
Windows 7 Ultimate with SP1
WDTV Live
1.02.21 WDLXTV 0.5.1.4 (Beta)
Linksys - WUSB600N USB Adapter
DLink - Dir-655 Router
Atheros - AR8131 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
XBMC - The Future of Television

October 05, 2010, 12:18:50 PM
Reply #28

ChumpusRex

  • Newbie

  • Offline
  • *

  • 9
Hmm. Something strange going on here.
I've just found a whole bunch of files that don't play on my WDTV live - either with firmware 1.2.21 or with 1.3.41.

After a bit of investigation - I've found that these are some of the files that were processed with mkwdclean 0.5.7. So, it seems that mkWDclean is doing something that the WDTV doesn't always like.

Fortunately, MKVMerge could rescue the files without much difficulty.

Anyway, seeing as I had to automate MKVmerge to get it to remux the files - I've now removed mkWDclean from my program and replaced it with MKVmerge.

As a bonus mkvmerge sees to run much faster than mkwdclean. The take-home-message is that mkclean isn't really ready for the primetime just yet - broken files and unexpected crashes don't impress me that much.

New download link:
http://www.chumpusrex.com/junk/MKVFix.exe

October 14, 2010, 09:21:35 AM
Reply #29

plumb121

  • Newbie

  • Offline
  • *

  • 1

Thanks for the work you have done on this, could you explain how to put your program and the others together so that i can try this on some non-working files i have, as my knowledge is not that great on this. Thanks.