Skip to main content

Detect identical & black frame in video with ffmpeg?

Thumbnail creation is a very needed feature for any social networking site. Obviously, ffmpeg is the ideal solution for generating thumbnail.

Problem-1: Detecting identical thumbnails


Fortunately, we have a good solution--libpuzzle. It would be ideal to have a filter in ffmpeg for that.

Problem-2: Detecting black/dark frames


I'm still keenly looking for a solution tied up with ffmpeg. When Google turned no help, Heleena (my wife) solved it by calculating average luminance value of the frame and ignoring the frames based on certain preset threshold value--which worked better at that time.

Comments

Popular posts from this blog

Humble Award - Dr. A.N. Sreevatsan

Dr. A.N. Sreevatsan , ENT specialist located in Adyar, Chennai is one of the gems available in medicines. No assistants in his consulting room and he'd take at least 15mins for every patients. So far I have referred many and all are happy with his approach. Every wannabe doctor should visit him personally to understand his approach. I wish him to be more famous than now. Update (2010-11-21) : Added link to Google Map Keywords : Sreevatsan, Srivatsan, ENT, Adyar, Chennai, Hospital, Doctor

Solved: "Ports" Tab Not Visible in VS Code (WSL2)

None of the solutions I found on Reddit or GitHub worked, and most of the related GitHub issues were locked. So I'm documenting this here for future reference. Problem When using WSL2 in Visual Studio Code, the Ports tab—needed to access your application in Windows browsers like Chrome or Edge—doesn't appear. Even the Ports-related options are missing from the Command Palette. Solution After a lot of trial and error, here's what worked: Run npx serve in the VS Code terminal. It will output a URL such as http://localhost:3000/ . Click the link (or use the Follow Link option). This will open the app in your default browser. You may notice that it opens on a different port (for example, http://localhost:64198 ). At this point, the Ports tab becomes available in VS Code. After this initial trigger, the Ports tab seems to remain available in future VS Code...

AI/ML in Flipkart--CTO Talk event experience

Our team has done some Machine Learning projects. When it comes to recommendation system, my favorite has been so far PredictionIO which was based on Apache Mahout (Now they have switched to Spark). I was also avidly learning Machine Learning for some time. My boss suggested me to attend the CTO Talk event hosted by OrangeScape. Its first session is “AI/ML in Flipkart” by Flipkart CTO Ravi Garikipati. As I mentioned earlier , I always had my skepticism towards these buzz words.  But, this presentation changed my perspective for good. Event The event started with welcome note by Rajesh Manickadas, Head of Engineering, OrangeScape. Then OrangeScape CEO Suresh Sambandam quickly introduced and handed over to Ravi Garikipati. Flipkart CTO Ravi Garikipati Ravi explained his journey from TCS in 1988 to IBM, Oracle, etc. He explained his earlier attempts of AI based virtual assistant for [24]7. Also, quickly connected with the audience through his remark about his connection with ...