[mythtv] Getting started with real-time commercial detection

Robert S. Grimes rsg at alum.mit.edu
Fri Jun 16 21:38:55 UTC 2006


Thanks for the feedback!

> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org
> [mailto:mythtv-dev-bounces at mythtv.org]On Behalf Of Chris Pinkham
>
> A few issues.  I don't think that the flagger currently gets run on LiveTV
> recordings.  I have a note in my TODO to look into this but
> haven't had time
> lately.  It's a matter of looking into tv_rec.cpp and scheduling a flagger
> job if the user has realtime flagging turned on.  There shouldn't
> be a need to
> check the 'transcode after flagging' setting because we shouldn't
> be transcoding
> LiveTV programs anyway.
Okay, great pointers.

>
> The issue is that the flagging accuracy for the last part of the video
(ie,
> near realtime) is not really accurate.  We don't know how long the current
> segment is because we haven't seen the end of it
> (because it hasn't been recorded yet) so we don't know whether it
> is a commercial or not.
I'm assuming I'll be watching a delayed stream, and that's fine with me, so
I don't think this will be a problem.

> That means you'd have to introduce a bunch of logic in the player to
> analyze and keep track of the skip list(s) to know what state the volume
is
> in, was in, and should be in.
Yeah, I'm aware of this...

>
> Muting or lowering the volume while playing back a non-live
> recording is easy,
> you just have to have the player (ie, NVP) change the volume when it would
> normally auto-skip and revert the changed volume when the
> commercial is over.
> This kind of defeats the purpose of flagging though, because if
> you can do that,
> then why not just skip the commercial to begin with.
Can't really skip if you're in (near) real time, as there isn't anything to
skip to!

>
> So I'm not sure if you realize the scope of what you were
> thinking.
Oh, I am pretty aware of the scope, to be sure, but thanks for checking my
sanity!


Chris, thanks for all this info.  I know there's plenty of work in this, and
I was just looking for some guidance while getting familiar with a rather
large body of code.  You've provided much valuable info, and I am grateful!

Take care, and have a great weekend!
-Bob


More information about the mythtv-dev mailing list