Page 1 of 1

not using GBPVR

Posted: Tue Dec 06, 2005 3:26 pm
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.

Posted: Wed Dec 07, 2005 2:36 am
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"

Posted: Wed Dec 07, 2005 9:23 am
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

Posted: Thu Dec 08, 2005 1:29 pm
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

Posted: Thu Dec 08, 2005 3:11 pm
by erik
The commands are


comskip filename.mpg
comclean filename.mpg

Posted: Thu Dec 08, 2005 5:26 pm
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

Posted: Fri Dec 09, 2005 1:32 am
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.

Posted: Tue Dec 13, 2005 5:06 pm
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

Posted: Tue Dec 13, 2005 10:06 pm
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.

Posted: Tue Dec 13, 2005 10:21 pm
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

Posted: Tue Dec 13, 2005 10:26 pm
by erik
Make sure you enclose the name of the mpeg file in double quotes whenit contains spaces.

Posted: Wed Dec 14, 2005 10:09 pm
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

Posted: Wed Dec 14, 2005 10:23 pm
by erik
Add after comclean the two commands

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