Log in

View Full Version : run-time error 5


FarCry
28th March 2005, 19:01
i have encountered a run-time error 5 invalid procedure or argument during prepare with DVD-RB 0.78 and 0.79 versions. i have done up until now 2 movies flawlessly. but bow i have this weird error. can anyone help? thanks

i have used anydvd with clonedvd in order to cut the main movie with the menu without any extras and without any compression. thats because dvdrb does not have this feature. after that i try to re-encode it using dvdrb. though during prepare stage this error occured. the movie is star trek insurrection

DVD-RB 0.79
AVISYNTH 2.55
CCE 2.70.02
DGDecode.dll 1.1

jdobbs
28th March 2005, 21:49
Have you tried encoding the movie without first preprocessing it through anydvd/clonedvd first? Unfortunately it is possible that the preprocessing may have corrupted the source in some way.

FarCry
28th March 2005, 23:47
ok i will give a try. but with the other 2 movies i did the same but no problem occured. how can be possible pre processing one movie to be ok and another to cause problems? after all are movies with the same structure. its not logical. thats why i am asking. can you add a feature in DVD-RB to excluded extra content from dvd video? because someone does not want the extra parts at all. not in less quality. thanks

Trahald
29th March 2005, 00:25
Originally posted by FarCry
ok i will give a try. but with the other 2 movies i did the same but no problem occured. how can be possible pre processing one movie to be ok and another to cause problems? after all are movies with the same structure. its not logical. thats why i am asking. can you add a feature in DVD-RB to excluded extra content from dvd video? because someone does not want the extra parts at all. not in less quality. thanks

eh? unless you are backing up the exact same dvd 3 times it would be different structurally. different dvds from the same series are not a mirror of each other.. perhaps close but not exact. it may end up that the error still occurs w/out preprocessing but at least jdobbs can determine he is not chasing issues another program caused.

jdobbs
29th March 2005, 00:44
Hmm... speaking logically -- if they had the same structure, they would all act the same, apparently they don't, so...

BTW, you will be able to "blank" content in one of the upcoming Pro versions...

FarCry
29th March 2005, 01:29
ok just as i thought. it turned out to be that this error occurs with the original dvd video too. so its not a problem of clonedvd2. dont you dare blame it again:D

so whats next? houston we have a problem

Hmm... speaking logically -- if they had the same structure, they would all act the same, apparently they don't, so...

apparently you are right. i dont think that this could have occured in a commercial programm like dvd2one, clonedvd, dvdshrink etc. i dont blame you programm its very good but you havent eliminated all of the bugs

jdobbs
29th March 2005, 02:29
apparently you are right. i dont think that this could have occured in a commercial programm like dvd2one, clonedvd, dvdshrink etc. i dont blame you programm its very good but you havent eliminated all of the bugsHmmm... maybe you should use one of those programs then. I hope you enjoy the macroblocks and pixelation... of course you can only get those kinds of "extras" on a commercial package like the ones you mentioned...

If I'd eliminated all the bugs it wouldn't be in beta status, would it?

BTW: I think I would go over and wade through the "One Click" forum for a while before I declared those programs as "bug free". I simply haven't masked them in DVD-RB so I can get proper reports while in beta status.

FarCry
29th March 2005, 03:08
yes i know thats a beta. is there any way i could assist on hellping you? please tell me. is there another program that can use CCE encoding? i definetely liked the output of the 2 movies i have made so far:)

BTW: i checked the extras using anydvd/clonedvd method in order to cut them off the dvd to see if there is a problem with the extras or it is only with the main movie. the extras appeared to finish prepare stage without any error. so the problem is located in main movie. i also tried to do prepare without keeping the menu but the same error again. so its not the menu that causes this error

i saw this on the on click solution dvd backup

Use Encoders
dvd2dvd-r freeware
uses CCE, main movie only

dvd2dvd freeware
uses CCE or TMPGEnc, main movie only

Will I have the same output as with DVD-RB? they both use the same encoder. thanks

jdobbs
29th March 2005, 03:24
No you wouldn't have the same output as DVD-RB. You might want to try them and decide. I believe you might need a copy of Sonic Scenarist in order to author the disc though... and that's a long way from freeware.

What specific DVD are you trying to back up? Is it an NTSC, R1 disc?

FarCry
29th March 2005, 03:29
no its region 2 (europe). I am from greece. i told you what movie is STAR TREK INSURRECTION. is there any log that i can give it to you something? the error message does not say much

FarCry
29th March 2005, 14:25
jdobbs

i am sorry i cannot post the log status of the process. when the error occurs i press the OK button and DVD-RB shuts down instantly. so i cannot copy to clipboard the log file

wmansir
29th March 2005, 14:30
Check "Status Logging On" in the File menu. The log will be placed in the root of your working directory.

FarCry
29th March 2005, 14:45

FarCry
29th March 2005, 15:04
ok i have done this but i didnt notice where the log is. i have attached a photo showing the error

-----------------
[16:42:24] Phase I, PREPARATION started.
- VTS_01: 2.809.655 sectors.
-- Scanning and writing .D2V file

FarCry
29th March 2005, 17:42
here is the photo. can you see it? i upload it again and i erased the other photos because i see only part of the photo

borgraf
30th March 2005, 15:59
If the source E is a HDD you can stop reading now. But if it's something else then specify exactly what it is and name any software involved.

FarCry
30th March 2005, 16:30
no E is my DVD drive. i use anydvd in order to make an encoding using DVD-RB without decrypting it in my hard drive. thus i gain in hd space but the process gets slower because of the dvds reading speed in comparison to my HD

jdobbs
30th March 2005, 16:50
Do you have enough room to bring it down to your hard drive once with DVD Decrypter.. just so I can see if it is related to the AnyDVD factor?

FarCry
30th March 2005, 17:24
yes i have space. i will do it and i will tell you the results

FarCry
30th March 2005, 18:18
nope the same. here is the photo. its in the same spot like previous in the status bar in blue in prepare stage

FarCry
30th March 2005, 22:12
ok i very happy to tell you that i have located the problem. clonedvd2 its a great programm. i cut down to every chapter individually in order to find out in which chapter the problem is. because if all chapters individually can pass the prepare stage the same will be with the entire movie :) so the problem occurs only in chapter 4 of this movie. chapter 4 is 370MB. the problem occurs almost at the end of the prepare stage as you can see from this photo.

SO IS THERE ANY PROGRAM THAT I CAN CUT FROM THIS CHAPTER THE LAST MINUTES IN ORDER TO SEND IT OVER TO jdobbs TO FIND OUT THE SOLUTION?

to send 370MB its out of the question

thanks

FarCry
1st April 2005, 01:53
here is the analysis of this chapter using DVDFAB

DVFab(0.17.0) Analysis of C:\DVD-RBv078PR\predvdmovie\VIDEO_TS\

Video-Title-Set(VTS) 1

VOB-ID 1

Video packets : 4 = 0.01MB
Navigation packets: 1 = 0.00MB
Unknown packets : 0 = 0.00MB
Total packets : 5 = 0.01MB


VOB-ID 2

Video packets : 175547 = 342.87MB
Navigation packets: 684 = 1.34MB
Stream 20 packets : 202 = 0.39MB
Stream 21 packets : 207 = 0.40MB
Stream 22 packets : 190 = 0.37MB
Stream 23 packets : 206 = 0.40MB
Stream 24 packets : 133 = 0.26MB
Stream 25 packets : 227 = 0.44MB
Stream 26 packets : 197 = 0.38MB
Stream 27 packets : 204 = 0.40MB
Stream 28 packets : 188 = 0.37MB
Stream 29 packets : 210 = 0.41MB
Stream 80 packets : 11397 = 22.26MB
Unknown packets : 0 = 0.00MB
Total packets : 189592 = 370.30MB


Total (VTS)

Video packets : 175551 = 342.87MB
Navigation packets: 685 = 1.34MB
Stream 20 packets : 202 = 0.39MB
Stream 21 packets : 207 = 0.40MB
Stream 22 packets : 190 = 0.37MB
Stream 23 packets : 206 = 0.40MB
Stream 24 packets : 133 = 0.26MB
Stream 25 packets : 227 = 0.44MB
Stream 26 packets : 197 = 0.38MB
Stream 27 packets : 204 = 0.40MB
Stream 28 packets : 188 = 0.37MB
Stream 29 packets : 210 = 0.41MB
Stream 80 packets : 11397 = 22.26MB
Unknown packets : 0 = 0.00MB
Total packets : 189597 = 370.31MB


i have cut 7.40MB from the end of this chapter using vobsplit and i will send it with the original IFOS of this chapter. i tried to create IFOS for this custom vob following a guide i found using IFOEDIT but with no success. i wanted to check if the error is included within the 7.40MB VOB file. you have free space in your mail right? i will send them today. hope to find the answer

FarCry
1st April 2005, 14:24
ok last post for this. i used VOBBLANKER in order to cut it where i please creating also a valid DVD material. the problem occurs only in the last sector here is the photo. the last sector

the sector before that is 189111 and from DVDFAB analysis

VOB-ID 2

Video packets : 175547 = 342.87MB
Navigation packets: 684 = 1.34MB
Stream 20 packets : 202 = 0.39MB
Stream 21 packets : 207 = 0.40MB
Stream 22 packets : 190 = 0.37MB
Stream 23 packets : 206 = 0.40MB
Stream 24 packets : 133 = 0.26MB
Stream 25 packets : 227 = 0.44MB
Stream 26 packets : 197 = 0.38MB
Stream 27 packets : 204 = 0.40MB
Stream 28 packets : 188 = 0.37MB
Stream 29 packets : 210 = 0.41MB
Stream 80 packets : 11397 = 22.26MB
Unknown packets : 0 = 0.00MB
Total packets : 189592 = 370.30MB

why this to are different? i thought that these 2 numbers have to be identical. instead the last sector of chapter 4 is 189342 as you can see from the photo. i send the last sector over jdobbs. i am waiting for the results.

this is from REBUILDER.LOG

[16:02:51] Phase I, PREPARATION started.
- VTS_01: 189.348 sectors.
-- Scanning and writing .D2V file
-----------------

ERROR!!!

[16:06:34] Phase I, PREPARATION started.
- VTS_01: 189.117 sectors.
-- Scanning and writing .D2V file
-- Processed 10.227 frames.
-- Building .AVS and .ECL files
- Reduction Level for DVD-5: 100,0%
- Overall Bitrate : 9.000Kbs
- Space for Video : 4.507.940KB
- HIGH/LOW/AVERAGE Cell Bitrates: 7.014/1.638/9.000 Kbs
[16:07:19] Phase I, PREPARATION completed in 1 minutes.

and REBUILDER.INF file

[Status]
mode=1
Original_Size=189137
Excluded_Audio_Sub_Size=0
VTS_01_SIZE=175107
Progress=1
CCEType=3
[V0100001]
Last_Sector=5
[V01000000001001]
SCR=,000
PTS=25854,000
Frame_Rate_Code=3
Pulldown=0
Structure=3
Frames=1
First_Sector=0
Last_Sector=5
Reduction=100,0
Aspect_Ratio=3
HalfD1=0
EndPTM=69054,000
[V0100002]
Last_Sector=189117
[V01000100002004]
SCR=77152402,283
PTS=77161197,000
Frame_Rate_Code=3
Pulldown=0
Structure=3
Frames=10226
First_Sector=5
Last_Sector=189117
Reduction=100,0
Aspect_Ratio=3
HalfD1=0
EndPTM=114028797,000

FarCry
11th April 2005, 15:43
OK CASE CLOSED. i will mention jdobbs reply which clarified the whole mess that was made. anyone detects same error take note of this explanation

jdobbs wrote:

I just looked it up in ISO 138182 -- and it is very clear that the 10 bit
value representing temporal_reference is an unsigned integer. That means
negative values should be impossible. It also mandates that the PTS value
in the header point to the frame having a temporal reference of zero --
which in the GOP in your stream would be the I-Frame.. but the NAVPACK PTS
in the example you sent me is set to the value of the the first B-FRAME
that precedes the I-FRAME. That would be correct, but only if the I-FRAME
had a temporal offset of 2.

Sorry -- but the original source is corrupt, and that's according to the
MPEG standards.

I want to emphasize emphatically, and have confirmed with the specifications
and now with second opinion from MPUCODER, who is probably the most
knowledgable person related to MPEG standard on the planet -- that the
source you are trying to encode is illegally constructed. That is an
undeniable fact.

I cannot make my software correct the errors of an improperly designed third
party encoding software. The changes I will make to DVD-RB will be to catch
the error, and abort the encode... not to fix the error... it would be
impossible for my software to find, recognize and correct every possible
error introduced by some other intermediate software.

-----------------------------------------------------------------------------------

i want to thank jdobbs for all the effort he has made in order to make his program reliable and stable i am happy to be part of the beta testers team so i can help to the above

jdobbs
11th April 2005, 17:18
For those following this exceptionally odd problem, here is what I found:

One of the GOPs found in the source material had the following sequence:

I-FRAME -- with a temporal_reference of 0
B-FRAME -- with a temporal_reference of 1022
B-FRAME -- with a temporal_reference of 1023

Of course the temporal references would be illegal -- especially on a GOP that only has three frames as this one does. But the interesting fact is that if you take the two's complement of the two numbers you would get values of -2 and -1 -- which would correctly place the two B-FRAMES so they would precede the I-FRAME (in their presentation).

Since I'd never seen anything like that before, I went to the MPEG Standard, thinking maybe I had misinterpreted it originally. But it is very clear that the temporal_reference value is a 10 bit unsigned value. It also says the first displayed frame in a GOP should have a temporal offset of 0, and in this case it would have been -2.

My guess is that some encoding software set the temporal_reference for the I-FRAME to zero and then later calculated the B-FRAME offset, and just inserted the lower 10 bits of the value in the stream's temporal_reference position.

DVD-RB kicked out its error when it tried to use a negative value as a parameter to identify the true position of the frame in the sequence.

How many streams to you have to scan before you run into that one, eh? :eek:

Patjen
5th August 2005, 20:14
Hi Jdobbs,

I'm a registered dvdrb-pro RC4 user and I just noticed last night I'm getting this error too .
I'm trying to backup Sex and the City season6 disc 3 (region 2), using the one click method. (this disc had 4 VTS's, one for each episode I think, and for each VTS I deselect all audio except english audio and all subs except dutch and english)
However as soon as I press encode (or even "prepare" when I tested the 3click method) I get this 'error 5 invalid proc call or argument'.
The source is a mounted iso (using daemon tools) I made with dvddecrypter
3.5.4.0 ...
I also went back to dvdrb-pro 1.00rc3 but again the same error is produced.

Can I check in some way if this is the same 'illegal' source structure you mentioned ? rebuilder.log contents :
[21:05:00] Phase I, PREPARATION started.
- CCE SP 2.67.0.27 encoder selected.
- VTS_01: 901.473 sectors.
-- Scanning and writing .D2V & .AVS files

>>nothing more in there....
My OS = winxp pro+sp2, 3ghz P4, 1.5Gb ram, 320gb free on hd.
Any more info I need to provide ?

FarCry
6th August 2005, 19:24
you can specify if this occurs like i did separating each chapter from the vts and by using vobblanker you can isolate the file which make this error occur