FFmpeg – Overlay one video onto another video?

If you just want a ffmpeg command, try ffmpeg -i input.mov -i overlay.mov \ -filter_complex “[1:v]setpts=PTS-10/TB[a]; \ [0:v][a]overlay=enable=gte(t\,5):shortest=1[out]” \ -map [out] -map 0:a \ -c:v libx264 -crf 18 -pix_fmt yuv420p \ -c:a copy \ output.mov This starts the overlay at 5 seconds with the overlaid video start point being 00:15. setpts=PTS-10/TB is setpts=PTS+(overlay_delay-video_trim_in)/TB overlay=enable=gte(t\,5) is … Read more

Image retrieval system by Colour from the web using C++ with openframeworks

As I mentioned in my comment, it’s a matter of converting from RGB colourspace to Lab* colourspace and using the euclidean distance to the average colour of the image from the database. Here’s a basic demo: #include “testApp.h” //ported from http://cookbooks.adobe.com/post_Useful_color_equations__RGB_to_LAB_converter-14227.html struct Color{ float R,G,B,X,Y,Z,L,a,b; }; #define REF_X 95.047; // Observer= 2°, Illuminant= D65 #define … Read more