not using GBPVR

Here you can ask your questions on how to use Comskip for the detection of commercials. Also questions on how to remove commercials are welcome
Post Reply
Kong
Posts: 6
Joined: Tue Dec 06, 2005 3:12 pm

not using GBPVR

Post by Kong »

first of all thanks for the great work on comskip.

unfortunately my capture card is not supported by GBPVR. i can get comskip to produce a text file with the relevent information by calling it from the command-line.

but im not sure how to get comclean to cut the commercials. specifically this line

Code: Select all

"c:\program files\cuttermaran\cuttermaran.exe" "%~dpn1.cpf"
in the batch file. i mean, when in the process is a .cpf supposed to be generated?

any help would be great

KoNG.
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Comskip can create all kind of output files for various types of commercial cutters.
If you look in the comskip.ini file you will see them all listed.

output_default=1 ; For the default .txt file useable by comclean.
output_videoredo=0 ; For video Redo
output_cuttermaran=1 ; For Cuttermaran, as used in comclean2, slow but good, and free
output_womble=0 ; For Womble MPEG-VCR
output_mpgtx=0 ; To create a bat file that can run mpgtx, the fastest way to cut, also used in comclean
output_edl=0 ; For mencoder and mplayer, free conversion to DiVx and AVI
output_zoomplayer_chapter=0 ; For zoomplayer
output_zoomplayer_cutlist=0 ; For zoomplayer

Set the one you need to 1 as I have done for you above.

Did you try comclean i.s.o. comclean2?

You can run postprocessing.bat as found in the comskip distribution zip file to identify and remove the commercials

Or you can do is by executing the two commands below

comskip "\path\filename.mpg"
call comclean "\path\filename.mpg"
Kong
Posts: 6
Joined: Tue Dec 06, 2005 3:12 pm

Post by Kong »

thanks erik

i seem to have been using an old distribution without that feature _never use an old version when asking for support_ right?
ive still got to read up more on the various options, and ill do some speed testing on the weekend and let you know how i get on.

and thanks for supporting/maintaining this freeware
Ralph
Posts: 12
Joined: Wed Dec 07, 2005 11:16 pm

Post by Ralph »

Tried to use comskip and comclean the first time. And didin?t get comclean to cut out the commercials. :cry:
This is what I did, as exactly as I can remember:
Downloaded Comskip 79.08 and Comclean 0.0.6

Started Comskip to run through my mpg.-file and some txt-files were created.
When trying to run comclean through the same file a dos-promt pops up for 2 seconds: you have to choose a parameter ?i, -s, -j
and that was all.

Started comclean with parameter ?i, Comclean just copied my mpg and renamed it to chunk.mpg.
with parameter ?s nothing happened
and with parameter ?j
dos-prompt asked: chunk.mpg still exist: do you want to replace? [y/n]

But commercials were not cut out?

Has anyone an idea to get it work?

Regards
Ralph
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

The commands are


comskip filename.mpg
comclean filename.mpg
Ralph
Posts: 12
Joined: Wed Dec 07, 2005 11:16 pm

Post by Ralph »

I just tried without any paramters, but only get this dos-promt: you have to choose a parameter ?i, -s, -j :?

But nevertheless I will try again. :)

Can i define the path where the chunk.mpg should be created?

Thanks
Ralph
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

You seem to miss a vital clue.
Both comskip and comclean MUST be called with the name of the mpeg file to be processed.
You should add the path to the file name if the mpeg files are in another directory
If the path contains any spaces you MUST enclose the name in double quotes.

Example:

comclean "d:\my recordings\last night\fake.mpg"

So calling comclean without any parameters will not work.
Ralph
Posts: 12
Joined: Wed Dec 07, 2005 11:16 pm

Post by Ralph »

Hi Erik,

I?ve got it now! :lol:

Missed some vital clue, as you said:
1. forgot quotes around filename
2. tried to use mpgtx.exe and not comlean.bat :?

Now it works, and it works fine.
Thanks for the support!
First I run comskip and second I run comlean.bat to cut out commercials

What I did try now is running comskip and when it?s finished to start comlean.bat automatically.
Therefor I deleted the Rem in the last line of the postprocessing.bat to get
call comclean %1

But it didn?t work.
I copied comlean into the same folder comskip is, but it did?t work either.
Comclean wasn?t started.

Do I have to define the path of comclean.bat?
Or do I need to create a gbpvr-folder and copying comlean into that folder?
How does comlean know what file comskip was just running through?
I know something is wrong, but I don't know what?

Thanks in advance
Ralph
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

If you run comclean from the command line or from another batch file make sure the mpgtx.exe can be found.
Use the path command to display the search path.
Ralph
Posts: 12
Joined: Wed Dec 07, 2005 11:16 pm

Post by Ralph »

After 4 hours of trial and error I think I got it now.:D
Made a new batch file I start with a selected mpeg-file:
@echo off
D:\comskip79_8\comskip.exe %1
D:\comskip79_8\comclean.bat %1
:eof

comskip analyses my mpeg-file and after that comclean.bat get started to cut out the commercials.

I know the solution seems to be quit easy, but I'm new to this command line thing and I'm glad to got it work.

Thanks
Ralph
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Make sure you enclose the name of the mpeg file in double quotes whenit contains spaces.
Ralph
Posts: 12
Joined: Wed Dec 07, 2005 11:16 pm

Post by Ralph »

Hi Erik,

now it works quite fine.
Just got some questions to optimize the process for me.

Is there a special command I can use in batch file to run comskip and comclean minimized or in background.
I mean not to pop up the dos prompt?

I set delete_logo_file=1 to tidy up after finishing
But after comskip and comclean finished, i still have a .txt, .log, and .bat file.
Is there a way to delete this automaically after comlean has finished?

Regards
Ralph
erik
Site Admin
Posts: 3368
Joined: Sun Aug 21, 2005 3:49 pm

Post by erik »

Add after comclean the two commands

del "%~dpn1.txt"
del "%~dpn1.bat"
del "%~dpn1.log"
Post Reply