Skip to content

Instantly share code, notes, and snippets.

@dbalabka
Created June 13, 2023 07:50
Show Gist options
  • Save dbalabka/9216d5543f899c9e7c50b3f42ad49ab7 to your computer and use it in GitHub Desktop.
Save dbalabka/9216d5543f899c9e7c50b3f42ad49ab7 to your computer and use it in GitHub Desktop.
Enhance speech quality for video with single pass using ffmpeg. Read more: https://superuser.com/a/1643035/913241
# Make the video shorter to perform an experiment quicker
docker run --rm -it -v $(pwd):/config linuxserver/ffmpeg:latest -ss 840 -i /config/source.mp4 -c copy -t 120 /config/source-short.mp4
# See https://superuser.com/a/1643035/913241
docker run --rm -it -v $(pwd):/config linuxserver/ffmpeg:latest -i /config/source-short.mp4 -filter:a "speechnorm=e=25:r=0.0001:l=1,highpass=200,lowpass=3000,afftdn" /config/source-short-louder-wo-noise.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment