VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. 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
    Quote Quote  
  2. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    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"
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Where did you find that script? Did you make it yourself?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!