View Full Version : need a program that fixes headers of m2v files
slig
7th February 2003, 10:41
i have encountered the following problem: i have a few dvd's that i demuxed into video and sound respectively. But the m2v stream demuxes with some errors in header (e.g. bitrate viewer says something about bad header). These DVD's don't want to play on some DVD set-top players.
One more example: If I use programs, let's say Chopper Xp, which cuts vob file in random place - i get a m2v file with a bad header and also ac3 with bad header too. I understand the dvd structure so I'm not wondering; and I know what to do with ac3 - I take HeadAC3he - and it fixes the header of a file.
Hence I suppose i need a program akin HeadAC3he, but working with video - which fixes bad m2v headers . Something like it I saw for Mac platform - it's called mpeg guillotine, but I need for PC.
Have any suggestions or maybe who knows the name of the program?
P.S. If I posted in wrong place - tell me where I have to post.
auenf
7th February 2003, 13:29
if you demuxed with smartripper, then demux with DVDDecrypter instead, smartripper has been known to cause errors in ac3, if that doesnt help, remove any overclock you may have.
Enf...
slig
9th February 2003, 05:09
Sorry, did I say something about problems with ac3? I don't have problems with it! I know how to fix it. I used tons of programs that rip dvd content - smartripper, mpegutils, vobedit, vobrator, vstrip, chopperXp, dvd2avi and so on... But it always happens, no matter what program you use - if you cut a VOB file in a random place (not by chapters) - you get a bad header - 'cause it's being cut off! So, once more: I need a program that fixes bad m2v headers, not ac3! Can you advice me something?
jankster
9th February 2003, 16:25
Every once in a while I get corrupt header data or other weird problems. I use a HEX editor to fix my problems. I use XVI32, but there are lots of them. Look at a good VOB with VOBEdit to see how the HEX data (packets)are formatted. Another "tool" I use to merge AC3 or M2V files is the DOS command line "copy /b file1 + file2 outputfile" works perfect everytime provided the source files are clean, you don't need a fancy GUI program to merge files.
Below I paste my hex editor note:
Strip corrupt header in a VOB
In a hex editor, find the first “00 00 01 BF” sequence, this is a NAV Pack. Back up a few locations till you find “00 00 01 BA”, this is the start, delete everything back from this point. Rebuild the IFO and then VOB’s.
Change all vob/cell id’s in a VOB
Find and replace:
VOB 1, ID 1
00 01 00 01 00
TO
VOB 2, ID 26
00 02 00 1A 00
Change “progressive sequence” in a VOB I-frame
Find and replace:
progressive sequence = yes
B5 14 8A 00 01 00 00
TO
progressive sequence = no
B5 14 82 00 01 00 00
slig
10th February 2003, 01:54
Much thanks, jankster! I think this is what I was looking for. I'll try and if I have any questions I'll post again. Hope I will not...
You know, it's a common problem, but I thought I wouldn't get a response for it - but you did! I'm not a fan of programs with nice gui's - i just want to solve a problem - no matter if it's hard for me or not. When I really get stuck - I post to a forum, but in other cases I just read the manual. Sorry for this flood, but I'm really grateful to you.
Respect , slig
jankster
10th February 2003, 05:17
Slig,
When you get really good, help someone else out sometime.
slig
10th February 2003, 12:56
Once more thanks, jankster! I tried it - it works!
And of course I'll try to help some lost souls - i do so if i know how.
Regards, slig
ronnylov
11th February 2003, 14:40
There is a program called restream that can modify mpeg2 headers. Don't know if it is any good in this case but I just wanted to mention it. I use it to fix wrong field order, wrong aspect ratio and things like that.
slig
12th February 2003, 13:56
thanks, ronnylov! I know this program, and i use it to fake dvd authoring program. In my case it doesn't fit my needs. But jankster's answer is the right one, so if you encounter this problem in future, you can do as he said.
Regards, slig
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.