Remsi
Remsi copied to clipboard
Remove silence from video files with a 1-line ffmpeg command
Running `ffmpeg -i video.mp4 -hide_banner -af silencedetect=n=-50dB:d=1 -f null - 2>&1 | python remsi.py > command` I get this command `ffmpeg -i video.mp4 -vf "select='between(t,0,78.329342)+between(t,79.44[...]2673.798957)',setpts=N/FRAME_RATE/TB" -af "aselect='between(t,0,78.3293[...]en(t,5400.830227,5473.798957)',asetpts=N/SR/TB" outfile_video.mp4` which fails...
Account for having a path passed in `inputFile`
If you want to update the file folderA/folderB/video.mp4 it won't work properly because the output will be output_folderA/... which is not the proper expected behavior for any user. This update...