How-To use Comskip to cut out commercials via MediaPortal (2 Viewers)

Ralph

Retired Team Member
  • Premium Supporter
  • May 13, 2005
    692
    8
    Germany
    Home Country
    Germany Germany
    This is a How-To for those who want to use Comskip to cut commercials out of recordings (mpeg2).
    Just select the file with your remote within Media Portal you want to get rid of commercials and Comskip will do the rest.

    --> Please visit Comskip Forum for further information to Comskip, tips and tricks optimizing Comskip results and the latest updates.

    This How-To should be a work-around until there will be an integrated Plugin for Media Portal.
    Because Erik (the maintainer of Comskip) won't support dvr-ms files we will need to wait for a Comskip integration until
    MediaPortal will switch to the new record engine using ts and ps files.
    Until then I thought some people would find this work-around helpful, too.

    This Plugin uses several Open Source and Freeware programs, to detect and cut out commercials.
    These programs are Comskip, Comclean and Mpgtx.

    I put them all together in one folder and made some default settings.


    Let's get started:

    1. Download and unzip the following file.

    Mirror 1: Comskip.zip


    2. Open comclean.bat (in the first lines you will see this):

    @echo off
    Rem comclean.bat Version 0.0.6
    Rem Adapt to your framerate times 100 (PAL=2500/NTSC=2997)
    set framerate=2500
    Rem Adapt to where mpgtx.exe can be found
    set mpgtx="C:\Programme\Team MediaPortal\MediaPortal\plugins\Comskip\mpgtx.exe"

    - Set your framerate
    - Set the path of mpgtx.exe

    Save your settings and close comclean.bat.


    3. Open MediaPortal-Setup and go to ->Plugins -> my Programs, enable and Setup My Programs.

    myprogramspsp.jpg


    - Add Child -> create a new Directory-Browser
    - Launching Application: set the path to PostProcessing.bat
    - Startup Directory: set the path to the Comskip folder
    - File Directory: set the path where your recordings are stored
    - File-Extensions: .mpg,.mpeg

    It should look something like this:


    myprogramscomskippsp.jpg


    Close My Programs and close MediaPortal Setup by clicking OK.

    Note: This Plugin cannot handle dvr-ms files!
    I recommend to convert your recordings to Mpeg2-files!
    TS-files may work, but I've never tested.



    5. Start Media Portal, My Programs

    mpmyprograms.jpg


    go to Comskip,

    ff8a7dfb.jpg


    select your file, press enter and lay back.

    88ae20ef.jpg


    A dos prompt comes up and gives you some information what it's going on.
    First Comskip will detect commercials and Comclean will cut them out using Mpgtx.

    mpcomskipdosprompt.jpg


    mpcomskipdosprompt2.jpg



    Once finished dos prompt will disappear and your original file will have "_original" added to the file name.

    A 1 hour recording took about 20 minutes to detect and cut out commercials on my machine.


    That's all...
    For me it works quit good and it's an easy way preparing my recordings before burning them to DVD.

    Special Thanks to Erik1958 and all developers worked on Comskip!

    Enjoy and have fun
    Ralph
     

    Koschel

    Retired Team Member
  • Premium Supporter
  • April 6, 2005
    1,044
    68
    Stuttgart
    Home Country
    Germany Germany
    Brocklander said:
    Nice work - and you can automatically create MPEG versions of your recordings (and delete the DVR-MS origional if you want to) with AutoDVRConvert.

    Does MyBurner this not automaticly, if you want to?
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    Brocklander said:
    Nice work - and you can automatically create MPEG versions of your recordings (and delete the DVR-MS origional if you want to) with AutoDVRConvert.
    Mediaportal can also auto compress your recordings ind the backround ;)

    Thanks for the tutorial!!!
     

    erik1958

    Portal Pro
    January 28, 2006
    100
    7
    Before you write to a dvd and even before you actually cut out the commercials it would be usefull to review the output of comskip.

    This can be done by invoking Comskip with a single parameter being the .txt file generated by a previous run of comskip analyzing an mpeg file.

    My suggestion would be:

    Convert to mpeg
    Run comskip to generate the .txt file describing where the commercials are.
    Run comskip on the generated .txt file to review/edit the cutpoints.
    If happy, write the new cutpoints ('W'), exit comskip and start comclean.

    PS
    I saw you made a new distribution combining comskip and comclean.
    No problem, but make sure someone follows my forum to ensure regular updates.
     

    mzemina

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    erik1958 - You said in the PS
    "...make sure someone follows my forum to ensure regular updates."

    Could you supply the URL to your forum, so we could be insured of regular updates?

    Mike
     

    Ralph

    Retired Team Member
  • Premium Supporter
  • May 13, 2005
    692
    8
    Germany
    Home Country
    Germany Germany
    mzemina said:
    erik1958 - You said in the PS
    "...make sure someone follows my forum to ensure regular updates."

    Could you supply the URL to your forum, so we could be insured of regular updates?

    Mike

    Hi Mike,

    it's in the 3rd line of this tutorial.

    Regards
    Ralph
     

    ASiDiE

    Retired Team Member
  • Premium Supporter
  • January 14, 2005
    902
    5
    USA
    Going through the setup right now. I am downloading the file and noticed you need to put in a code and wait 45 seconds. WHO HAS THE TIME FOR THAT?!?! Here is a direct link:

    The File below contains Comskip .79 build 23 and and comclean 0.0.6

    DIRECT LINK UPDATED COMSKIP.ZIP

    Also I found that you left something out. When setting up my programs a user will need to Set the start up directory. You have something in there in your screen shot but you never tell us to add it in there. I was getting errors without the comskip directory in there.

    Everything else looks good. I think after I run one test and I know it's working, I am going to go back in there and turn the window-style to Hidden. Nobody really wants to see a dos window!
     

    erik1958

    Portal Pro
    January 28, 2006
    100
    7

    aggi

    Portal Pro
    January 8, 2006
    64
    0
    Berlin
    Home Country
    Germany Germany
    Also I found that you left something out. When setting up my programs a user will need to Set the start up directory. You have something in there in your screen shot but you never tell us to add it in there. I was getting errors without the comskip directory in there.

    i think thats the directory, where the comskip.exe is in!
    cause of his definition: set mpgtx="C:\Programme\Team MediaPortal\MediaPortal\plugins\Comskip\mpgtx.exe"

    i will try it this evening! ;)
     

    Users who are viewing this thread

    Top Bottom