1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How-To use Comskip to cut out commercials via MediaPortal

Discussion in 'Tips and Tricks' started by Ralph, February 5, 2006.

  1. Ralph
    • Team MediaPortal

    Ralph Retired Team Member

    Joined:
    May 13, 2005
    Messages:
    692
    Likes Received:
    8
    Location:
    Germany
    Ratings:
    +8 / 0
    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.

    [​IMG]

    - 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:


    [​IMG]

    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

    [​IMG]

    go to Comskip,

    [​IMG]

    select your file, press enter and lay back.

    [​IMG]

    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.

    [​IMG]

    [​IMG]


    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
     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Brocklander
    • Team MediaPortal

    Brocklander Retired Team Member

    Joined:
    September 15, 2004
    Messages:
    347
    Likes Received:
    2
    Location:
    Wellington
    Ratings:
    +2 / 0
    Home Country:
    New Zealand New Zealand
    Nice work - and you can automatically create MPEG versions of your recordings (and delete the DVR-MS origional if you want to) with AutoDVRConvert.
     
  4. Koschel
    • Team MediaPortal

    Koschel Retired Team Member

    Joined:
    April 6, 2005
    Messages:
    1,044
    Likes Received:
    34
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +36 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Does MyBurner this not automaticly, if you want to?
     
  5. infinite.loop
    • Team MediaPortal

    infinite.loop Retired Team Member

    Joined:
    December 26, 2004
    Messages:
    16,179
    Likes Received:
    3,861
    Gender:
    Male
    Location:
    127.0.0.1
    Ratings:
    +4,154 / 7
    Home Country:
    Austria Austria
    Show System Specs
    Mediaportal can also auto compress your recordings ind the backround ;)

    Thanks for the tutorial!!!
     
  6. erik1958

    erik1958 Portal Pro

    Joined:
    January 28, 2006
    Messages:
    100
    Likes Received:
    7
    Ratings:
    +7 / 0
    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.
     
  7. mzemina
    • Team MediaPortal

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Likes Received:
    13
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    erik1958 - You said in the PS
    Could you supply the URL to your forum, so we could be insured of regular updates?

    Mike
     
  8. Ralph
    • Team MediaPortal

    Ralph Retired Team Member

    Joined:
    May 13, 2005
    Messages:
    692
    Likes Received:
    8
    Location:
    Germany
    Ratings:
    +8 / 0
    Home Country:
    Germany Germany
    Hi Mike,

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

    Regards
    Ralph
     
  9. ASiDiE
    • Team MediaPortal

    ASiDiE Retired Team Member

    Joined:
    January 14, 2005
    Messages:
    902
    Likes Received:
    5
    Occupation:
    Computer Tek/Tester for MP
    Location:
    USA
    Ratings:
    +5 / 0
    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!
     
  10. erik1958

    erik1958 Portal Pro

    Joined:
    January 28, 2006
    Messages:
    100
    Likes Received:
    7
    Ratings:
    +7 / 0
  11. aggi

    aggi Portal Pro

    Joined:
    January 8, 2006
    Messages:
    64
    Likes Received:
    0
    Location:
    Berlin
    Ratings:
    +0 / 0
    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! ;)
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Like Us On Facebook

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!