Don't worry about the Mencoder errors - the mpeg file I was using for testing had an audio "inconsistency" in the middle that Mencoder choked on - strange that VideoRedo didn't fix it, or raise it as an error.
I have tried some other DVB mpeg files, and Mencoder finishes them OK (and cuts all the commercials out!), but still skips some frames - not sure why.
So, I am pursuing the command line option with VideoRedo - I might have to learn how to write VB scripts, though....
Thanks for your help so far, it has been much appreciated...
set Args = Wscript.Arguments
if Args.Count < 2 or Args.Count > 4 then
wscript.echo( "? Invalid number of arguments - usage is: VRDProcess <source file/project> <destination file/project> [/e] [/d]" )
Wscript.Quit 2
end if
'Create VideoReDo object and open the source project / file.
Set VideoReDo = WScript.CreateObject( "VideoReDo.Application" )
openFlag = VideoReDo.FileOpen( args(0) )
if openFlag = false then
Wscript.echo( "? Unable to open file/project: " + args(0) )
Wscript.Quit 3
end if
' Check for flags.
elemStreams = false
deleteBprj = false
for i = 1 to args.Count
if args(i-1) = "/e" then elemStreams = true
if args(i-1) = "/d" then deleteBprj = true
next
' Open the output file and start processing.
if elemStreams then
outputFlag = VideoReDo.FileSaveAsElemStreams( args(1) )
else
outputFlag = VideoReDo.FileSaveAs( args(1) )
end if
if outputFlag = false then
Wscript.Echo("? Problem opening output file: " + args(1) )
Wscript.Quit 4
end if
' Wait until output done.
while( VideoRedO.IsOutputInProgress() )
Wscript.Sleep 2000
wend
VideoReDo.Close()
if deleteBprj then
fileType = lcase( right( args(0), 5))
if fileType = ".bprj" then
projectFile = args(0)
outputFile = args(1)
VideoReDo.DeleteBatchProjectFile projectFile, outputFile
Wscript.Echo("Deleting: " + args(0) )
end if
end if
Wscript.Echo( "Output complete to: " + args(1) )
Wscript.quit 0
Yes, I saw that script (vp.vbs), but as there is no documentation about it's use that I could find, and I have zero knowledge of VB scripting, I am not sure how I would call it from within a .bat file and pass the mpeg file name and the .vprj file to it...are you able to give me some guidance on that?
I would really like to get VideoRedo working as Mencoder is still giving me problems - it looks like it can't handle files larger than 3.6Gb, and it produces an mpeg that I cannot fast-forward through.
Just my tuppence worth but i've found cuttermaran to provide the most stable and faultless cleaned files. I had problems in the past with synching of audio and skips. This seems to have them solved. It isn't the fastest but then again its not so slow as to be unusable. Hope this helps. cheers m.
Taipan wrote:Yes, I saw that script (vp.vbs), but as there is no documentation about it's use that I could find, and I have zero knowledge of VB scripting, I am not sure how I would call it from within a .bat file and pass the mpeg file name and the .vprj file to it...are you able to give me some guidance on that?
You don't need to know VB to use the command line option. To see how vp.vbs works, use the Batch Manager in VRD to perform a function that you want to do. Then look at the resultant "command" file to see the syntax.
Briefly,
cscript //nologo "<path to VRD>\vp.vbs" "<full path to vprj file>\your-vprj.vprj" <output file name> /t1
They are very helpful on the VRD forum and you'll probably find answers to questions like this there.
I understand that %~dpn1 means the full path and name of the file, to which I can add the extension. This allows me to include the above line in a .bat file and pass any source mpeg file to the .bat file, to be processed by Comskip and then by VideoRedo. It works beautifully....
Now, I would like to have the "cleaned" file saved to a different directory than the source file - do you know what variation of %~dpn1 allows me to specify a different path, but retain the file name, and to which I can add _CLEAN?
I have "googled" everywhere, but cannot find any description of the syntax of %~dnp1 or any of its variations.....