Skip to content

Commit

Permalink
ffmpeg video background noise reduction
Browse files Browse the repository at this point in the history
Signed-off-by: Bhaskar Chowdhury <unixbhaskar@gmail.com>
  • Loading branch information
unixbhaskar committed Feb 1, 2024
1 parent 6f065be commit 9646ad3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ffmpeg_noise_reduction
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

video_file=$1


if [[ $# -ne 1 ]];then
echo You are suppose to provide the source video file.
exit 1
fi

ffmpeg -i "$video_file" -af "highpass=200,lowpass=3000,afftdn" -c:v copy myvideo_clean.mkv


if test $? -eq 0;then
notify-send "Done,clearing the backgrund noise on video"
mv -v "myvideo_clean.mkv" "$video_file"
else
notify-send "Failed..check manually"
fi

0 comments on commit 9646ad3

Please sign in to comment.