[FFmpeg-devel] [PATCH] lavfi/select: add scene detection.

Clément Bœsch ubitux at gmail.com
Mon Jun 4 22:27:09 CEST 2012


On Sun, Jun 03, 2012 at 12:48:57AM +0200, Clément Bœsch wrote:
> On Sun, Jun 03, 2012 at 12:07:09AM +0200, Clément Bœsch wrote:
> > On Sat, May 26, 2012 at 12:41:01PM +0200, Clément Bœsch wrote:
> > > eg: ffmpeg -i ~/samples/GoneNutty.avi -vf scale=160:120,select='gt(scene_score\,60)*gt(scene_diff\,60)',tile -frames:v 1 out.png
> > > 
> > > TODO: documentation
> > > 
> > > Based on the shotdetect algorithm.
> > > ---
> > >  libavfilter/vf_select.c |   63 +++++++++++++++++++++++++++++++++++++++++++++++
> > >  1 file changed, 63 insertions(+)
> > > 
> > 
> > New version attached.
> > 
> > Here are some random results with the threshold values given in the
> > documentation: http://imgur.com/a/icpfk
> > 
> > I'm not fond of the 2 threshold values the user need to specify, but I
> > don't see any simpler solution (except having a variable set to 0 or 1,
> > but with no threshold configuration possible).
> > 
> 
> Solved that issue with the attached patch.
> 

Pushed a slightly different version, flame me on cvslog.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120604/70ce080f/attachment.asc>


More information about the ffmpeg-devel mailing list