Comskip/Comclean (1 Viewer)

Nightmare77

Portal Pro
July 5, 2005
531
1
Canberra
Home Country
Anyone have a working version of Comskip/Comclean with the new tv engine, i haven't been able to configure comskip/comclean yet, and was wondering if anyone has managed to do it, if they have is it possible to get the ini file from the comskip folder to help me on my way. :)
 

luksmann

Portal Pro
November 10, 2005
91
2
36
Home Country
Austria Austria
I actually have a working comskip solution, but not with the new TV-Server.

My solutions works with the myPrograms plugin and deletes commercials in all .mpeg and dvr-ms recordings.

Send me a PM if you need further information!

Greets, Luksmann
 

Ralph

Retired Team Member
  • Premium Supporter
  • May 13, 2005
    692
    8
    Germany
    Home Country
    Germany Germany
    I actually have a working comskip solution, but not with the new TV-Server.

    My solutions works with the myPrograms plugin and deletes commercials in all .mpeg and dvr-ms recordings.

    Send me a PM if you need further information!

    Greets, Luksmann

    Hi Luksmann,

    what program do you use for cutting dvr-ms files automatically after comskip has detected the ads?
    Is it the dvr.ms-cutter from Comskip-Page? 'cause this is not working on my machine.

    Regards
    Ralph
     

    luksmann

    Portal Pro
    November 10, 2005
    91
    2
    36
    Home Country
    Austria Austria
    It is dvrcut from the comskip-page.
    You have to open the comskip.ini and set output_dvrcut to 1

    i got as far as that but thant I encountered a few problems.

    what's most imporant is that you have to put all the comskip files into your user directory (C:/Documents and Settings/username) or comskip and dvrcut won't work.

    you'll also have to unzip all the dvrcut files into your recordings folder. for me that's
    e:/recordings - the files have to be in exactly the same directory as your recordings - no subfolders allowed.

    than you'll have to edit your postprocessing.bat

    my postprocessing.bat now looks like this:

    comskip %1 /opens comskip; %1 is the full name of the recording.

    "%~dpn1.bat" /comskip creates a .bat file, named after the input file. the content of this file is something like dvrcut "full name of the recording" xx:xx:xx and so on. this line open the .bat file. no matter where it is located (which solves the drive letter problem)

    del "%~dpn1.txt
    del "%~dpn1.log"
    del "%~dpn1.bat"
    move "%~dpn1.dvr-ms" "%~dpn1_original.dvr-ms"
    move "%~dpn1_clean.dvr-ms" "%~dpn1.dvr-ms" /the three del commands clean up all the comskip logs. the move commands rename the original recording into recordingname_original.drv-ms and the recordingname_clean gets renamed to recordingname, which solves most problems with the MP tv-recordings database.

    so my finished postprocessing.bat looks like this:

    @echo off

    comskip %1

    "%~dpn1.bat"

    del "%~dpn1.txt
    del "%~dpn1.log"
    del "%~dpn1.bat"
    move "%~dpn1.dvr-ms" "%~dpn1_original.dvr-ms"
    move "%~dpn1_clean.dvr-ms" "%~dpn1.dvr-ms"

    i hope my solution works for you! if you experience any further problems feel free to pm me!

    regards, luksmann
     

    Azazyel

    Portal Member
    February 17, 2007
    18
    0
    Home Country
    Off topic, but did you use 'move' instead of rename because you got errors with rename, or because you're Linux/Unix savvy? Or did you just copy it from someone else?
     

    luksmann

    Portal Pro
    November 10, 2005
    91
    2
    36
    Home Country
    Austria Austria
    I never did batch file programming so I read some online tutorials.
    the first command i found which matched my requirements was "move" - so I used it ;)

    greets, luksmann
     

    erik1958

    Portal Pro
    January 28, 2006
    100
    7
    I assume DVRCut could be anywhere in the PATH.
    That is, in the current directory, or in the windows system directory or in the windows directory.
    You can add directories to the path.
    To find you where your PATH is open a cmd.exe window and type
    path
    Or you could set in your comskip.ini where dvrcut can be found
    change
    dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
    to
    dvrcut_options="d:\\path\\to\\dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
    Make sure to use double backslash for the path to dvrcut (needed because of the escaping)

    I also assumed you had to use
    call "%~dpn1.bat"
    instad of
    "%~dpn1.bat"
    but its good to hear its working!
     

    luksmann

    Portal Pro
    November 10, 2005
    91
    2
    36
    Home Country
    Austria Austria
    Works just fine without the "call" command...

    but thanks for the information about the PATH problem!

    greets, luksmann
     

    Users who are viewing this thread

    Top Bottom