[FFmpeg-user] Scene detection

Boštjan Strojan bostjan.strojan at gmail.com
Thu Mar 1 15:26:58 CET 2012


On Wed, Feb 29, 2012 at 4:56 PM, atigian <atigian at hotmail.com> wrote:
> When I don't have an EDL, my approach is to do the scene detection during
> the encoding using keyint, min-keyint and scenecut, thus inserting a key
> frame in every scene change. Once I've encoded the file I just extract all
> key frames:
> ffmpeg -vf select="eq(pict_type\,PICT_TYPE_I)" -i myvideo.mp4 -vsync 2 -s
> 73x41 -f image2 thumbnails-%02d.jpeg
>
> I also create a text file with the timecodes of the key frames by adding:
> -loglevel debug 2>&1 | grep "pict_type:I -> select:1" | cut -d " " -f 6 - >
> keyframe-timecodes.txt
>
> And I use this file to sync the thumbnails of the scene changes with a video
> player:
> http://www.videoproductionslondon.com/blog/scene-change-detection-during-encoding-key-frame-extraction-code
> http://www.videoproductionslondon.com/blog/scene-change-detection-during-encoding-key-frame-extraction-code

Thanks, much appreciated.

b.


More information about the ffmpeg-user mailing list