Hallo

> I once wrote a filter for mplayer that searched for black frames.  The
> idea was to find the 1 or more frames that most frequently sit between
> "content" and the commercials.
Have you also taken a look at the lav2yuv secenlist feature ?
There lav2yuv splits the inputfile into several scenes. Where is uses a
similair approach.

That feature is used in the LVS in the Edit video tab. 

> Now it struck me that given the format of mjpeg streams, it's really not
> necessary to decode each frame before you decide it's not a "black
> frame" and because subsequent frames do not depend on previous frames
> (as they do in the likes of an MPEG stream), the theory is that one only
> needs to decode enough of each frame to determine that it's not a black
> frame.  Most times this should be doable in the first few scan lines.
> This process should be quite efficient!
The first few lines are often black if you have 16:9 or a cinema movie.
You you have to take a look at the center, oft the first field or
something like that. 

> So my question is, how well does the framework of the mjpegtools match
> the theory?  Could I write a "searcher" using the framework that is
> already present in the mjpegtools suite to only decode enough of a frame
> to decide that it's not a black frame and then move on to the next
> frame?
I think you should take a look at lav2yuv, maybe it does something like
you want. So you can easy chack if it is usefull, and may be adapted. 

Search for: param.scenefile
lav2yuv.c sarting with line 133, in the CVS version. 

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to