Sign In

Hi all, Need help with editing VOB file

Author
Time
It seems that the simplest thing to me is turning out to be the most nerve racking. I'm trying to edit out the 4 second gap on TR47's ESB (which by the way is awesome, Cowclops.) I can't seem to find a freeware or shareware program that will allow me to do this without converting the Vob files. I'm willing to bet that products like Ulead DVD Moviefactory, and Adobe's Encore do this with ease. Is there an easy method to doing this, without having to spend my lifesavings? I've tried DVD-lab, and Mpeg Video Wizard to no avail. I know the answer is right in front of my face.

Help me Obi-Won Kenobi, you're my only hope.
http://www.kastechnology.com/storm.php
Author
Time
if i were you i would place the vob file in womble's Mpeg Video Wizard (google it) - i'm sure it comes with a free trail. it's one of very few mpeg editors that allow frame by frame editing - cut the four seconds out, then export the file and rename the mpg to VOB.

i think this should work... let me know.
Author
Time
I think you'll probably have to re-encode it.

have you tried demuxing a couple of segments and then using an mpeg2 clip joining util? That might work.
Author
Time
Womble is a VOB editor and I know that RowMan took out that very problem in his remix simply by using TMPGEnc DVD Author.

I used to be very active on this forum. I’m not really anymore. Hi everybody. You’re all awesome. Keep up the good work.

Author
Time
I would use DVD-Shrink, myself. It'll crop the VOB and create a new one for you.

<span class=“Italics”>MeBeJedi: Sadly, I believe the prequels are beyond repair.
<span class=“Bold”>JediRandy: They’re certainly beyond any repair you’re capable of making.</span></span>

<span class=“Italics”>MeBeJedi: You aren’t one of us.
<span class=“Bold”>Go-Mer-Tonic: I can’t say I find that very disappointing.</span></span>

<span class=“Italics”>JediRandy: I won’t suck as much as a fan edit.</span>

Author
Time
I ended up acquiring TMPGEnc DVD Author and did it. In my original thread I stated that I tried "Mpeg Video Wizard" and I couldn't for the life of me figure out how to do frame by frame editing. With DVD Author it was simple and straight forward. Thanks for all the suggestions.
http://www.kastechnology.com/storm.php
Author
Time
With DVD-Shrink you can set the start and end points on any frame and nothing else is touched, i.e. no re-encoding. I would load the entire movie into DVD-Shrink and leave the start point at the beginning and set the end point at the beginning of this 4 second gap and then let Shrink make a DVD out of that. Then, load the entire full DVD in Shrink again and set the start point at the end of the 4 second gap and set the end point to the end of the movie. Then let Shrink make a DVD out of that. Now you will have two DVD's. Use DVD2one to seamlessly merge the two titles/DVD's back into one (it excels at doing that and again, no re-enecoding involved). The only problem is, DVD2one isn't technically freeware I don't think and I don't know if it has a trial version and if so; what the functionality of it would be.
Author
Time
"With DVD-Shrink you can set the start and end points on any frame and nothing else is touched"

I think DVD-Shrink only works on keyframes as well, but other than that, it's very easy to use, and free. Any free MPEG splitter/joiner can join the new VOB to the old VOBs.

<span class=“Italics”>MeBeJedi: Sadly, I believe the prequels are beyond repair.
<span class=“Bold”>JediRandy: They’re certainly beyond any repair you’re capable of making.</span></span>

<span class=“Italics”>MeBeJedi: You aren’t one of us.
<span class=“Bold”>Go-Mer-Tonic: I can’t say I find that very disappointing.</span></span>

<span class=“Italics”>JediRandy: I won’t suck as much as a fan edit.</span>

Author
Time
I think DVD-Shrink only works on keyframes as well, but other than that, it's very easy to use, and free.

You're right. Fortunately key frames tend to be pretty close together on the MPEG-2 streams in VOB containers.

Any free MPEG splitter/joiner can join the new VOB to the old VOBs.

Do you have an example of a good one that is free? I know that DVD2one works perfectly for joining VOB's. Come to think of it, the small, free general purpose utility called "FileMerger" can join VOB's, but it doesn't write out a corresponding IFO file of course; it is useful for joining multiple VOB's to be directly edited in VDubMod before making an AVI. That's what I like about DVD2one; it doesn't simply join VOB's, it writes out a new set of VOB's along with writing out a corresponding IFO file (the new information in the IFO's is what is really responsible for joining the files, as the resultant VOB's are still split into 1 GB chunks) and it is a ready to go DVD when it is done.
Author
Time
MaximRecoil is correct on all counts. I use Filemerger-type programs )I'm away from my desktop, so I can't find the name) when joining VOBs to be later mastered in DVDLab, especially if I've made several segments of a particular film in DVDShrink (each segment having its own IFO. Not terribly helpful as such.)

<span class=“Italics”>MeBeJedi: Sadly, I believe the prequels are beyond repair.
<span class=“Bold”>JediRandy: They’re certainly beyond any repair you’re capable of making.</span></span>

<span class=“Italics”>MeBeJedi: You aren’t one of us.
<span class=“Bold”>Go-Mer-Tonic: I can’t say I find that very disappointing.</span></span>

<span class=“Italics”>JediRandy: I won’t suck as much as a fan edit.</span>

Author
Time
I tried the DVD-Shrink method and it wasn't accurate enough to satisfy me. The key frames in the TR47 MPEG-2 stream are 12 frames apart and this simply isn't good enough. Granted, you can make it a lot better but your options end up being either leaving 15 frames of black screen in there (less than a second's worth) or losing a few frames of the video before and after the black screen.

I could do it perfectly if I wanted to re-encode; which I don't. Can you explain how to do it without any re-encoding?
Author
Time
Well, as I said, it's not terribly accurate. My overall solution is rather different from what you would do: I'm making my own version.

<span class=“Italics”>MeBeJedi: Sadly, I believe the prequels are beyond repair.
<span class=“Bold”>JediRandy: They’re certainly beyond any repair you’re capable of making.</span></span>

<span class=“Italics”>MeBeJedi: You aren’t one of us.
<span class=“Bold”>Go-Mer-Tonic: I can’t say I find that very disappointing.</span></span>

<span class=“Italics”>JediRandy: I won’t suck as much as a fan edit.</span>

Author
Time
Originally posted by: MeBeJedi
Well, as I said, it's not terribly accurate. My overall solution is rather different from what you would do: I'm making my own version.

So you don't know of any way to do it other than re-encoding it? How did Rowman do it? Did he just get it "close enough" or right on the money? and did he re-encode or make a bit-for-bit copy minus the 4 seconds of black screen? When I made my initial post on this thread, I hadn't acquired the TR47 copy yet and I wasn't even sure how the actual scene was supposed to look exactly. I just figured "remove 4 seconds of black screen; DVD Shrink can do that" but the way it worked out with the key frame spacing; it didn't line up perfectly with the start and end frames of that black space.

Like I said, I did make an edited version that only has about a half-second of black screen there with no re-encoding involved (I decided that was better than losing a few picture frames from both sides of the 4 second gap), and it is far better than 4 seconds of black screen; but I don't like "good enough" unless it is my only [realistic] option.

Edit: Can key frames be added without re-encoding? If I could do that, then I could make the start and end frames of the 4 second black space, key frames, and then proceed as normal with DVD Shrink.

Author
Time
I thought there was a link to Rowman's technique, but it was still off by one black frame. I'm guessing that's the best it's going to get.

"Can key frames be added without re-encoding?"

No, because the I frame is part of the coding. MPEG is a forward-encoding process, where the state of each frame is dependant on the frame(s) prior to it. This is why fast-reverse was such a pain in the butt on 1st generation DVD players. LD, on the other hand, excels at this, as each frame is independant.

<span class=“Italics”>MeBeJedi: Sadly, I believe the prequels are beyond repair.
<span class=“Bold”>JediRandy: They’re certainly beyond any repair you’re capable of making.</span></span>

<span class=“Italics”>MeBeJedi: You aren’t one of us.
<span class=“Bold”>Go-Mer-Tonic: I can’t say I find that very disappointing.</span></span>

<span class=“Italics”>JediRandy: I won’t suck as much as a fan edit.</span>

Author
Time
Well, I made a perfect edit, and I do mean perfect. Just for the hell of it I clicked on one of the links on the top of this page and downloaded a free trial of a program called "VideoReDo". It claimed to be able to cut out segments on any frame of MPEG-2/VOB files and save without re-encoding; in the same manner that Vdub can do with AVI's. So I joined all of the VOB's together and cut out the 4 seconds of black screen and saved as an MPG which only took a few minutes as it was just a direct stream copy. The result of the MPG was perfect.

I ran it through DVD Lab to turn it back into a DVD and readd all the chapters where they are supposed to be. I let DVD Lab demux the VOB and then when adding them to the movie title; DVD Lab didn't like the raw LPCM audio stream. It said that it had no header and wanted to convert it to a WAV. I allowed it to do that and made the DVD. It was great except for one thing. The audio got slightly out of sync during the scene where Han first sees Lando at the cloud city.

WTF? Do you think the conversion to WAV had anything to do with that or is DVD Lab simply a piss-poor muxer? Like I said, the MPG file that was saved from "VideoReDo" after I cropped out the 4 seconds of black screen is perfect and is a bit for bit copy minus the black screen. It matches up exactly with how that scene appears on the 2004 DVD; i.e. the close shot of C3PO and then the next frame with Leia welding; no black frames and no loss of frames that are supposed to be there; and perfect audio sync throughout.

Any other DVD authoring software I should try (one that can turn DVD compliant video and audio into a DVD [VOB's + IFO's] without re-encoding like DVD Lab can)?
Author
Time
I'm assuming the original VOB did not go out of sync at the same point? Is it out of sync for the rest of the film?

My only guess would be that there was an error in the audio file there, or an error in the extraction (did you try it more than once?). You might want to run the VOB through VOBrator, extract the audio as a WAV, and load the WAV into DVDLab Pro.

"(one that can turn DVD compliant video and audio into a DVD [VOB's + IFO's] without re-encoding like DVD Lab can)? "

Don't knock DVDLab Pro for this. I, for one, love the compliance checking. Keep in mind that you can for DVDLab Pro to *not* demux the files. You might want to try this, or even have DVDLab join the VOBs for you.

<span class=“Italics”>MeBeJedi: Sadly, I believe the prequels are beyond repair.
<span class=“Bold”>JediRandy: They’re certainly beyond any repair you’re capable of making.</span></span>

<span class=“Italics”>MeBeJedi: You aren’t one of us.
<span class=“Bold”>Go-Mer-Tonic: I can’t say I find that very disappointing.</span></span>

<span class=“Italics”>JediRandy: I won’t suck as much as a fan edit.</span>

Author
Time
I'm assuming the original VOB did not go out of sync at the same point? Is it out of sync for the rest of the film? That's correct. The process was like this:

1. DVD Lab to join the original VOBs from the TR47 DVD into one VOB named DVD Lab's default name when doing this, "join.VOB".

2. VideoReDo (hokey non-resizable GUI and I'd never heard of it but it did what it claimed it could do) to open "join.VOB" and accurately delete the 4 seconds of black screen and save results without re-encoding. It saved with the MPG extension so the file name is now "joined minus black screen.mpg". Playback of this file showed it to be exactly what I wanted. The cut edit was perfect and the audio was still in perfect sync throughout the entire movie.

3. DVD Lab to recreate the DVD from the 4.33 GB "joined minus black screen.mpg" file without re-encoding. I did try it without demuxing which was against DVD Lab's popup warnings and when I went to complile the DVD it sat there saying it was "checking streams" or something like that, for a couple of minutes and then it claimed it was "done". Well it obviously wasn't "done" because 2 minutes isn't even long enough to simply copy a 4.33 GB file from one location to another on my machine. When I checked the destination folder, all it had done was create empty VIDEO_TS and AUDIO T_TS folders along with a 0 byte VOB file in its temp directory. So, I loaded "joined minus black screen.mpg" again and let it do everything it was recommending, i.e. demux into elementary streams and also convert the LPCM audio to WAV. I added the chapters and compiled the DVD which consisted of muxing and setting navigation parameters. The finished DVD was in sync for the most part. In the first Lando and Han scene it went out of sync and then back in sync several minutes later. It may have gone in and out of sync more than just there but I didn't sit down and watch the whole thing; I simply scanned through it.
My only guess would be that there was an error in the audio file there, or an error in the extraction (did you try it more than once?). You might want to run the VOB through VOBrator, extract the audio as a WAV, and load the WAV into DVDLab Pro.
I only demuxed the "joined minus black screen.mpg" file once. I have never used VOBrator, but I could also demux to a WAV with VDubMod or I could run this original LPCM file through BeSweet to get a WAV. That will help pinpoint the problem I guess.
Don't knock DVDLab Pro for this. I, for one, love the compliance checking. Keep in mind that you can for DVDLab Pro to *not* demux the files. You might want to try this, or even have DVDLab join the VOBs for you.
I'm not knocking DVD Lab for that; in fact, its ability to create a DVD from DVD compliant files without re-encoding is why I used it in the first place. I am beginning to question the accuracy of its muxing/demuxing abilities however.
Author
Time
OK, apparently I was making this more complicated than it needed to be. I approached it differently this time. I simply loaded the VOB that needed the black screen removed into VideoReDo and cut the black out of it, then saved it as "all files" using its original file name with a vob extension (VTS_01_2.VOB) then I put it back in with its other untouched VOB files and IFO's. That worked perfectly. It plays through fine, the black screen part is gone completely and it stays in perfect sync. All the chapters are still there, though chapters after the edit, take you to a spot 4 seconds earlier in the movie than they did before, which is to be expected. I am surprised it worked; I figured the IFO's would no longer match up with the running time of the movie and something screwy would happen. Just to be on the safe side, is there anything I should edit in the IFO's to make it match up? or maybe just create new ones altogether for those VOB's in IFOEdit?

Edit: As it turned out, this played fine in PowerDVD but it wouldn't open in any transcoders (always failed when it tried to open the edited VOB) so I kicked it to the curb.