[mythtv] Ticket #7984: Commercial break detection on H264 progressive recordings off by 2

Chris Pinkham cpinkham at bc2va.org
Wed Mar 3 04:06:19 UTC 2010


* On Sat Feb 27, 2010 at 10:16:46AM -0800, Manuel McLure wrote:
> Can you suggest a theme that does this? I tested with a few of overall
> and OSD themes and was unable to find one that gave me frame numbers.
> However, if I divide the frame numbers by 60 * 30 (for 30 fps video)
> they match up pretty close to the locations MythTV is skipping to.

I think I modified the one I used to use, the current one I use doesn't
have it, so I can't point to one specifically.

I just tested the file you sent me using current trunk and it came up with
much better numbers:

You indicated that the flag points should be at around 438 and 679
seconds.  Trunk reports the following:

2010-03-02 22:58:05.095 Merged Blank-Frame Commercial Break Map
2010-03-02 22:58:05.096     13138:4
2010-03-02 22:58:05.096     20343:5

438 seconds * 29.97fps is 13126 frames and 679 seconds * 29.97fps is
20349 frames, so it appears that the issue you are seeing was fixed
somewhere along the line, either by decoder changes or by the libavcodec
resync we had recently.

--
Chris


More information about the mythtv-dev mailing list