View Full Version : Batch scheduling
wwjd
April 6th, 2005, 10:10 AM
I record a lot of TV series, remove the commercials and then burn to DVD. My computer is busy recording at various times of the day and night.
It would be great if the Batch option had a scheduler so that Batch jobs could be run when you want them to run.
Is anything like this planned? Is there a suggested workaround?
DanR
April 6th, 2005, 11:29 AM
You should be able to schedule them yourself using the windows scheduler from the control panel. Specify the videoredobatch.cmd, or whatever cmd file name(s) you use and the Scheduler will take care of starting them at the specifed time / date. I believe that the Scheduler is only available on 2K and XP.
BUCKO
April 8th, 2005, 08:08 AM
Wouldn’t it be better to schedule an AdScan.vbs? If so could you e-mail me the script that would edit all mpgs that where captured in to a particular folder.
Something like this below but with the lower code in it.
“We are still working in integration of Ad-Detective scans into the batch manager. The first phase is done which is the ability to invoke a scan from the command line. As with normal batch functions, we use cscript (or wscript) as shown below:
Code:
cscript "c:\program files\videoredo\AdScan.vbs" "<your mpeg file here>"
if you want to scan all the MPG files in a folder:
Code:
for %i in (*.mpg) do cscript "c:\program files\videoredo\AdScan.vb" "%i"
_________________
Dan Rosen ( VideoReDo )”
BUCKO
April 8th, 2005, 08:19 AM
Second look at this maybe
(for %i in (*.mpg) do cscript "c:\program files\videoredo\AdScan.vb" "%i")
Is just a .BAT file that needs to be scheduled instead of added to the script?
DanR
April 8th, 2005, 09:41 AM
Is just a .BAT file that needs to be scheduled instead of added to the script?Yes.
BUCKO
April 8th, 2005, 10:16 AM
:oops: could someone send me the bat file I need.
I'll use the folder names you give me in the bat file.
Lester Burnham
April 8th, 2005, 10:31 AM
:oops: could someone send me the bat file I need.
I'll use the folder names you give me in the bat file.
Um, just put the command line you see in a .bat file (or even better, a .cmd file ;-)) and you're good to go.
BUCKO
April 8th, 2005, 10:47 AM
Thats what I've been trying but not sure on my folders/paths.
for %i in (*.mpg) do cscript "c:\program files\videoredo-plus\AdScan.vb" "%i"
comes back with can't find FOR.
this is working when pasted to RUN command.
cscript //nologo "C:\program files\videoredo-plus\AdScan.vbs" "c:\batch\name.mpg"
Lester Burnham
April 8th, 2005, 10:57 AM
Thats what I've been trying but not sure on my folders/paths.
for %i in (*.mpg) do cscript "c:\program files\videoredo-plus\AdScan.vb" "%i"
comes back with can't find FOR.
FOR should be something you can find, it's internal to the shell.
Go to a command prompt and type: for /?
Also if you are using a for command in a batch file (rather than on the command line), you'll have to kinda escape the '%'
So:
for %%i in (*.mpg) do cscript "c:\program files\videoredo-plus\AdScan.vb" "%%i"
this is working when pasted to RUN command.
cscript //nologo "C:\program files\videoredo-plus\AdScan.vbs" "c:\batch\name.mpg"
Different, though. Not using the inbuilt for command, and using the command-line invocation of a provided (ie with VideoReDo) vbscript.
BUCKO
April 8th, 2005, 11:23 AM
Thanks getting closer.
I had to add the S on .vds
for %%i in (*.mpg) do cscript "c:\program files\videoredo-plus\AdScan.vbS" "%%i"
Works when ran in the same folder as the file as a bat.. but now it fails to open the MPG that in is the folder?
? unable to open file/project: 24.mpg
24 is the video's name by the way
Lester Burnham
April 8th, 2005, 11:44 AM
Thanks getting closer.
I had to add the S on .vds
Sorry - that was my fault with poor cut and paste.
Works when ran in the same folder as the file as a bat.. but now it fails to open the MPG that in is the folder?
? unable to open file/project: 24.mpg
24 is the video's name by the way
Try the following, put in a .cmd file, run in the folder where your mpegs are - note the addition /f and the addition of an f before the i in the %% bit at the end.
for /f %%i in (*.mpg) do cscript "c:\program files\videoredo-plus\AdScan.vbS" "%%fi"
DanR
April 8th, 2005, 11:47 AM
I think it should be "%%~fi" note the "~" character.
Lester Burnham
April 8th, 2005, 11:49 AM
I think it should be "%%~fi" note the "~" character.
Indeed - good eyes, Dan.
BUCKO
April 8th, 2005, 03:07 PM
Because all mpg files are associated with VideoReDo the extensions say "*.VideoReDo editor" so I have to do something like this.
for /f %%i in ("*.videoredo editor") do cscript "c:\program files\videoredo-plus\AdScan.vbs" "%%~fi"
VRD flashes and then shuts down with this error
? Unable to open file/project c:\batch\*.videoredo
So the wild card still isn't working and it should. Or it still doesn’t like the space between Videoredo and editor
DanR
April 8th, 2005, 03:32 PM
You don't need the /F, don't how that got into the conversation.
Where did you come up with the (*.videoredo.editor)? It should be something like (*.mpg).
Lester Burnham
April 8th, 2005, 04:06 PM
You don't need the /F, don't how that got into the conversation.
That would be me - seemed to be the correct switch, given that it's files that for is enumerating. That said, it probably works just fine without it, but it shouldn't be a problem, and is technically correct.
Where did you come up with the (*.videoredo.editor)?
I suspect that extensions are hidden in his explorer settings, and / or he's looking at the type field.
It should be something like (*.mpg).
Indeed - and to clarify the script should be run when in the folder that the *.mpg files are, either that, or fully qualify the path in the fileset wildcard in the braces.
DanR
April 8th, 2005, 04:14 PM
DanR wrote:
You don't need the /F, don't how that got into the conversation.
That would be me - seemed to be the correct switch, given that it's files that for is enumerating. That said, it probably works just fine without it, but it shouldn't be a problem, and is technically correct
That's not correct. The /F tells the cmd processor to open the file and enumerate each line. This isn't what we want to do.
Lester Burnham
April 8th, 2005, 04:38 PM
DanR wrote:
You don't need the /F, don't how that got into the conversation.
That would be me - seemed to be the correct switch, given that it's files that for is enumerating. That said, it probably works just fine without it, but it shouldn't be a problem, and is technically correct
That's not correct. The /F tells the cmd processor to open the file and enumerate each line. This isn't what we want to do.
Sorry - my mistake - mea culpa.
Too used to writing scripts to enumerate text files.
DanR
April 8th, 2005, 04:40 PM
No problem. Just didn't want other readers of this thread to do something wrong.
BUCKO
April 11th, 2005, 12:13 PM
for %%i in (*.mpg) do cscript "c:\program files\videoredo-plus\AdScan.vbs" "%%~fi"
Cut and paste the above into notepad, do a save as "batchcuts.cmd" with out the quotes. You have to change “Save as Type” from text to “All Files”. And save this into the directory that you plan on captures the programs that need to add detected.
There are several free schedulers like http://www.freebyte.com/fbtaskscheduler or http://www.splinterware.com/products/wincron.htm . Direct the scheduler to your Batchcuts.cmd file.
Not sure why Dan was so evasive about this? No offence meant Dan.
DanR
April 11th, 2005, 12:17 PM
Not sure why Dan was so evasive about thisWhere was I being evasive?
BUCKO
April 11th, 2005, 12:54 PM
:cry: Sorry I shouldn't have said anything. And thanks for spoon feeding me.
I do like conspiracy. It isn’t illegal to Zap commercials yet is it? :wink:
DanR
April 11th, 2005, 01:00 PM
It isn’t illegal to Zap commercials yet is it? Not yet. And certainly not in most of the world.
BUCKO
April 11th, 2005, 01:31 PM
Inducing Copyright Legislation
HR 2391 proposed to outlaw use of TiVos and DVRs for zapping commercials, under the pretext of carving out a ‘right’ (which already existed anyway!) for home recorders to bleep out offensive material (question for the lawyers: what if the offensive material is in the commercial?). Technology is a great enabler for bypassing business models (or even enforcing current models through digital rights management), especially those based on commercials. But the federal government should not be the enforcer of the entertainment industry’s revenue model.
http://www.cei.org/gencon/016,04341.cfm
wwjd
April 12th, 2005, 08:43 PM
DanR
With all that has been said, is there any chance that you will consider
putting a scheduler in the Batch option? It would really be much easier
to create the batch file and then schedule it without have to exit out and
open up another app to do the scheduling.
DanR
April 12th, 2005, 09:18 PM
With all that has been said, is there any chance that you will consider putting a scheduler in the Batch option? You're the first to formally ask for it, but I'll add it to the list.
wwjd
April 13th, 2005, 12:51 PM
DanR,
Thank you!
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.