I am getting some thoughts together on how to implement commercial detection and skipping into MP. I have been playing with the successor to comskip called ShowAnalyzer (http://www.dragonglobal.org/). It outputs the commercials detected in a text file that contains start frame number and end frame number of the commercials. I believe by using a combination of the following:
I can skip to the end of a commercial. However I am unsure as to how to tell I am in a commercial. Is there a way to monitor frame numbers as a recorded show is being played back? Semi automatic mode would just skip to the end of the next detected commercial if a button was pressed. This I could probably do by converting the frame number to a time and use the calls above. However I would also like a automatic mode that would automatically skip the commercial frames. Are the tools to do this already in MP and I just don't see them? Or is this functionality that would need to be added? Everything I see is indexed by time, which is fine. Is there some way to get triggered at a certain point during a show playback?
I would prefer to chat about this in real time on IRC, but unfortunately I don't think I will be able to do that for about two weeks, and only on weekends due to time zone issues. However if frodo et.al. thinks this can only be discussed live, then let me know and I will try and arrange a time to meet.
Code:
g_Player.CurrentPosition;
g_Player.SeekAbsolute();
I can skip to the end of a commercial. However I am unsure as to how to tell I am in a commercial. Is there a way to monitor frame numbers as a recorded show is being played back? Semi automatic mode would just skip to the end of the next detected commercial if a button was pressed. This I could probably do by converting the frame number to a time and use the calls above. However I would also like a automatic mode that would automatically skip the commercial frames. Are the tools to do this already in MP and I just don't see them? Or is this functionality that would need to be added? Everything I see is indexed by time, which is fine. Is there some way to get triggered at a certain point during a show playback?
I would prefer to chat about this in real time on IRC, but unfortunately I don't think I will be able to do that for about two weeks, and only on weekends due to time zone issues. However if frodo et.al. thinks this can only be discussed live, then let me know and I will try and arrange a time to meet.