Re: [Freevo-devel] Commdetect server encoding problems

2007-09-16 Thread Justin Wetherell
Well, Mplayer just detects which frames are black based on percentage and threshold. My algorithm actually determines if the blackframe is the beginning of a commercial or just a cut between scenes. This is form man mplayer: blackframe[=amount:threshold] Detect frames that are (almost) completely

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-16 Thread Michael Beal
Do you know what algorithm MPlayer uses to determine if a black frame is truly a "blank frame", i.e. interleave between a bit of the program and a commercial segment? Horror film fans wouldn't like having skips in the program stream just because MPlayer disdetected a black frame... Just an odd th

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Evan Hisey
Justin- Mplayer is the latest build with patches. I found the problem with the commdect was not there but in the recordserver and the fact that mplayer neededs a *lame lib to handle any mp3 encoding. I rebuilt it with lame support and am testing that this weekend. For the Codecs, I do build windo

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
This may be a stupid question but you are using an recent mplayer version? blackframe vf is very new. Does the file libmpcodecs/vf_blackframe.c exist in your Mplayer directory? On 9/14/07, Justin Wetherell <[EMAIL PROTECTED]> wrote: > > I don't know if this will help but the blackframe C code us

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
I don't know if this will help but the blackframe C code uses the following. #include #include #include #include #include "../config.h" #include "../mp_msg.h" #include "img_format.h" #include "mp_image.h" #include "vf.h" #include "../libvo/fastmemcpy.h" #include "../postproc/rgb2rgb.h" On 9

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
Great, I use Slackware myself. Do you install all the needed codecs also or is that also a concern? On 9/14/07, Evan Hisey <[EMAIL PROTECTED]> wrote: > > Justin- > Believe it or not that is the root of the problem. I run slackware > and really don't want to have mess with a lot extra libraries.

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Evan Hisey
Justin- Believe it or not that is the root of the problem. I run slackware and really don't want to have mess with a lot extra libraries. I compile packges for use on both a freevo system and standard desktops. I personally don't like to have a lot of extra libs. hanging around if I can help it.

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
I forgot to mention! if you then want to create an editted file, you need to take a look at "class CommDetectJob:" in src/commdetectcore.py and create a new class with the same methods and submit that to the commdetect server, it will then handle running the commands. The new class should pass the

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
I know this isn't very hip these days in the Linux community but why not just compile Mplayer from source? It's not a difficult task and it only takes about an hour on most recent machines. On 9/14/07, Evan Hisey <[EMAIL PROTECTED]> wrote: > > Micheal- >MPlayer does play the EDL files. I am ju

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
I wrote the commdetect code, so any questions I can answer, I will. mplayer is run with the -vf blackframes option and outputted to a file called /tmp/blackframes.txt. The commdetect server should then analyize that file and try to determine the commericals. Once it has reached the end of the blac

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Michael Beal
Hey again, Evan... I don't use MPlayer. I like Xine. Personal preference and all... The commdetectserver may be a section of code for me to look over and see if I can't get it to do the "final cut" for us rather than rely on doing it manually. It's a thought... --- Evan Hisey <[EMAIL PROTECT

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Michael Beal
Although I have MEncoder installed, I'd rather see the commdetectserver handle the "final cut" if you will. I would think that's the actual idea behind the commdetectserver but now the question, from my point of view, is how to do it or has it been done already??? --- Justin Wetherell <[EMAIL PR

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Evan Hisey
Micheal- MPlayer does play the EDL files. I am just having issue _creating_ the EDL files. mostly becuase I seem to be having issues getitng a set of options my mplayer build likes. Evan On 9/14/07, Michael Beal <[EMAIL PROTECTED]> wrote: > So... What front end to, say, FFMPEG does handle EDL

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Justin Wetherell
mencoder can take in an EDL and produce a _new_ file without the parts defined in the EDL. I have never done it but I doubt it's very hard. On 9/14/07, Michael Beal <[EMAIL PROTECTED]> wrote: > > So... What front end to, say, FFMPEG does handle EDL files and has this > been incorporated into Freev

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-14 Thread Michael Beal
So... What front end to, say, FFMPEG does handle EDL files and has this been incorporated into Freevo 1.x?? --- Justin Wetherell <[EMAIL PROTECTED]> wrote: > Not at all, to the best of my knowledge. > > On 9/9/07, Michael Beal <[EMAIL PROTECTED]> wrote: > > > > Ok, so what about Xine?? Does Xi

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-10 Thread Justin Wetherell
Not at all, to the best of my knowledge. On 9/9/07, Michael Beal <[EMAIL PROTECTED]> wrote: > > Ok, so what about Xine?? Does Xine handle EDLs well or not at all?? > > > --- Justin Wetherell <[EMAIL PROTECTED]> wrote: > > > It doesn't actually make a "new" commercial-less file, it creates an > >

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-09 Thread Michael Beal
Ok, so what about Xine?? Does Xine handle EDLs well or not at all?? --- Justin Wetherell <[EMAIL PROTECTED]> wrote: > It doesn't actually make a "new" commercial-less file, it creates an > "edit > list". If the "edit list" file exists for a given program, Freevo > should > start playing it with

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-09 Thread Michael Beal
Had the same difficulties with a previous MPlayer/MEncoder package from Debian. The recently updated package had all this fixed. --- Evan Hisey <[EMAIL PROTECTED]> wrote: > Well testing out teh commdetect server and I am getting a -lameopts > not available failure from mencoder. First question

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-07 Thread Evan Hisey
Justin- Okay that makes more sense. It also explains why the I was having trouble figuring things out. I was looking the wrong spot. Evan On 9/7/07, Justin Wetherell <[EMAIL PROTECTED]> wrote: > It doesn't actually make a "new" commercial-less file, it creates an "edit > list". If the "edit lis

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-07 Thread Justin Wetherell
It doesn't actually make a "new" commercial-less file, it creates an "edit list". If the "edit list" file exists for a given program, Freevo should start playing it with the "-edl EditList.file" option. So, are you playing recorded content with Mplayer? If you look in the directory where your progr

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-07 Thread Evan Hisey
Justin- After a bit more reading of the encoder code, it looks like mencoder getrs called once from inside the commdetect server to create the commercial file. But it does not appear to call mencoder again to create the commercial less file. It appears to hand it off to the endocing server. IF t

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-07 Thread Evan Hisey
Justin- That is part of the problem. The other half is I am having a time finding where to change the setting in the to not use lame. Evan On 9/7/07, Justin Wetherell <[EMAIL PROTECTED]> wrote: > This is just a guess but was Mplayer/Mencoder compiled with Lame support? > > > On 9/7/07, Evan His

Re: [Freevo-devel] Commdetect server encoding problems

2007-09-07 Thread Justin Wetherell
This is just a guess but was Mplayer/Mencoder compiled with Lame support? On 9/7/07, Evan Hisey <[EMAIL PROTECTED]> wrote: > > Well testing out teh commdetect server and I am getting a -lameopts > not available failure from mencoder. First question I looked through > the commdetect source and -lam

[Freevo-devel] Commdetect server encoding problems

2007-09-07 Thread Evan Hisey
Well testing out teh commdetect server and I am getting a -lameopts not available failure from mencoder. First question I looked through the commdetect source and -lameopts is not used there. Is the file handed back to the recordserver or encodingserver for final edit? Second where can we change th