[mythtv-users] Commercial cuts on SMPTE color bars?

Chris Pinkham cpinkham at bc2va.org
Fri Dec 5 11:43:04 EST 2003


> So my question: can MythTV look for and cut out color bars as it does
> for commercials between black frames?

It doesn't now but could be made to with a little bit of work.  Kind of a
small-target audience though, but patches welcome...

A function would go across each frame scanning each column of video looking
for at least columns of a near-single color then with a quick transition
to another near-single color, then another, etc..  Check for whatever number
of transitions there should be and if there is the correct number then that
frame contains a colorbar.  Keep a list of when colorbars are onscreen and
flag them as commercials.

Are you trying to flag these for cutting or for playback of the original
file without commercials?  If you're cutting them out, just use the editor
to cut out the colorbar portions then transcode.

-- 

Chris



More information about the mythtv-users mailing list