DEV Community

Discussion on: Automatically trim silence from video with ffmpeg and python

Collapse
 
scresante profile image
scresante • Edited

A fix I had to use for the original first script:
ffmpeg -hide_banner -vn -i $orig -af silencedetect -f null - 2>&1 | sed "s/\r/\n/" | awk '/_end/{print $5 " " $8}' > silence.txt
Since I am only using this for audio files, I decided to go with this: github.com/kkroening/ffmpeg-python...