MP-4210 Live Commercial Skip (1 Viewer)

sccrgoalie1

Portal Pro
September 12, 2013
109
165
34
United States of America United States of America
Please help test out live commercial skip detection for Media Portal 1. Live Commercial Skip detection uses .edl files, so we'll need to edit our comskip.ini file to make sure we get the right kind of files. This maintains legacy support of .txt commercial files as well.

1. Find your comskip.ini file and open it in notepad or similar. Edit the line output_edl=0 to output_edl=1 and update live_tv=0 to live_tv=1.
2. If you use Comskip launcher make sure you've set when to start as Recording Start
3. In C:\Program Files (x86)\Team MediaPortal\MediaPortal\ rename MediaPortal.exe to MediaPortal.exe.old and paste the attached MediaPortal.exe file in that folder
4. In C:\Program Files (x86)\Team MediaPortal\MediaPortal\ rename Core.dll to Core.dll.old and paste the attached Core.dll in that folder
5. If you use RSTP you'll need to stop the TVService and then go to the C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\ and rename the TVService.exe to TVService.exe.old and paste the attached TVService.exe in that folder. Restart the TVService
6. If you use RSTP you'll need to go to C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows and rename TVPlugin.dll to TVPlugin.dll.old and paste the attached TVPlugin.dll in that folder.
7. You'll want to configure some buttons to use the new actions to give you better control of Commercial Skipping. This is done in the Media Portal Configuration
a. ACTION_TOGGLE_AUTO_COMMERCIAL_SKIP - Allows you to toggle auto commercial skipping on and off during a show. This is necessary for the next action to work.
b. ACTION_STEP_BACK_PREVIOUS_JUMP - Allows you to skip back to the place you jumped from, which is very useful for an errorneous detection. Make sure you toggle off auto commercial skip first otherwise you'll jump again right away.

Let me know how it goes!

** EDIT **
Updated the branch with current master.
Updated installer based on 1.9 Pre Release can be downloaded here >> HERE <<
 

Attachments

Last edited by a moderator:

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,434
    10,256
    France
    France France
    Country flag
    Hi,

    I forget to upload log about my issue with you branch (when changing channel, on new channel i have old timishift file from previous channel or directly the old channel)
    It like i have a (i don't find the word in english lol) offset maybe of one channel.
    For example :
    Tune CH1 -> black screen -> Tune CH2 (Here CH1 is displayed) -> Tune CH3 (Here CH2 is displayed)
    Or
    Tune CH1 -> CH1 is displayed -> Tune CH2 (CH1 is displayed for a while or always but most of the time CH2 appear after 30/1 min) -> etc.

    It seems to happen when i have a delay to decrypt my channel (related to my CAM or something) and then i run into those issue.
    I also notice that for Example ARTE channel (has multiple tuning and then the delay is increase when the first tuning detail failed CAM or whatever and then a second tuning detail is tuned).

    Without the branch, i didn't run into such issue. (I need to resetup the configuration with multiple tuning details to reproduce the issue and supply log).

    I think for user where the channel is decrypted directly (so FTA channel or only 1 tuning detail), we didn't run into the issue i describe :).
     

    sccrgoalie1

    Portal Pro
    September 12, 2013
    109
    165
    34
    United States of America United States of America
    Hi,

    I forget to upload log about my issue with you branch (when changing channel, on new channel i have old timishift file from previous channel or directly the old channel)
    It like i have a (i don't find the word in english lol) offset maybe of one channel.
    For example :
    Tune CH1 -> black screen -> Tune CH2 (Here CH1 is displayed) -> Tune CH3 (Here CH2 is displayed)
    Or
    Tune CH1 -> CH1 is displayed -> Tune CH2 (CH1 is displayed for a while or always but most of the time CH2 appear after 30/1 min) -> etc.

    It seems to happen when i have a delay to decrypt my channel (related to my CAM or something) and then i run into those issue.
    I also notice that for Example ARTE channel (has multiple tuning and then the delay is increase when the first tuning detail failed CAM or whatever and then a second tuning detail is tuned).

    Without the branch, i didn't run into such issue. (I need to resetup the configuration with multiple tuning details to reproduce the issue and supply log).

    I think for user where the channel is decrypted directly (so FTA channel or only 1 tuning detail), we didn't run into the issue i describe :).
    When you don't use this branch, do you turn off live commercial skip as well? This issue you describe may have nothing to do with the branch, rather it's an issue with using comskip for live detection, as more resources are required and opening and closing files takes more time.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,434
    10,256
    France
    France France
    Country flag
    I don't use comskip lol :)
    If i'm not wrong, when i revert this branch all was ok, it seems that something is done on timeshift. (trigger by this branch)
    Will provide log :)
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,466
    4,634
    45
    ::1
    Netherlands Netherlands
    Country flag
    Now this is working really nice for me with UNC paths (no RTSP).
    I started a recording (commercial was on that time) and waited about 10 minutes. Then started playback of the recording and checked the OSD, which shows a nice detection of the commercial:
    CommercialDetected.png
    After a couple of seconds it auto-skipped till after the commercial:
    CommercialSkipped.png

    Nice work!! I always record the shows and start watching 30/45 minutes later, because i HATE those commercials :)
    Now skipping is done automatically also, so nice job @sccrgoalie1 (y)

    And some time later the 2nd commercial is also detected:
    17-28-23.png :p

    Then tried to delete the recording >> Failed (obviously it's locked by ComSkip), but it did end the recording.
    10 seconds later i could manually delete it. (y)
     
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,466
    4,634
    45
    ::1
    Netherlands Netherlands
    Country flag
    Will this replace comskip? aka commercial skipping for free?? :)
    Nope, ComSkip is NEEDED for this to work properly ;)
    But since ComSkip is free (or purchased for $10++ for a lifetime), you can have it for (almost) free.
     

    krokusmtl

    Portal Member
    April 22, 2008
    14
    5
    Canada Canada
    I tried it by changing the 2 files as per the instruction. Single seat.
    When starting mediaportal.exe I get a critical error "failed to load your language!" then black screen
    MediaPortal Configuration crashes right away.

    That would awesome if we could get this to work.
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    586
    214
    Germany Germany
    Country flag
    Is there a target version for this feature to be implemented into the MePo main branch? Hilarious stuff!
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,466
    4,634
    45
    ::1
    Netherlands Netherlands
    Country flag
    Target dates are mostly listed in JIRA.
    Thread title references to the JIRA Issue key > MP1-4210
    Fix Version/s: 1.7.100 (1.8 Pre Release)

    So if all goes well and everything is tested properly, it will be included in about 3 months.

    So test and report please! :D
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    S IPTV from online m3u8 for Aussie Live TV General Support 9
    K Flickering live TV playback Newcomers Forum 3
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    torone Dritter versuch mit Mediaportal 2 Allgemeines Support- und Diskussionsforum 1
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    H random black screen live tv and videos (amended) General Support 0
    404 [solved] Live TV...video and audio freeze General Support 20
    404 How to turn off narration on live tv General 2
    Volker MP2 Rewind / zurückspulen bei Live TV funktioniert nicht Allgemeines Support- und Diskussionsforum 3
    G Occasional Black screen on Live TV and Recorded TV Watch / Listen Media 5
    G Live Tv friert ein Allgemeines Support- und Diskussionsforum 47
    U [solved] Beginner needs help recording live TV General 19
    limpwhizkid 1.22.0 Stutter and or artifact problem when recording and watching the same live tv channel 1.22 2
    rbo Fehlermeldung im Live-TV TV / Streaming 6
    R Pixellation on live TV every few seconds General Support 11
    M After a while Live TV or Recorded TV doesn't play first time General Support 9
    S [solved] Live TV subtitle issue if not using 100% font General 31
    S [solved] Live TV playing stopped General 13
    S Mediaportal 1.22 Pre-Release remote live-tv freezes MediaPortal 1.22 Pre Release 0
    H Live TV info OSD not displaying number of audio channels General Support 3
    E [solved] No Live TV in MP2.2 Client - Can TEST Successfully in "MediaPortal 2 TV Configuration" utility General 8
    D Skip to end/live during dvbip recording causes it to stop playing instead. General Support 15
    porky996t Still Unable to play Live or Recorded TV General Support 4
    Similar threads

























    Top Bottom