[FFmpeg-user] Find Change from Black and White to Color Frames

Bill Brazeal bill at billbrazeal.com
Sun Feb 8 03:44:17 CET 2015


I would like to be able to automatically search through a video file and find the point at which the video changes from black and white to color.  This is a video file obtained by a security camera that the video is black and white when its dark outside and then it changes to color when there is enough light.  I would like to automatically trim out the black and white frames leaving only the color.  So I need to be able to find the point at which the video changes from black and white to color (morning), then again from color to black and white (evening).  Is there any way to do this with ffmpeg?

It has been suggested that I might be able to use the signalstats filter to do this.  I am very much a novice at using ffmpeg so if someone could provide a good example of how to do this, that would be very much appreciated.

Thanks,

Bill

 <http://billbrazeal.com/>	 <mailto:bill at billbrazeal.com>
 <mailto:bill at billbrazeal.com>	 <https://twitter.com/#!/billbrazeal>	 <https://www.facebook.com/billbrazeal.public>	 <http://www.linkedin.com/pub/bill-brazeal/35/688/baa>	 <skype:bbrazeal?call>	 <http://www.youtube.com/user/bbrazeal1>	 <http://feeds.feedburner.com/billbrazeal/LatestBlogs> <mailto:bill at billbrazeal.com>


More information about the ffmpeg-user mailing list