Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Fri May 24, 2013 9:31 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Comskip Batches
PostPosted: Tue Jan 27, 2009 7:04 pm 
Offline

Joined: Tue Jan 27, 2009 5:21 pm
Posts: 14
If someone is searching for good working Batches, here are my Files:

In this Batch you can use comskip by drag & drop the MPG File to it:

Comskip.cmd:
---------------------------------
@echo off
:comskip
"c:\comskip\comskip.exe" "%~dpn1.mpg"
:eof
REM pause
-----------------------------------

With this File I clean the MPG-Stream using videoredo. Then Comskip is working:

------------------------------------
set priority=low

set delOriginal=yes

rem "set delOriginal above to yes or no.... yes will delete original mpg and replace with fixed file."
rem "if set to no will Quickfix file to tmpEncode directory but will not delete original...."
rem "also if set to no will create a file with .QFixed so that dirmon will not re-encode it"

set extension=mpg
rem ........Do Not Touch Below................................................
md %~d1%~p1tmpEncode
del "%~d1%~p1tmpEncode\%~n1.%extension%"
START /B /W /MIN /%priority% cscript.exe //nologo "C:\Programme\VideoReDoPlus\vp.vbs" "%~f1" "%~d1%~p1tmpEncode\%~n1.%extension%" /t1 /q
if /I "%delOriginal%" EQU "yes" if exist "%~d1%~p1tmpEncode\%~n1.%extension%" del "%~d1%~p1%~n1%.%extension%"
if /I "%delOriginal%" NEQ "yes" dir %~f1>>"%~d1%~p1%~n1%.QFixed"
if /I "%delOriginal%" EQU "yes" move "%~d1%~p1tmpEncode\%~n1.%extension%" "%~d1%~p1"
dir %~f1>>"%~d1%~p1%~n1%.QFixed"
REM ********************************************************

:comskip
"c:\comskip\comskip.exe" "%~dpn1.mpg"

del "%~dpn1*.logo.txt"
del "%~dpn1*.log"
del "%~dpn1*.QFixed"
del "%~dpn1*.edl"
del "%~dpn1*.VPrj"

:eof
REM pause
exit

----------------------------------------------------------

With this File I run comskip an create a new clean Mpg using Videoredo:

------------------------------------------------------------
@echo off

if EXIST "%~dpn1.VPrj" goto cutting

:comskip
echo no VPrj file exists yet, let's run comskip
"c:\comskip\comskip.exe" "%~dpn1.mpg"

:cutting
echo Comskip succeeded, will now start videoredo
cscript //nologo "C:\Programme\VideoReDoPlus\vp.vbs" "%~dpn1.VPrj" "%~dpn1_clean.mpg" /t4 /d /e

Rem RENAME the old .mpg file and rename the new one to the old name
:if EXIST "%~dpn1_clean.mpg" move "%~dpn1.mpg" "%~dpn1_original.mpg"
:if EXIST "%~dpn1_clean.mpg" move "%~dpn1_clean.mpg" "%~dpn1.mpg":success


goto eof

----------------------------------------------------------


I Hope this is a help for other Newbies.

Greetings

Joker


Top
 Profile  
 
 Post subject: Re: Comskip Batches
PostPosted: Sun Nov 08, 2009 11:21 pm 
Offline

Joined: Sat Nov 07, 2009 4:42 pm
Posts: 13
Joker,
These batches look great. But I am a newbie to comskip. I guess Its not to clear to me how these are supposed to be implemented. Do they all get strung together and then put into the batch file? Do they run separate? Any help would be appreciated.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group