Comskip 0.79 build 36: Added DVRCut output format (1 Viewer)

Ralph

Retired Team Member
  • Premium Supporter
  • May 13, 2005
    692
    8
    Germany
    Germany Germany
    I use the comskip/show analyzer with MCE 2005. I don't use it to cut out the commercials right now, just skip them.

    In MCE you have the ability to have automatic jump and manual jump through commercials. The "up arrow" turns on automatic jump and the "down arrow" turns it off. The "right arrow" jumps past the commercials and the "left arrow" jumps back.

    The way I understand that it works is: show analyzer analyzes the show and looks for the broadcast logo. It outputs an xml file with times/position in the file of the commercials. Comskip then reads the xml and jumps to these points in time. So far I have almost no problems with comercial jumping. The most "problems" I have had are station commercials that put the logo in the corner. Such as a commercials for "news at nine" and it has the channel logo.

    Mind you I am useing this in the States and 99% of my channels have a corner logo.
    I've MCE2005 also running on my machine and would like to test it.
    I didn't know that MCE2005 can skip commercials files?
    What output format do I have to enable at comskip?

    Regards
    Ralph
     

    erik1958

    Portal Pro
    January 28, 2006
    100
    7
    wishywashy said:
    I use the comskip/show analyzer with MCE 2005. I don't use it to cut out the commercials right now, just skip them.

    In MCE you have the ability to have automatic jump and manual jump through commercials. The "up arrow" turns on automatic jump and the "down arrow" turns it off. The "right arrow" jumps past the commercials and the "left arrow" jumps back.

    The way I understand that it works is: show analyzer analyzes the show and looks for the broadcast logo. It outputs an xml file with times/position in the file of the commercials. Comskip then reads the xml and jumps to these points in time. So far I have almost no problems with comercial jumping. The most "problems" I have had are station commercials that put the logo in the corner. Such as a commercials for "news at nine" and it has the channel logo.

    Mind you I am useing this in the States and 99% of my channels have a corner logo.
    Could you post an example of such a XML file?
     

    ASiDiE

    Retired Team Member
  • Premium Supporter
  • January 14, 2005
    902
    5
    USA
    I just went home and watched a episode of the family guy I recorded. I watched the video without the comericals... Comskip cut out the comericals so good that I thought I was watching the episode I downloaded last night. (all edited and ready to go) I am very impressed. I am hoping that we can get something like wishywashy is talking about in MCE.

    KEEP UP THE GOOD WORK!
     

    wishywashy

    Portal Pro
    January 31, 2005
    495
    13
    Hill AFB, UT
    United States of America United States of America
    This is an example of the xml file for Criminal Minds:

    <?xml version="1.0" encoding="utf-8"?><root><commercial start="229.3291" end="417.3502666666667" /><commercial start="978.0771" end="1191.2233666666666" /><commercial start="1773.5384333333334" end="1930.7288" /><commercial start="2559.5236333333332" end="2782.6799" /><commercial start="3045.1421" end="3167.7646" /><commercial start="3480.9775" end="3778.3078666666665" /> </root>"


    Ralph look here for a guide and the files:
    http://thegreenbutton.com/forums/thread/99008.aspx

    **Note** I only have this working with recorded shows. It may work in timeshifting, but not for me.
     

    mdsflyer

    Portal Pro
    November 14, 2005
    283
    6
    New Zealand New Zealand
    Hi again, more news on the 2 issues i am currently experiencing

    I was able to recreate again the dvrcut problem on another different large file. Interestingly i tried again and this time it again got stuck at a file size of 684,550kb, when i viewed the file it was stuck at the 0:9:50 point i.e. at the start of the first set of commercials. I tried again on the same file and tis time the file size was bigger than before but again stuck, this time it had safely negociated the first set of commercials but had got stuck at the second set. I tried on a simpsons episode which was 1.5gb (but 3 sets of commercials) and it performed perfectly. So it would appear that dvrcut is definitely having issues with cutting out commercials on my larger files.

    The second problem i mentioned before with commercials being missed from certain files relates to dvr-ms files which i have which are from my dvb-s card. (the boston legal and simpsons samples were recorded from a hauppauge pvr150). When comskip runs on these files i get a lot (like a 4mb logfile full) of inconsistent frame errors here is the start of the log file

    ################################################################
    Generated using Comskip 0.79.36
    Time at start of run:
    Tue Apr 25 11:02:57 2006
    ################################################################
    Mpeg: tv1.dvr-ms
    Exe comskip.exe
    Logo: tv1.logo.txt
    Ini: comskip.ini

    Detection Methods to be used:
    1) Black Frame
    2) Logo - Give up after 2000 seconds
    3) Fuzzy Logic
    4) Aspect Ratio


    ComSkip throttles back from -0001 to -0001.
    The time is now 1102 so it's full speed ahead!

    unknown asf object (not loaded)
    unknown asf object (not loaded)
    cannot read one asf object
    found 2 streams
    added new video stream(ID:1)
    unknown stream(ID:2), assumed to be AudioMPEG2 sound at 48 khz
    Bad audio at frame 0

    First Frame
    Frame: 1 MinY: 282 MaxY: 286 Ratio: 0.00

    Frame 2 - Black frame with brightness of 0,uniform of 242 and volume of 8979687
    Audio PTS jumped 1 frames at frame 4, repairing timeline
    Video PTS jumped 1 frames, repairing timeline
    Resizing scene change array to accomodate 2000 frames.
    Video PTS jumped 2 frames, repairing timeline
    Video PTS jumped 1 frames, repairing timeline
    Video PTS jumped 2 frames, repairing timeline
    Video PTS jumped 1 frames, repairing timeline
    Audio PTS jumped 2 frames at frame 19, repairing timeline
    Video PTS jumped 5 frames, repairing timeline
    Audio PTS jumped 10 frames at frame 179, repairing timeline
    Video PTS jumped 6 frames, repairing timeline

    Looking For Logo in frames 25 to 1250.
    Edge count - 1175 Percentage of screen - 0.77, Check: 0

    Looking For Logo in frames 50 to 1275.
    Edge count - 1176 Percentage of screen - 0.77, Check: 1

    Looking For Logo in frames 75 to 1300.
    Edge count - 1181 Percentage of screen - 0.77, Check: 2

    Looking For Logo in frames 100 to 1325.
    Edge count - 1185 Percentage of screen - 0.77, Check: 3

    Looking For Logo in frames 125 to 1350.
    Edge count - 1237 Percentage of screen - 0.77, Check: 4

    Looking For Logo in frames 150 to 1375.
    Edge count - 1223 Percentage of screen - 0.77, Check: 5
    Doublechecking frames 150 to 1375 for logo.
    Logo present in frame 1275.
    Logo present in frame 1300.
    Logo present in frame 1325.
    Logo present in frame 1350.
    Logo present in frame 1375.
    Logo present in frame 150.
    Logo present in frame 175.
    Logo present in frame 200.
    Logo present in frame 225.
    Logo present in frame 250.
    Logo present in frame 275.
    Logo present in frame 300.
    Logo present in frame 325.
    Logo present in frame 350.
    Logo present in frame 375.
    Logo present in frame 400.
    Logo present in frame 425.
    Logo present in frame 450.
    Logo present in frame 475.
    Logo present in frame 500.
    Logo present in frame 525.
    Logo present in frame 550.
    Logo present in frame 575.
    Logo present in frame 600.
    Logo present in frame 625.
    Logo present in frame 650.
    Logo present in frame 675.
    Logo present in frame 700.
    Logo present in frame 725.
    Logo present in frame 750.
    Logo present in frame 775.
    Logo present in frame 800.
    Logo present in frame 825.
    Logo present in frame 850.
    Logo present in frame 875.
    Logo present in frame 900.
    Logo present in frame 925.
    Logo present in frame 950.
    Logo present in frame 975.
    Logo present in frame 1000.
    Logo present in frame 1025.
    Logo present in frame 1050.
    Logo present in frame 1075.
    Logo present in frame 1100.
    Logo present in frame 1125.
    Logo present in frame 1150.
    Logo present in frame 1175.
    Logo present in frame 1200.
    Logo present in frame 1225.
    Logo present in frame 1250.
    890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345
    43:
    44:
    45:
    46:
    47: ---------- ------- -------- -----------
    48: -------------- --------- -+------- ---------------
    49: ---+++++---+++++--||+++--+++++ ||++----+++| --++++++---+++++--
    50: --++++--------++++++++++---+++++ |+++----+++|+++++++-------++++++
    51: +++++--- -+++++|||| ++++| ||||+-- -+||++++++-- --+++++
    52: ++++++ -- -+++|||| |++++|||||| |||++++-- ------ -++++|
    53: |+++++ ------ -+-++|| |++++||||| | |++++- ------- |+++||
    54: |+++++ -----+- -+-| ++++||+|| +++- ++++++++|| |++||
    55: |+++| +++++-++|| - ++++|+|| -- ||++++-+++|| |||||
    56: |+++| |++++--++|| - +++||| -- ||++----++|| |||||
    57: ----++++- -||+++-- +|| ------- - ----++++++----- --- --++++----++++---+++++-------------- ----
    58: |++++---+|++----++++------------- ---+-+-+------ ----------------- |||+| ----------------------
    59: -- ----- ||||--- - ----- - - -------------- --------------------------------------- ----
    60: |-+----- |||----++++----------------------------- -------------------- ------------------------
    61: | | |||
    62: | |||| | | -----
    63: | +|-- | ---- --
    64: ||-- -- - --- ----- -
    65: -- ||| - ----------
    66: - --- ||
    67: |- |
    68: | |
    69: ---------- - ----+|||
    70: - ------ -- -- ---- -
    71: -- ----- -- -- - -- -- --
    72: ------- -- ----- -
    73:
    logoMinX=578 logoMaxX=685 logoMinY=43 logoMaxY=73
    ******************* End of Logo Processing ***************
    Video PTS jumped 1360 frames, frame numbers may be incorrect
    Video PTS jumped -1378 frames, frame numbers may be incorrect
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Audio PTS jumped -4 frames at frame 1364, audio may get out of sync
    Video PTS jumped -5 frames, frame numbers may be incorrect
    Inconsistent frame numbers

    First Frame
    Frame: 1 MinY: 58 MaxY: 518 Ratio: 1.57
    Audio PTS jumped -1369 frames at frame 0, audio may get out of sync
    Video PTS jumped -1 frames, frame numbers may be incorrect
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 1 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 1 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 2 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 1 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 1 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 2 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Audio PTS jumped 1 frames at frame 22, repairing timeline
    Video PTS jumped 4 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Video PTS jumped 1 frames, repairing timeline
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Inconsistent frame numbers
    Audio PTS jumped 1 frames at frame 71, repairing timeline
    I agree with the others about the future of this potential plugin, surely one of the most crucial areas. I hope the above gives you some food for thought. Thanks m.[/img]
     

    mdsflyer

    Portal Pro
    November 14, 2005
    283
    6
    New Zealand New Zealand
    I was able to resolve the second problem by tuning the comskip ini file, i now use detect method 255 and have dropped the logo threshold down to 0.15, those two changes made the biggest difference as the logos used over here are a fairly dim white and frequently lost against a white background. So now just to get dvrcut to behave with large dvr-ms files and i think i'll have a working solution for this shortly. I intend to use dirmon and pvrscheduler to wake the computer up at night, run a batch file that uses comskip then dvr-ms and replaces the original recordings in the recorded tv folder. By the way if i use dvrcut and specify the same output name as input it just crashes. It would be handy if that didn't happen.

    I hope this information is useful to you, if not just let me know and i'll cease and desist!

    :D

    Cheers m.
     

    erik1958

    Portal Pro
    January 28, 2006
    100
    7
    mdsflyer,

    I found another reason for the inconsistent frame numbers but can you upload the first say 50MBytes of the file producing this error?
    It will help me testing the solution.
    PM me for the upload details if needed.

    DVRCut is a simple hack I made, nothing fancy. I prefer if someone else with C# skill completes it to whatever you guy's need.
    I will post the source and everything needed on my server.
    Look for DVRCutsrc.zip
     

    erik1958

    Portal Pro
    January 28, 2006
    100
    7
    For thos that know comclean I made a comcleandvr that works like comclean but it works on dvr-ms file.

    Internally it uses dvrcut.

    Download comcleandvr.zip from my server, everything is in the zip file.
     

    Ralph

    Retired Team Member
  • Premium Supporter
  • May 13, 2005
    692
    8
    Germany
    Germany Germany
    For thos that know comclean I made a comcleandvr that works like comclean but it works on dvr-ms file.

    Internally it uses dvrcut.

    Download comcleandvr.zip from my server, everything is in the zip file.
    Perfect!
    Yesterday, I just spent couple of hours to get this work, too. :?
    And I even called it comcleandvr.
    I will download your version and will see if we do it the same way. :lol:

    Thanks again for all your efforts :!:
    Ralph
     

    judolphin

    Portal Member
    August 31, 2007
    8
    0
    United States of America United States of America
    Ok erik, 2 issues for me now, i've now tried this on a bigger file (3GB and 1 hour) the comskip produces a bat file just fine but when i run dvrcut as you described above it starts to create the clean file but progresses no further than 684,550K (or thereabouts) the task manager does not show the programme as not responding an indeed it will close no problem, but the outputted file will not play, it is way too small anyways. Is there an issue with dvrcut and large files? The other problem was on my original tester file of 20mins and 2 ad breaks that it would remove the first of the ad breaks but not the second. This was despite the bat file having start/stop then start/stop times listed. Any ideas?
    Its difficult for me because I have not been able to test myself as my development machine does not run XP.
    Anyone else with the same experience?
    I know this is a dead thread... but yes, I have the exact same experience with a 2 GB dvr-ms file.
     

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

    OP Similar threads Forum Replies Date
    B Comskip quit running after recording finishes. Skins and Plugins Installer (MPEI) 1
    M General TVE 3.5 VS2019 - build discussion TV Engine 50
    morpheus_xx [Help Me!] Build issues on TeamCity MediaPortal 2 1
    framug 1.24.0 1.25.0 pre : problem with build ? 1.24 Pre Release 89
    doskabouter Build errors MediaPortal 1 9
    doskabouter Building TVPlugins MediaPortal 1 17
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    wizard123 [solved] MP1 Build help MediaPortal 1 21
    morpheus_xx Test builds of MP2.3 WiP, x64, Nereus and more... MediaPortal 2 44
    T No TV after updating Windows 10 to latest Version 1903 / OS build 18362.175 (logs attached) General Support 2
    N [Question] How come when I build WIP_2.2.1 the logged version number is 2.1.1711.10774? MediaPortal 2 1
    N [Question] Build troubles MediaPortal 2 6
    Stéphane Lenclud [fixed] Core DLL not building from Visual Studio MediaPortal 1 2
    J Clock speed vs multi-core CPU's Can MediaPortal benefit from multi core cpu's? General 0
    J Recorded TV to NAS no longer working after Windows build 1803 1.19 6
    DHosein Adding Custom Artwork? My TVSeries 3
    raffe [TV] Option for adding IPTV channels without checking Improvement Suggestions 0
    Rob Hexenmeister Navigation problems adding menu buttons to EPG General Support 1
    BrownGhost MP-TVSeries, Failed to save xml to cache, and not adding any info to tvseries from tvdb My TVSeries 4
    G How best to get cover art for tracks to show up on the Audio Menu (Latest Added, Unplayed)? General 9
    Neoculture "Recently Added" option My TVSeries 8
    doskabouter No guide info added due to a MYSQL deadlock Electronic Program Guide 1
    morpheus_xx [WiP] Adding 64 bit support to MP2 MediaPortal 2 15
    Hawkeye Changes to last added view Feature Requests 0
    P Media portal not adding all TV series General 2
    Similar threads

























    Top Bottom