Hi,
I have a bat file where I use to cut the commercials but I have to format the computer and know it doesn't works!?
Basically, the script detect the commercials with comskip and the cut with virtualdub.
I can't detect why doesn't work:
setlocal
REM The variables below need to be changed to match your setup
REM Please don't change the presence or absence of quotation marks as it may interfere with the functionality of the batch file
set CAPDIR=E:\GRABACION\cbreakwithmpeg\HERRAMIETNAS\to tal\captured
REM Set the directory where the original AVI files are captured
set CAPDIRBACKUP=E:\GRABACION\cbreakwithmpeg\HERRAMIET NAS\total\temp
REM Set the directory where the original AVI files are backed up
set CUTDIR=E:\GRABACION\cbreakwithmpeg\HERRAMIETNAS\to tal\converted
REM Set the directory where the cut versions of the original AVI files are placed
set COMSKIP="E:\GRABACION\cbreakwithmpeg\HERRAMIETNAS\ total\comskip.exe"
set VDUB="E:\GRABACION\cbreakwithmpeg\HERRAMIETNAS\tot al\vdub.exe"
set QUENC="E:\GRABACION\cbreakwithmpeg\HERRAMIETNAS\to tal\QuEnc.exe"
REM Set Program Locations
%CAPDIR:~0,2%
REM Change working drive to CAPDIR's drive
cd %CAPDIR%
REM Change working directory to CAPDIR
FOR %%D in (%CAPDIR%\*.mpg) DO %COMSKIP% "%%D"
REM Use Comskip to read commercial locations in MPEG files
FOR %%A in (%CAPDIR%\*.avi) DO echo VirtualDub.Open(u"%%A"); > "%CAPDIR%\%%~nAnew.vcf"
FOR %%A in (%CAPDIR%\*.avi) DO type "%CAPDIR%\%%~nA.vcf" >> "%CAPDIR%\%%~nAnew.vcf"
FOR %%A in (%CAPDIR%\*.avi) DO echo VirtualDub.SaveAVI(u"%CUTDIR%\%%~nA.avi"); >> "%CAPDIR%\%%~nAnew.vcf"
REM Create VirtualDub script
REM You can add additional lines to add video or audio processing to the vcf script file.
REM If you are going to add Video processing of the file you need to add the line "VirtualDub.video.SetMode(1);" before your video processing commands.
REM See http://www.virtualdub.org/docs/vdscript.txt for more info on Virtualdub scripts.
FOR %%F in (%CAPDIR%\*.avi) DO %VDUB% /s "%CAPDIR%\%%~nFnew.vcf"
REM Run VirtualDub script
REM You can add additional commands for postprocessing here.
move %CAPDIR%\*.avi %CAPDIRBACKUP%
REM Move original AVI captured files to backup directory
The script generates a avi file of 11 kb!??
Any help?
Many thanks
+ Reply to Thread
Results 1 to 4 of 4
-
-
you're missing something,
that sequence pretty much does nothing,"I'll give you five dollars if you let me throw a rock at you" -
Where did you find that script? Did you make it yourself?
-
Its from this post
http://www.kaashoek.com/comskip/viewtopic.php?f=5&t=63
Similar Threads
-
VideoRedo: Can't save format with commercials cut
By DarkPhoenix77 in forum Video ConversionReplies: 11Last Post: 19th Sep 2011, 11:39 -
Possible To Make A VDub Script To Cut Segment From Video?
By onesikgypo in forum ProgrammingReplies: 1Last Post: 17th Jun 2011, 20:02 -
Software TV Studios use to edit/cut splice logos & commercials etc....
By Moontrash in forum EditingReplies: 11Last Post: 14th Oct 2010, 22:52 -
Using Mencoder to Cut Commercials from TS/TP fils not working
By Randall_C in forum Video ConversionReplies: 0Last Post: 3rd Jul 2010, 16:47 -
looking for tool to cut commercials then rip closed caption of ts file
By hunk in forum DVB / IPTVReplies: 2Last Post: 3rd Nov 2009, 18:22