Automatically cut out sections of a video delineated by a sound. 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.
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.