Log in

View Full Version : Error 0004 -- buffer overflow


isildor
10th February 2005, 02:46
DVD Rebuilder v0.70 gives me a #0004 errror- buffer overflow on some files. Is tehre a known fix for this?

HanSolo00
10th February 2005, 07:46
As jdobbs has pointed out before, this is usually because RB has encountered something unexpected in the data, most often caused by changes introduced by other DVD processing programs before you send it to RB.

Did you pre-process the DVD with something, other than simply DVD Decrypter? I had problems with DVDReMake for instance with a multi-angle disc where I had used ReMake to remove one angle--it caused Error 0004 in DVD-RB. As soon as I passed the DVD directly to RB, the error went away--so the problem seemed to be with the way ReMake blanks out multi-angles when you blank the alternate PGC.

Incidentally, IFOedit seems to do a much better job removing multi angles and language streams properly, than any other tool I've tried.

isildor
10th February 2005, 15:29
I didnj't use any other programs -- straight from decrypter to rebuilder.

wmansir
11th February 2005, 01:12
You can try enabling "Special Error Processing" from the Options menu. It will bypass some Error #0003 and Error #0004. However, on some standalone players it will cause playback errors such as video stuttering.

isildor
11th February 2005, 15:57
OK, I tried special errror processing. Now DVD REbuilder starts normally, then in the "Creating M2V..." phase starts flashing and QuENC looks like it is trying to load (the toolbar icon for QuEnc is also flashing rapidly) and after severla seconds of this DVD REbuilder gives up with a message:

There is nothing to do! DVD-RB couldn't locate appropriate files in the working directory.

Yet, the proper output files from DVD-Decrypter are there. It appears DVD-Rebuidler is having some problems recognizing the VTS segment files as valid. Has anyone seen this before and if so what is the fix? (DVD-RB is doing this for several different sets of decrypted video files.)

crazyasian
11th February 2005, 19:38
i've been dealing with this problem for a while with the following movies: i robot and day after tomorrow

i preprocess both of these movies with DVDremake. in DVDremake i remove most of the extras including 90% of the end credits. i first tried encoding with DTS audio only and i got the error 0004. but when i went and re-encode the movie without DTS it worked just fine.

i then went and reprocess with DVDremake and left the movie itself alone and just removing the extras and got the same results as above. i also tried running everything through DVDshrink and got the same error.

at first i thought it was the DTS audio that was causing the problem, but that wasn't the case.

i then encoded the whole movie without preprocessing (with DTS audio) and it worked just fine.

the final test i did was preprocess the movies with DVDremake. taking out all the extras but leaving the movie alone (no cutting of end credits). i then encoded the movie with the three step process (not one-click as i did with all of the above) and i worked. i also had the "special error..." checked. i haven't watch the movie yet, so i can't confirm if there are "stutters" in the movie or not.

i guess you can give the above a shot and see what happens.

genericuser
22nd April 2005, 15:38
I run verion 0.85 pro with CCE 2.70.02.00. I received this error during the rebuild phase of a one click. The interesting thing was that I was then able to execute the rebuild phase of a three step process right after it died and it worked great. That is why i am posting. It seems strange to me that the rebuild would work right after the crash.

Yes, this is preprocessed source. The sequence of events was that I got the error 4, reexecuted the rebuild and it worked, so then I started from scratch and it worked. I am trying to recreate the error in case jdobbs needs any info from it.

I am in no manner saying that dvd-rb is to blame. I just thought it was interesting that I got a crash, and yet the retries are fine.

Anyway, FWIW here is my workflow:

Processing of Color Purple (1985). It is a flipper.

I combined the two sides of the movie into one video_ts folder using dvdshrink 30.b5. This created a 7.85g movie only with english sound. I ripped the subpictures and the extra audio. Side 1 because VTS01 and side 2 became VTS02.

I am running version 0.85 pro. I had Movie/menus only selected. I had the one click option enabled. I have the qmat patch in the .ini file so that CCE uses qmat.

I pointed to my movie and I told dvd-rb to get to work and I left to do some errrands. Part way through the errands I realized that only half the movie was going to be processed.

The one click worked great on half of the movie. When I arrived home, I simply unchecked the movie/menus only option and reran the one click.

DVD-RB told me it was going to erase the working folder. I said ok, and off it went.

ASIDE: My output directory had an audio_ts/video_ts folder already in it from the first execution. DVD-RB did not prompt me to delete them when I started the one click. When I use the three click mode and those directories exist DVD-Rb prompts me to delete them. I am assuming that when the one click process actually got to the rebuild phase that it would prompt me then. However, the reason I use one click is that I want to come back to a completed project. Is it possible for DVD-RB to check the output folder for the audo_ts and video_ts and erase them at the same time it checks the working directory? Seems to me that that would make a bit more sense when thinking about the one click versus the 3 click. I still believe the check has to be done at the rebuild phase in case the user is using three click mode or the user has put something into that directory. Hmmmm... Maybe I am incorrect about the behavior when it arrives at the rebuild phase and there is something in the directory. Oh well.... Onward

Everything went great. When it got to the rebuild phase it built vts01 fine. Then I saw:

- Processing VTS_02
- Rebuilding segment 0 VOBID: 1 CELLID: 1

Then the dialog was present telling me of the 0004 error. Once I clicked on the OK, DVD-RB went away.

Curious, I immediately restarted dvd-rb, unclicked one click moe and clicked on the rebuild button. DVD-RB told me that the video_ts and audio_ts folders were present (This is where the aside from above was born). I do know that I had to OK the dialog to continue.

Once the rebuild was going, the entire process finished with no errors. <-- That is the weird part. I expected it to error out again.

Now I was very curious. I quit dvd-rb, cleaned the working and output directories, restarted dvd-rb, selected one click mode, made certain main movie/menus was not selected and I sent dvd-rb on its way. It worked perfectly. Both VTS were processed and the output folder was 4.33gb large.

Now I am trying to create the problem again. I am repeating the process and I will let you know if I can duplicate it.

Please let me kow if there is anything you would like to see. If I can not repeat the problem I will let you know.

genericuser
23rd April 2005, 02:45
Ok, I was able to duplicate the 0004 buffer overflow. I repeated my steps as I described above.

Also, in the one click mode, the rebuild phase does stop with a dialog if there is already a video_ts folder in the output area. Perhaps the one click mode can check that beofre it starts so that the rebuild phase does not pause.

Next step: Going to try an un preprocessed source with the same work flow to see what happens.

Here is the log from the work flow in case anyone needs it:

[05:30:56] One Click encoding activated...
-----------------
[05:30:56] Phase I, PREPARATION started.
- CCE SP 2.70.2.0 encoder selected.
- "CCE Adaptive Quantizer Matrices" is enabled.
- "Movie and Menus Only" mode is enabled.
- VTS_01: 1,877,581 sectors.
-- Scanning and writing .D2V file
-- Processed 113,742 frames.
-- Building .AVS and .ECL files
- VTS_02: 1,785,188 sectors.
-- Scanning and writing .D2V file
-- Processed 108,168 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 58.4%
- Overall Bitrate : 3,537Kbs
- Space for Video : 3,995,770KB
- Blanking all EXTRA Segments
-- Feature before/after: 7,269 / 7,269 Kbs
[05:33:59] Phase I, PREPARATION completed in 3 minutes.
[05:33:59] Phase II ENCODING started
- Creating M2V for VTS_01 segment 0
- Creating M2V for VTS_01 segment 1
- Creating M2V for VTS_01 segment 2
- Creating M2V for VTS_01 segment 3
- Creating M2V for VTS_01 segment 4
- Creating M2V for VTS_01 segment 5
- Creating M2V for VTS_01 segment 6
- Creating M2V for VTS_01 segment 7
- Creating M2V for VTS_01 segment 8
- Creating M2V for VTS_01 segment 9
- Creating M2V for VTS_01 segment 10
- Creating M2V for VTS_01 segment 11
- Creating M2V for VTS_01 segment 12
- Creating M2V for VTS_01 segment 13
- Creating M2V for VTS_01 segment 14
- Creating M2V for VTS_01 segment 15
- Creating M2V for VTS_01 segment 16
- Creating M2V for VTS_01 segment 17
- Creating M2V for VTS_01 segment 18
- Creating M2V for VTS_01 segment 19
- Creating M2V for VTS_01 segment 20
- Creating M2V for VTS_02 segment 0
- Creating M2V for VTS_02 segment 1
- Creating M2V for VTS_02 segment 2
- Creating M2V for VTS_02 segment 3
- Creating M2V for VTS_02 segment 4
- Creating M2V for VTS_02 segment 5
- Creating M2V for VTS_02 segment 6
- Creating M2V for VTS_02 segment 7
- Creating M2V for VTS_02 segment 8
- Creating M2V for VTS_02 segment 9
- Creating M2V for VTS_02 segment 10
- Creating M2V for VTS_02 segment 11
- Creating M2V for VTS_02 segment 12
- Creating M2V for VTS_02 segment 13
- Creating M2V for VTS_02 segment 14
- Creating M2V for VTS_02 segment 15
[06:47:40] Phase II ENCODING completed in 74 minutes.
[06:47:40] Phase III, REBUILD started.
- Copying IFO, BUP, and unaltered files...
- Processing VTS_01
- Rebuilding segment 0 VOBID: 1 CELLID: 1
- Rebuilding segment 1 VOBID: 1 CELLID: 2
- Rebuilding segment 2 VOBID: 1 CELLID: 3
- Rebuilding segment 3 VOBID: 1 CELLID: 4
- Rebuilding segment 4 VOBID: 1 CELLID: 5
- Rebuilding segment 5 VOBID: 1 CELLID: 6
- Rebuilding segment 6 VOBID: 1 CELLID: 7
- Rebuilding segment 7 VOBID: 1 CELLID: 8
- Rebuilding segment 8 VOBID: 1 CELLID: 9
- Rebuilding segment 9 VOBID: 1 CELLID: 10
- Rebuilding segment 10 VOBID: 1 CELLID: 11
- Rebuilding segment 11 VOBID: 1 CELLID: 12
- Rebuilding segment 12 VOBID: 1 CELLID: 13
- Rebuilding segment 13 VOBID: 1 CELLID: 14
- Rebuilding segment 14 VOBID: 1 CELLID: 15
- Rebuilding segment 15 VOBID: 1 CELLID: 16
- Rebuilding segment 16 VOBID: 1 CELLID: 17
- Rebuilding segment 17 VOBID: 1 CELLID: 18
- Rebuilding segment 18 VOBID: 1 CELLID: 19
- Rebuilding segment 19 VOBID: 1 CELLID: 20
- Rebuilding segment 20 VOBID: 1 CELLID: 21
- Updating NAVPACKS for VOBID_01
- Updated VTS_C_ADT.
- Updated VTS_VOBU_ADMAP.
- Updated IFO: VTS_01_0.IFO
- Processing VTS_02
- Rebuilding segment 0 VOBID: 1 CELLID: 1
- Rebuilding segment 1 VOBID: 1 CELLID: 2
- Rebuilding segment 2 VOBID: 1 CELLID: 3
- Rebuilding segment 3 VOBID: 1 CELLID: 4
- Rebuilding segment 4 VOBID: 1 CELLID: 5
- Rebuilding segment 5 VOBID: 1 CELLID: 6
- Rebuilding segment 6 VOBID: 1 CELLID: 7
- Rebuilding segment 7 VOBID: 1 CELLID: 8
- Rebuilding segment 8 VOBID: 1 CELLID: 9
- Rebuilding segment 9 VOBID: 1 CELLID: 10
- Rebuilding segment 10 VOBID: 1 CELLID: 11
- Rebuilding segment 11 VOBID: 1 CELLID: 12
- Rebuilding segment 12 VOBID: 1 CELLID: 13
- Rebuilding segment 13 VOBID: 1 CELLID: 14
- Rebuilding segment 14 VOBID: 1 CELLID: 15
- Rebuilding segment 15 VOBID: 1 CELLID: 16
- Updating NAVPACKS for VOBID_01
- Updated VTS_C_ADT.
- Updated VTS_VOBU_ADMAP.
- Updated IFO: VTS_02_0.IFO
Correcting VTS Sectors...
[06:56:16] Phase III, REBUILD completed in 9 minutes.

Done.
[06:56:17] PREPARE/ENCODE/REBUILD completed in 86 min.
[15:06:12] One Click encoding activated...
-----------------
[15:06:14] Phase I, PREPARATION started.
- CCE SP 2.70.2.0 encoder selected.
- "CCE Adaptive Quantizer Matrices" is enabled.
- VTS_01: 1,877,581 sectors.
-- Scanning and writing .D2V file
-- Processed 113,742 frames.
-- Building .AVS and .ECL files
- VTS_02: 1,785,188 sectors.
-- Scanning and writing .D2V file
-- Processed 108,168 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 58.4%
- Overall Bitrate : 3,537Kbs
- Space for Video : 3,995,770KB
- HIGH/LOW/TYPICAL Bitrates: 3,810/3,156/3,537 Kbs
[15:11:49] Phase I, PREPARATION completed in 5 minutes.
[15:11:49] Phase II ENCODING started
- Creating M2V for VTS_01 segment 0
- Creating M2V for VTS_01 segment 1
- Creating M2V for VTS_01 segment 2
- Creating M2V for VTS_01 segment 3
- Creating M2V for VTS_01 segment 4
- Creating M2V for VTS_01 segment 5
- Creating M2V for VTS_01 segment 6
- Creating M2V for VTS_01 segment 7
- Creating M2V for VTS_01 segment 8
- Creating M2V for VTS_01 segment 9
- Creating M2V for VTS_01 segment 10
- Creating M2V for VTS_01 segment 11
- Creating M2V for VTS_01 segment 12
- Creating M2V for VTS_01 segment 13
- Creating M2V for VTS_01 segment 14
- Creating M2V for VTS_01 segment 15
- Creating M2V for VTS_01 segment 16
- Creating M2V for VTS_01 segment 17
- Creating M2V for VTS_01 segment 18
- Creating M2V for VTS_01 segment 19
- Creating M2V for VTS_01 segment 20
- Creating M2V for VTS_02 segment 0
- Creating M2V for VTS_02 segment 1
- Creating M2V for VTS_02 segment 2
- Creating M2V for VTS_02 segment 3
- Creating M2V for VTS_02 segment 4
- Creating M2V for VTS_02 segment 5
- Creating M2V for VTS_02 segment 6
- Creating M2V for VTS_02 segment 7
- Creating M2V for VTS_02 segment 8
- Creating M2V for VTS_02 segment 9
- Creating M2V for VTS_02 segment 10
- Creating M2V for VTS_02 segment 11
- Creating M2V for VTS_02 segment 12
- Creating M2V for VTS_02 segment 13
- Creating M2V for VTS_02 segment 14
- Creating M2V for VTS_02 segment 15
[17:41:01] Phase II ENCODING completed in 150 minutes.
[19:18:44] Phase III, REBUILD started.
- Copying IFO, BUP, and unaltered files...
- Processing VTS_01
- Rebuilding segment 0 VOBID: 1 CELLID: 1

The 0004 dialog appears right there.

Let me know if there is something else you would like to see.

Tore
23rd April 2005, 11:50
I was making a backup of my Dune miniseries DVD2 disk the other day.
And it was the first time i ever got a 0004 error.

This was without any form of preprossessing. I ripped it with dvddecrypter in filemode.


My solution was to strip some trailers with Vobblanker.
And running DVD-RB on the "stripped" source it worked perfect.


There must have been som fault/error with the original ripped files.

jdobbs
23rd April 2005, 14:45
@Tore,

Have you changed the MIN_VTS_SIZE parameter from the default?

jdobbs
23rd April 2005, 14:47
@genericuser

Version 0.86 will have some changes in that area, making the buffer size dynamic and increasing the maximum quite a bit. It may correct this...

Tore
23rd April 2005, 15:29
Nope.
I didn't change a thing.
I never bother with "hacking" in the rebuilder.inf file.

The default settings suits me fine.

genericuser
23rd April 2005, 20:29
Thanks for the info, jdobbs.

I tried to repeat the error using star wars episode 1 disk 1. It worked fine. Then I thought it might be a case where the "extras" are the same size as the main feature, so I tried using disc2 of star wars episode 1. It also worked with no problems.

If I ever see a disk with just 2 vts and they are about even, I will try my sequence again.