Comskip Support Forum

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Clean up process?
PostPosted: Thu Nov 24, 2011 5:44 am 
Offline

Joined: Thu Nov 24, 2011 5:32 am
Posts: 3
I just started testing Comskip with .wtv files and so far, it looks like it is working nicely. Now...here is my question: Comskip generates files in the same directory as Recorded TV. After I delete the show within WMC, the .wtv is gone, but it leaves behind the Comskip files. After a month, I can have hundreds of files in the folder that are no longer needed. What does everyone do to clean these up? I know I can clean up manually, but is there anything that will match the current shows in the folder...and if they no longer exist, then delete the associated files? Thx!


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Thu Nov 24, 2011 9:22 am 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
many people run a simple batch file
example (you need to test and check as I made this just now)

This will walk all folders below where it is started and deletes the .txt and .log files without a .wtv file with the same base name.
Run this either manually or from a daily/weekly scheduled job.

Code:
@echo off
call :recurse "."
goto :eof

:recurse
pushd "%1"
    for /d %%i in (*) do call :recurse "%%i"
    for %%f in ("*.txt") do if not exist "%%~dpnf.wtv" del /q "%%~dpnf.txt"
    for %%f in ("*.log") do if not exist "%%~dpnf.wtv" del /q "%%~dpnf.log"
popd
goto :eof


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Thu Nov 24, 2011 9:21 pm 
Offline

Joined: Thu Nov 24, 2011 5:32 am
Posts: 3
Ah! Very nice. I knew there was something out there...and you provided a great solution. I'll test it out. Thanks Erik!


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Sun Nov 27, 2011 8:51 pm 
Offline

Joined: Sun Nov 27, 2011 6:32 pm
Posts: 4
Is that batch file specific to comskip files? Will it work with the similar SA files?


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Sun Nov 27, 2011 11:27 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
Please check what it does to see if its compatible with other programs.
I don't know mutch about SA.


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Mon Nov 28, 2011 6:35 am 
Offline

Joined: Thu Nov 24, 2011 5:32 am
Posts: 3
Adam, SA creates .xml files. So, you just need to create one additional line in the batch file:

for %%f in ("*.xml") do if not exist "%%~dpnf.wtv" del /q "%%~dpnf.xml"


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Tue Nov 29, 2011 1:31 pm 
Offline

Joined: Sun Nov 27, 2011 6:32 pm
Posts: 4
Thank you!


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Thu Jan 26, 2012 4:02 am 
Offline

Joined: Sun Jan 01, 2012 8:21 pm
Posts: 9
I see files added to the "Recorded TV" folder (as Oingofan mentioned), but I also see files added to c:\users\public\Dvrmstoolbox\folders (e.g. commercialsxml and fwlogs). If I run a copy of the batch file in each location, it completely cleans the later directory structure (I assume since the .wtv files are not within this folder). Any suggestions?

I am also getting vprj and edl files. Is that normal? Should I simply add those to the batch file for cleanup?

Thanks


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Thu Jan 26, 2012 2:36 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
You can set

output_edl=0
and
output_videoredo=0
in your ini file to get rid of the generation of the .edl and .vpr files.


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Sat Jan 28, 2012 3:56 am 
Offline

Joined: Sun Jan 01, 2012 8:21 pm
Posts: 9
Thanks, oddly enough, output_videoredo is already set to 0.

Any suggestions for the first question (cleaning up the folders)?


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Sat Jan 28, 2012 9:00 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 2440
Are you sure the right ini file is used?


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Fri Feb 03, 2012 3:02 am 
Offline

Joined: Sun Jan 01, 2012 8:21 pm
Posts: 9
I'm not sure what I was doing wrong, but now I only have wtv and log files in the "Recorded TV" folder and vih and xml files in the Dvrmstoolbox\commercialsxml folder. BTW, what are the vih files and are they needed?

Any suggestions for how to use (or modify) the batch file so that it cleans both of these folders correctly?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Wed Feb 08, 2012 8:25 pm 
Offline

Joined: Sat Feb 04, 2012 5:21 am
Posts: 3
Eh, I don't think you should be having to manually clean up any files.

DVRMSToolBox is creating those files because 'out of the box' DVRMSToolbox has about 5 different commercial processing applications enabled.

You need to go into the DVRMSToolbox GUI and I can't remember which tab it's on, but you want to turn off everything but Comskip.

It's just creating empty output files for all of the applications that are enabled but don't exist on your system.

EDIT: When I get home later I'll have a look and report back exactly... I know that it's a DVRMSToolbox configuration somewhere.

EDIT 2: I think it's a matter of changing the Preferred analyzer on the main page to Comskip instead of automatic... You may have to also change it on the Processing Tab. I'll double check later.

EDIT 3: Hmmmm. I may be flashing back to my ShowAnalyzer days. It could be the config was in there that I'm thinking about... I'll check it out.


Top
 Profile  
 
 Post subject: Re: Clean up process?
PostPosted: Wed Feb 08, 2012 9:42 pm 
Offline

Joined: Thu Jan 19, 2012 5:13 pm
Posts: 53
In the ini file the xxxx_output lines are what you're thinking of I think. Also in one or two of the tabs there are checkboxes for log files and junk. I think those will dump to the same place if you're not careful.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests


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