Ok, got a working copy. If anyone would like to give it a try and let me
know how well it works for your cable company. It's built against 1.7 svn.

Attached in the tarball:
tar -xvf commercialDetection.zip
src/commdetectcore.py
src/helpers/commdetectserver.py
src/video/commdetectclient.py
commdetect.patch
[EMAIL PROTECTED]:/usr/local/src/freevo-1.7# patch -p1 < commdetect.patch

You can start the server with: ./freevo commdetectserver start

After a scheduled recording has finished, it'll automatically be queued to
make a edl file generated.

You will also need to add the following to you local_conf:
REMOVE_COMMERCIALS = True

P.S. Duncan, could you take a look; i'd like to eventually get this into the
current SVN and want to know if it's upto snuff.

On 1/10/07, Justin Wetherell <[EMAIL PROTECTED]> wrote:

I'll write it against 1.7-svn but I envision it being a server like the
rss or encoding server, so only a few lines of code will need to be added to
the actual Freevo base code.

I manually editted an edl file for mencoder and the blackframes were
detected correctly (and skiped the commericals correctly), i now have to
find some sort of pattern, so I can automate the process.

On 1/10/07, Evan Hisey <[EMAIL PROTECTED]> wrote:
>
> Justin-
>    Great. which branch will it be against?
>
> Evan
>
> On 1/10/07, Justin Wetherell <[EMAIL PROTECTED]> wrote:
> > With the latest release of mplayer ( MPlayer-1.0rc1) there is a new
> video
> > filter called "blackframe". Which, as the title might give it away, it
> can
> > be run against a previously recorded mpeg and spit out the frames
> which it
> > thinks have are atleast 98% black. Mplayer also has a feature (I dont
> know
> > if it's new or not) called "edit decision list" which takes in a begin
> time,
> > end time, and action (skip or mute). Given these two features, I
> believe we
> > should be able to work commerical detection into Freevo in the near
> future.
> > I am currently working on a proof of concept at the moment and will
> release
> > a patch as soon as possible.
> >
> > Example command to find blackframes (it takes about 40 minutes for an
> hour
> > show on my cpu):
> > /usr/local/bin/mencoder -ovc lavc -nosound -vf blackframe
> > /opt/media/tv/01-08_13_00_Days_of_our_Lives.mpeg -o
> > /dev/null | grep vf_blackframe > blackframes.txt
> >
> > Which produces a file like this:
> > Pos: 252.6s   7571f ( 7%) 45.33fps Trem:  36min 345mb  A-V:0.000[803:0]
> > vf_blackframe: 7569, 99%, B (I:7562)
> > Pos: 252.6s   7572f ( 7%) 45.33fps Trem:  36min 345mb  A-V: 0.000[803:0]
> > vf_blackframe: 7570, 99%, B (I:7562)
> > Pos: 252.7s   7573f ( 7%) 45.33fps Trem:  36min 345mb  A-V:0.000[803:0]
> > vf_blackframe: 7571, 100%, P (I:7562)
> >
> > The example edl file should looks like this (0=skip, 1=mute):
> > 252.6 252.7 0
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> >
> > _______________________________________________
> > Freevo-devel mailing list
> > Freevo-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/freevo-devel
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Freevo-devel mailing list
> Freevo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-devel
>


Attachment: commercialDetection.tar
Description: Unix tar archive

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to