INTERACT FORUM

Windows => Television => Topic started by: sheppy99 on April 01, 2023, 02:49:31 pm

Title: Comskip with per channel config
Post by: sheppy99 on April 01, 2023, 02:49:31 pm
I’m trying to get Comskip to scan for ads after each recording and need to use a per channel config due to the way TV is broadcast here. The ‘artist’ tag seems to have the channel in its field so I’m trying to use that to select each channels config.
In recording options I’ve put in the run command field ‘F:\Comskip\comskip.exe’ and in command line arguments I’ve added ‘“[Filename]” —ini=F:\Comskip\config\”[Artist]”.ini’
But this doesn’t seem to work as no EDL file is produced.
What am I doing wrong?
Title: Re: Comskip with per channel config
Post by: JimH on April 01, 2023, 03:06:52 pm
Maybe the quotes around [Artist]  ?
Title: Re: Comskip with per channel config
Post by: sheppy99 on April 01, 2023, 03:27:54 pm
That’s likely the problem, but I’m not sure what it’s expecting. Is quotes around the whole arguments string more what it’s expecting? As it’s on Windows anything with spaces in it will likely need to be in quotes
Title: Re: Comskip with per channel config
Post by: JimH on April 01, 2023, 03:42:27 pm
No quotes.  I think you're trying to read a file named [Artist].
Title: Re: Comskip with per channel config
Post by: sheppy99 on April 01, 2023, 04:31:20 pm
Im trying to create a path from the artist tag. If the artist tag contains ‘2 mychannel’ I want the command line to read ‘—ini=F:\Comskip\config\2 mychannel.ini
Title: Re: Comskip with per channel config
Post by: Yaobing on April 01, 2023, 05:07:06 pm
[Filename] is the filename of the current recording file.
[Artist] is filled with the channel name.

So your idea is right.  But I don't know exactly what the syntax should be for ComSkip command line arguments.

Maybe don't put any quotes around [Artist]
Title: Re: Comskip with per channel config
Post by: sheppy99 on April 01, 2023, 05:52:16 pm
Running it from a command line I’d type
F:\Comskip\comskip.exe “full path to file to be scanned inside quotes” “—ini=F:\Comskip\config\2 mychannel.ini”
Needing the quotes is a windows thing for anything with a space in the path
Title: Re: Comskip with per channel config
Post by: sheppy99 on April 01, 2023, 08:10:06 pm
Running it from a command line I’d type
F:\Comskip\comskip.exe “full path to file to be scanned inside quotes” “—ini=F:\Comskip\config\2 mychannel.ini”
Needing the quotes is a windows thing for anything with a space in the path
Which turns out to be the way to do it. Nothing but F:\Comskip\comskip.exe in the run command box and “[Filename]” “—ini=F:\Comskip\config\[Artist].ini” in the arguments box. Note the space between the 2 arguments.
I piped everything a batch file and echoed the results into a txt file to find out exactly what was being passed from MC.