RPC error in vp.vbs

hossnine

New member
Hello,

I've run into a Remote procedure call error in the vp.vbs script on 4.20.2.595 - Jan 25 2010 AVP-On running on my Win 7 x64 system. The full text of the error is:

C:\Program Files (x86)\VideoReDoTVSuite4\vp.vbs(88, 1) Microsoft VBScript runtime error: The remote server machine does not exist or is unavailable: 'VideoReDo.IsOutputInProgress'

Doesn't seem to like 'IsOutputInProgress()'

87 ' Wait until output done.
88 while( VideoRedo.IsOutputInProgress() )
89 percent = " Progress: " & Int(VideoReDo_OutputPercentComplete) & "% "
90 Wscript.StdOut.Write(percent)
91 Wscript.Sleep 2000
92
93 for i = 1 to len(percent)
94 Wscript.StdOut.Write(chr(8))
95 next
96 wend

Cheers.
 

Danr

Administrator
Staff member
That error usually comes when there program crashed during output. Check if there's anything in the log file. Also try to do the output manually through the GUI and see if an error message appears.
 
The script assumes that VRD is working properly all the time which we know is not always true. It needs to do some error-trapping.

When VRD stops or crashes does it output an error code to check for each iteration within a script? If it does not can it?

Typically the normal error code is 0-i.e. working within normal parameters; where any other positive number would indicate a problem.

Mike
 

bkh

New member
>where any other positive number would indicate a problem.

Just out of curiosity (I'm not a Windows programmer) what would a negative number indicate?
 

hossnine

New member
Re-tested

That error usually comes when there program crashed during output. Check if there's anything in the log file. Also try to do the output manually through the GUI and see if an error message appears.
Thanks Dan et al. I had previously worked with the VRD GUI and it worked fine. That is what prompted me to take the next step and script the work. In the interest of being thorough I ran 2 conversions on the same DVD with the same options. Only difference was the first test was VRD GUI based and the second test I saved it as a script and ran it from batch manager. The results of the tests were that VRD GUI worked fine whereas the batch failed with the RPC error. I kept separate VRD logs for each test.

GUI-WORKING said:
2010-02-10 17:01:42 Decoder support lib: 6.1 build 137.36, ippvcv8l.lib
2010-02-10 17:01:42 Image support lib: 6.1 build 137.36, ippvcv8l.lib
2010-02-10 17:01:43 VideoReDo TVSuite started. Licensed to: <licensed user>, Version: 4.20.2.595 - Jan 25 2010, AVP On (00cf0069UZKK76}
2010-02-10 17:01:44 Checking reg: 120
2010-02-10 17:02:26
***** Loading: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0.VLST

2010-02-10 17:02:27 Using display driver: VMR9
2010-02-10 17:02:28 VMR9 (Windowed), MEDIASUBTYPE_RGB24
2010-02-10 17:02:28 VMR9 (Windowed), MEDIASUBTYPE_RGB24
2010-02-10 17:03:23 Graph monitoring thread started.
2010-02-10 17:03:23 Graph, monitoring thread received terminate signal.
2010-02-10 17:03:23 Graph monitoring thread finished.
2010-02-10 17:03:23 Graph monitoring thread started.
2010-02-10 17:03:24 Adding module to graph: Audio recoder
2010-02-10 17:03:24 Adding module to graph: Output muxer
2010-02-10 17:03:24 Setting graph input port: 0 to module: Output muxer port: 0 Accepts EOF
2010-02-10 17:03:24 Setting graph input port: 1 to module: Audio recoder port: 0 Accepts EOF
2010-02-10 17:03:24 Connecting output of Audio recoder (0) to input of Output muxer (1)
2010-02-10 17:03:24 Setting graph input port: 2 to module: Output muxer port: 2 Accepts EOF
2010-02-10 17:03:24 Graph, passes required: 1
2010-02-10 17:03:24 Graph, Output encoding bitrate: 7.5280 Mbps
2010-02-10 17:03:24 Graph, Encoding dimension: 720 x 576
2010-02-10 17:03:24 Graph, Cropping rect: (0 x 0 ) - (720 x 576)
2010-02-10 17:03:24 Graph, Maximum GOP: 0
2010-02-10 17:03:24 StreamProcess: Stream: 0, Starting audio coding thread.
2010-02-10 17:03:24 StreamProcess: Staring output muxer thread.
2010-02-10 17:03:24 Program Information
File Name: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0.VLST
File Size: 2126299136 ( 1.98 GB )
Program Duration: 01:28:10.17
File Type: PS - MPEG2
Encoding: MPEG2
Video stream Id: xE0
Encoding Dimensions: 720 x 576
Display Size: 720 x 576
Aspect Ratio: 4:3
Frame Rate: 25.00 FPS
Bit Rate: 7.528 Mbps
VBV_Buffer: 224 KB
Profile: Main/Main
Progressive: Prog or Int
Chroma: 4:2:0
Audio Format: 5.1
Audio Stream Id: AC3: 1 (x81)
Audio Bit Rate: 384 Kbps
Audio Sampling Rate: 48000 Hz
TS Mux Rate (bps): -1
Subtitle 1: DVD Subpic
Subtitle 2: DVD Subpic
Subtitle 3: DVD Subpic
Subtitle 4: DVD Subpic
Subtitle 5: DVD Subpic
Subtitle 6: DVD Subpic
Subtitle 7: DVD Subpic

2010-02-10 17:03:24 Starting new Frame Accurate Output Segment: start:0.000 (00:00:00.00), end:8890680.011 (02:28:10.17)
2010-02-10 17:03:24 Preparing to send status to: 0 Audio volume changed
2010-02-10 17:03:24 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2010-02-10 17:03:24 Preparing to send status to: 0 Audio volume changed
2010-02-10 17:03:24 Sending status: 'Audio volume changed' to module: 'Audio recoder - 0', Type: Audio frame
2010-02-10 17:03:24 Preparing to send status to: 2 Audio volume changed
2010-02-10 17:03:24 Sending status: 'Audio volume changed' to module: 'Output muxer - 2', Type: Subtitle frame
2010-02-10 17:03:24 Adding new graph range, Start: 0 (00:00:00.00), End: 8890680.01 (02:28:10.17)
2010-02-10 17:05:36 AudioRecoder thread complete. Stream: 0, Audio Frames, In:165332, Out: 165332
2010-02-10 17:05:36 Graph, monitoring thread received terminate signal.
2010-02-10 17:05:36 Output muxer processing thread complete. Video in: 132265, Out: 132265, Buffer: 0
2010-02-10 17:05:36 Graph monitoring thread finished.
2010-02-10 17:05:36 Output muxer processing thread complete. Audio stream 0 In: 165332, Out: 165332, Buffer: 0
2010-02-10 17:05:36 Muxer add / delete audio: stream: 0, add: 0 delete 0
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 0 In: 698, Out: 698
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 1 In: 979, Out: 979
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 2 In: 971, Out: 971
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 3 In: 979, Out: 979
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 4 In: 979, Out: 979
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 5 In: 978, Out: 978
2010-02-10 17:05:36 Output muxer processing thread complete. Subtitle stream 6 In: 972, Out: 972
2010-02-10 17:05:44 Output complete. Input file: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0.VLST
Output file: H:\MyDVD\MyDVD_VRD-Gui.mpg
Mode: Frame Accurate
-Video output packets: 561370
-Audio output packets: 251936
-Padding output packets: 0
Video output frames: 132265
Audio output frames: 165332
Processing time (secs): 140
Processed frames/sec: 943.83
Actual Video Bitrate: 1.70 Mbps

2010-02-10 17:05:44 Displaying output complete dialog: 0
BATCH-FAILING said:
2010-02-10 17:08:25 Decoder support lib: 6.1 build 137.36, ippvcv8l.lib
2010-02-10 17:08:25 Image support lib: 6.1 build 137.36, ippvcv8l.lib
2010-02-10 17:08:26 VideoReDo TVSuite started. Licensed to: <licensed user>, Version: 4.20.2.595 - Jan 25 2010, AVP On (00cf0069UZKK76}
2010-02-10 17:08:26 Checking reg: 120
2010-02-10 17:08:39
***** Loading: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0 (02).VLST

2010-02-10 17:08:40 Using display driver: VMR9
2010-02-10 17:08:41 VMR9 (Windowed), MEDIASUBTYPE_RGB24
2010-02-10 17:08:41 VMR9 (Windowed), MEDIASUBTYPE_RGB24
2010-02-10 17:09:06 Current Profile project added to batch queue as: H:\MyDVD\MyDVD_VRD-Batch.mpg
2010-02-10 17:10:38 Decoder support lib: 6.1 build 137.36, ippvcv8l.lib
2010-02-10 17:10:38 Image support lib: 6.1 build 137.36, ippvcv8l.lib
2010-02-10 17:10:39 VideoReDo TVSuite started. Licensed to: <licensed user>, Version: 4.20.2.595 - Jan 25 2010, AVP On (00cf0069UZKK76}
2010-02-10 17:10:39 Starting up with silent and batch: 1 0
2010-02-10 17:10:39 COM call: FileOpenBatch C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_VRD-Batch.BPRJ
2010-02-10 17:10:39 Audio file not provided, trying to find match automatically
2010-02-10 17:10:39 Can't find matching audio file
2010-02-10 17:10:39 COM call: FileOpen C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_VRD-Batch.BPRJ
2010-02-10 17:10:39 Audio file not provided, trying to find match automatically
2010-02-10 17:10:39 Can't find matching audio file
2010-02-10 17:10:39
***** Loading: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0 (02).VLST

2010-02-10 17:10:39 Using display driver: VMR9
2010-02-10 17:10:40 VMR9 (Windowed), MEDIASUBTYPE_RGB24
2010-02-10 17:10:40 VMR9 (Windowed), MEDIASUBTYPE_RGB24
2010-02-10 17:10:41 COM call: FileSaveAsEx H:\MyDVD\MyDVD_VRD-Batch.mpg, Type: 10
2010-02-10 17:10:41 Batch, saving project to: *
2010-02-10 17:10:42 Opening: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0 (02).VLST in QuickStream Fix Mode.
2010-02-10 17:10:42 Audio file not provided, trying to find match automatically
2010-02-10 17:10:42 Can't find matching audio file
2010-02-10 17:10:42 Graph monitoring thread started.
2010-02-10 17:10:42 Graph, monitoring thread received terminate signal.
2010-02-10 17:10:42 Graph monitoring thread finished.
2010-02-10 17:10:42 Graph monitoring thread started.
2010-02-10 17:10:42 Adding module to graph: Audio recoder
2010-02-10 17:10:42 Adding module to graph: Output muxer
2010-02-10 17:10:42 Setting graph input port: 0 to module: Output muxer port: 0 Accepts EOF
2010-02-10 17:10:42 Setting graph input port: 1 to module: Audio recoder port: 0 Accepts EOF
2010-02-10 17:10:42 Connecting output of Audio recoder (0) to input of Output muxer (1)
2010-02-10 17:10:42 Graph, passes required: 1
2010-02-10 17:10:42 Graph, Output encoding bitrate: 7.5280 Mbps
2010-02-10 17:10:42 Graph, Encoding dimension: 720 x 576
2010-02-10 17:10:42 Graph, Cropping rect: (0 x 0 ) - (720 x 576)
2010-02-10 17:10:42 Graph, Maximum GOP: 0
2010-02-10 17:10:42 StreamProcess: Stream: 0, Starting audio coding thread.
2010-02-10 17:10:42 Program Information
File Name: C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_0 (02).VLST
File Size: 2126299136 ( 1.98 GB )
Program Duration: 00:00:00.00
File Type: PS - MPEG2
Encoding: MPEG2
Video stream Id: xE0
Encoding Dimensions: 720 x 576
Display Size: 720 x 576
Aspect Ratio: 4:3
Frame Rate: 25.00 FPS
Bit Rate: 7.528 Mbps
VBV_Buffer: 224 KB
Profile: Main/Main
Progressive: Prog or Int
Chroma: 4:2:0
Audio Format: 5.1
Audio Stream Id: AC3: 1 (x81)
Audio Bit Rate: 384 Kbps
Audio Sampling Rate: 48000 Hz
TS Mux Rate (bps): -1
Subtitle 1: DVD Subpic
Subtitle 2: DVD Subpic
Subtitle 3: DVD Subpic
Subtitle 4: DVD Subpic
Subtitle 5: DVD Subpic
Subtitle 6: DVD Subpic
Subtitle 7: DVD Subpic

2010-02-10 17:10:42 StreamProcess: Staring output muxer thread.
2010-02-10 17:10:42 Starting new Frame Accurate Output Segment: start:0.000 (00:00:00.00), end:450359962737.044 (5795:20:33.03)
2010-02-10 17:10:42 QuickStream fix flag is ON.
2010-02-10 17:10:42 Preparing to send status to: 0 Audio volume changed
2010-02-10 17:10:42 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2010-02-10 17:10:42 Preparing to send status to: 0 Audio volume changed
2010-02-10 17:10:42 Sending status: 'Audio volume changed' to module: 'Audio recoder - 0', Type: Audio frame
2010-02-10 17:10:42 Adding new graph range, Start: 0 (00:00:00.00), End: 450359962737.04 (5795:20:33.03)
BATCH-CONTENTS said:
@echo off
echo 1/ 1 - Starting: H:\MyDVD\MyDVD_VRD-Batch.mpg
cscript //nologo "C:\Program Files (x86)\VideoReDoTVSuite4\vp.vbs" "C:\Users\<pcuser>\AppData\Roaming\VideoReDo-TVSuite4\MyDVD_VRD-Batch.BPRJ" "H:\MyDVD\MyDVD_VRD-Batch.mpg" /t10 /q /e
Echo Done
NOTE: I scrubbed user information from the logs so anything wrapped in <> has been cleaned.
 
>where any other positive number would indicate a problem.

Just out of curiosity (I'm not a Windows programmer) what would a negative number indicate?
There are no negative number error/return codes. The return codes could be as simple as 0,1,2,3,etc or binary to create a ''word''.

Mike
 

Danr

Administrator
Staff member
hossnine, two questions:

1) On the batch output, is there anythingin the output file?

2) Can you replicate the batch behavior with a smaller file of just a 50-100 Mbytes?
 
Top Bottom