Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to analyze the video and audio in an MKV or MP4 container for timestamps where the screen is blank and/or there's no audio.

I'd like to use this to generate chapter files for some video files.

How can I do this, preferably on Linux?

share|improve this question
    
Can you be a bit more specific as to what part of the FAQ I should read? I'm asking for a solution to a specific software task, not open ended, nor is it a shopping recommendation. If you feel like it belongs somewhere else, fair enough, but how about a bit of advice as to where/how I can make this a better question? –  robmathers Sep 2 '12 at 22:46
1  
I've reopened this question. It's way too specific to fall under the rules of shopping recommendations, since it doesn't appear there's a plethora of tools already available to achieve this task. In the future, it's probably advisable not to ask for "a software" to do something, but rather how to achieve what you want and let the people answering figure out the proper way, be it through a piece of software, a combination thereof, or other hacks. –  slhck Sep 3 '12 at 7:40
    
I know you can do something like this using OpenCV. I had a very basic scene detector written in Python that first sampled the top left pixel, and if it was below a certain threshold, sampled all the pixels in the image. This happens until all pixels are below the threshold, and continues until this condition isn't true anymore. I then set the "scene break" at the half-way point between these two times. I don't think OpenCV can handle audio, so it might be worth following up with an audio processing library to validate the scene breaks against volume. –  Breakthrough Sep 3 '12 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.