ffmpeg : split a video using silencedetect?

I need to know if ffmpeg is able to split video in several parts using silencedetect? I saw silencedetect used on mp3s to remove silences, but never on a video like blackdetect is.

1 Answer

You can use silencedetect with filter_complex. So you can select the required channels from the input video and get them through filters. Following is the FFmpeg command I'm suggesting.

ffmpeg -i input_video -filter_complex "[0:a]silencedetect=n=-50dB:d=1[outa]" -map [outa] test1.mp3

This will give you the corresponding silent time periods and you can use them again to split the video. [0:a] refers to the first input file and map will get the filtered audio output to the output file. Here you can find a good example for audio splitting. Same way here video splitting is described.

Hope this helps you!

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like