Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

Is there any way that I can automatically cut a video based on a sound.

I have a couple of long sections of video that contain videos. I would like to remove the parts of the video that do not fall between two whistles, much like football game footage.

The video format is mp4. I am looking for some type of software that would allow me to do this.

I have not had any luck with automatic video spliters because they will only split based on file size. Currently, I am cutting this footage by hand using iMovie.

share|improve this question
1  
So something that will look for waveform spikes? Or a certain frequency? I do not know how you would aquire this, especially not if it needs to be automated. Not unless the sounds are distinct and no other recorded audio is very similar? –  burnso Dec 11 '12 at 17:10
add comment

2 Answers

I haven't done this myself, but I think it's quite doable.

First, you'd need to setup a ffmpeg script to demux the video into audio and video portions. Then, you'd need to apply a script that will analyze the audio file. Silence is easier to automatically detect in an audio file, assuming that you can produce the silence on site to mark the intervals (e.g. disconnect the mic for 2 seconds). You'd need to know some programming, but with something like Python it would be quite easy.

Finally, with the output of the script as times to cut between, feed this into ffmpeg again on the original file, using the -ss -t command.

share|improve this answer
add comment

if you have After Effects, there is a script for that. You essentially import your footage into AE, and then run the script. Here is a link for more information:

Automatically detects edits in footage. To use it you simply select a footage layer in a comp, set the work area to the region you'd like to find edits and tell Magnum to go to work!

share|improve this answer
    
I don't see how this software uses the audio to detect scenes. Is that a feature that is not shown in the video? –  Bart Arondson Dec 16 '13 at 17:52
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.