PDA

View Full Version : AutoIt Error with D2SRoba Plugin


Fugdefino
6th February 2004, 22:42
When I run the latest version of the D2SRoba Plugin, I keep getting the following error at the CD Prediction Stage:

Line 0:

$g_target_mpv_br=$g_Video_BR[$t_NumCD's]
$g_target_mpv_br=$g_Video_BR[^ERROR

Error: Array Variable has incorrect number of subscripts or subscript dimension range exceeded.


Any idea what the problem is?

r6d2
7th February 2004, 05:17
I think I have an idea, but I need to see your log. When in trouble, it is almost always a good idea to post your log. In this case, I suggest you to pay a visit to the D2Sroba FAQ and read Q1 in the "Part III – Typical problems & How to get help".

Fugdefino
7th February 2004, 21:44
Ok, here's my log:

--------------------------------------------------------
D2SRoBa v3.2.0, by Tylo
--------------------------------------------------------
- WIN_XP - AutoIt 3.0.91.0
- 2004-02-07 19:33:37
--------------------------------------------------------
Settings:
- Output type : SVCD
- CD size : 800
- Number of CD's : ?
- Sample percent : 1.5
- Auto Q / Max Q : 35 / 40
- Adjust Q : 1.0
- Sizing pass : Yes (if opv sz < 2.5%, or > 1.0% from target sz, or Q > 40)
- Cut last image : If opv sz > 0.4% oversized
- Audio after video : Yes (9% of video, min 160 kbps)
- Adjust max br : Yes (total: 2754, max avg offset: 120 kbps)
- Batch prepare : No
- Clean previous : Yes
- Crash recover : No
--------------------------------------------------------
- Waiting for CCE window ...
- Detected a CCE encode window
- Detected the CCE main movie encode window... trying to kill it.
- Finished shutdown of CCE and D2S
--------------------------------------------------------
- Movie length : 02:51:55 (257899 frames, 25 fps)
- D2S audio brate : (224 + 0) kbps
- D2S video estim. : 1670 kbps, 3 CDs
- Select Ranges : every 1000, select 15 frames
- Sample frames : 3870
--------------------------------------------------------
Calculations:
- 1 CD: video_br=461 (461) audio1_br=160 video_sz=594457195 fill=100% cbr=0
- 2 CD: video_br=1097 (1097) audio1_br=160 video_sz=1414576015 fill=100% cbr=0
- 3 CD: video_br=1734 (1734) audio1_br=160 video_sz=2235984330 fill=100% cbr=0
- 4 CD: video_br=2307 (2307) audio1_br=224 video_sz=2974864965 fill=100% cbr=0
--------------------------------------------------------
Computing target number of CDs:
- Using max bitrate=2594 for auto sample (adjusted for 1 CDs)
- Estim. mpv BR : 1699 (Q=40, err=?%, size=2191995690, sample sz=32892812)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Number of CDs : 3
- Target mpv BR : 1734 (max 2594) kbps, size=2235984330 bytes
--------------------------------------------------------
Search for Q:
- Estim. mpv BR : 1723 (Q=39, err=-0.6%, size=2222482151, sample sz=33350288)
- Determined Q : 38 = round(39 - 1.0 + (-0.6)/1.4)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Number of CDs : 4
- Target mpv BR : 2307 (max 2530) kbps, size=2974864965 bytes
--------------------------------------------------------
Search for Q:
- Estim. mpv BR : 2133 (Q=23, err=-7.5%, size=2751771134, sample sz=41292732)
- Estim. mpv BR : 2319 (Q=16, err=0.5%, size=2991255213, sample sz=44886400)
- Determined Q : 15 = round(16 - 1.0 + (0.5)/1.2)


The error doesn't occur if set the maximum avg offset to the default of 300.

r6d2
7th February 2004, 22:25
The error you mention used to appear some time ago when using the range modes and high variances of Q. This does not seem to be the case.

I guess only Tylo can tell why the subscript does not exist. Anyway, Range mode may still be a little unstable. If you increase the offset nothing bad will happen, so I suggest you use that until he looks at this (or use auto mode instead).

tylo
8th February 2004, 22:09
It's a combo of using '?' mode with such a long movie. I know why it worked with offset 300. I'll fix it. Thanks for reporting.

Fugdefino
13th February 2004, 21:09
Ok, I've just had a similar error with a much smaller input file. Once again, setting max avg offset to 300 fixed the problem. Here's my log:

--------------------------------------------------------
D2SRoBa v3.2.0, by Tylo
--------------------------------------------------------
- WIN_XP - AutoIt 3.0.91.0
- 2004-02-13 19:55:00
--------------------------------------------------------
Settings:
- Output type : SVCD
- CD size : 800
- Number of CD's : ?
- Sample percent : 1.5
- Auto Q / Max Q : 35 / 40
- Adjust Q : 1.1
- Sizing pass : Yes (if opv sz < 2.5%, or > 1.0% from target sz, or Q > 40)
- Cut last image : If opv sz > 0.4% oversized
- Audio after video : Yes (160 kbps)
- Adjust max br : Yes (total: 2754, max avg offset: 200 kbps)
- Batch prepare : No
- Clean previous : Yes
- Crash recover : No
--------------------------------------------------------
- Waiting for CCE window ...
- Detected a CCE encode window
- Detected the CCE main movie encode window... trying to kill it.
- Finished shutdown of CCE and D2S
--------------------------------------------------------
- Movie length : 00:43:16 (64916 frames, 25 fps)
- D2S audio brate : (224 + 0) kbps
- D2S video estim. : 2230 kbps, 1 CDs
- Select Ranges : every 1000, select 15 frames
- Sample frames : 975
--------------------------------------------------------
Calculations:
- 1 CD: video_br=2353 (2353) audio1_br=160 video_sz=763736740 fill=100% cbr=0
--------------------------------------------------------
Computing target number of CDs:
- Using max bitrate=2594 for auto sample (adjusted for 1 CDs)
- Estim. mpv BR : 1227 (Q=40, err=?%, size=398445220, sample sz=5984412)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Number of CDs : 1
- Target mpv BR : 2353 (max 2594) kbps, size=763736740 bytes
--------------------------------------------------------
Search for Q:
- Estim. mpv BR : 2350 (Q=9, err=-0.1%, size=762897359, sample sz=11458268)
- Determined Q : 8 = round(9 - 1.1 + (-0.1)/1.5)