Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Tue Dec 11, 2018 7:22 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Dec 30, 2012 11:40 am 
Offline

Joined: Sun Dec 23, 2012 10:04 am
Posts: 3
I am working on a script to automate comskip and I have a question about the INI file and where and when it is read during processing so I can make sure my script does not break anything.

I see that as of Revision 0.79.10 (at least in the donator version), you can put the INI file with the recording, and as of 0.77.59, you can specify the ini file via a command line switch

So if I run comskip like this:

Code:
comskip "C:\MyPath\input.wtv" --ini=mysettings.ini


Will comskip first look for "mysettings.ini" in C:\MyPath\ and if it doesn't find it, it will look in the directory of the exe?

And when are the ini file parameters read? Is everything read up front and stored in memory? Or does comskip go back to the file during processing? Reason I ask this is I am wondering what would happen if the ini were to be accidentally deleted or changed while processing a video. Would it break comskip? Or does it not need the ini after it has started?


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 30, 2012 7:56 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3215
When a --ini switch is used comskip will look for the specified file.
If no --ini switch is used comskip will first look in the folder where the recording is found. If no ini file found in that folder comskip will look in the folder where comskip.exe is located


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 30, 2012 8:10 pm 
Offline

Joined: Sun Dec 23, 2012 10:04 am
Posts: 3
Thanks Erik.

What about "when"? Is the *.ini read and stored in memory initially when executed? If the *.ini is changed during execution, will that affect the currently running comskip instance?

Not that I'm planning on doing this, but I have to think about protecting my app from the situation if it were to occur and would cause complications.


Top
 Profile  
Reply with quote  
PostPosted: Sun Dec 30, 2012 11:09 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3215
The ini file is only read once before the start of processing.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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