Extract audio clips from bjj sports match to create a highlights video
Process:
- Find sport match on YouTube, provide url link and set path.
- Download video in mp4 format to local computer.
- Extract an audio file from video in a wav format.
- Divide audio into energy clips throughout audio:
- Segment audio into 5 sec intervals.
- Compute short time energy for each 5 sec clip.
- Set threshold of energy spike to all audio above 90% of energy level.
- Return a dataframe with the energy level for each spike and the start and end times in the video.
- Cut the video according to the audio clips set by the df.
- Combine all clips into one highlights video for viewing.
Learning Resources: