spike silencedetect overlap

This commit is contained in:
Bel LaPointe
2023-12-26 08:29:08 -05:00
parent 500a115bd1
commit e2fb125834
2 changed files with 32 additions and 12 deletions

View File

@@ -37,3 +37,11 @@ echo 'ffmpeg -y -i "$f" -filter:v "select='gt(scene,0.50)',showinfo" -f null - 2
# ffmpeg -i input.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB out.mp4
# ffmpeg -i "$f" -vf "split=2[full][crop];[crop]mpdecimate=hi=16:lo=16:frac=1:max=1000[crop];[crop][full]overlay" "$g"
ffmpeg -y -i "$f" -vf "split=2[full][crop];[crop]mpdecimate,setpts=N/FRAME_RATE/TB[crop];[crop][full]overlay" "$g"
# https://stackoverflow.com/questions/25697596/using-ffmpeg-with-silencedetect-to-remove-audio-silence
# [silencedetect @ 0000000004970f80] silence_start: -0.00154195
# [silencedetect @ 0000000004970f80] silence_end: 3.20435 | silence_duration: 3.2059
# ...
# [silencedetect @ 0000000004970f80] silence_start: 343.84
ffmpeg -i "$f" -af silencedetect=n=-50dB:d=1 -f null - 2>&1 | grep silencedetect