Skip to content

Instantly share code, notes, and snippets.

@bjrne
Last active June 22, 2020 11:24
Show Gist options
  • Save bjrne/bc0388ae9545719141e356c277ab0ce3 to your computer and use it in GitHub Desktop.
Save bjrne/bc0388ae9545719141e356c277ab0ce3 to your computer and use it in GitHub Desktop.
A simple script for removing high-pitched hissing sounds from bad quality lecture recordings. Add this script to a folder of videos and start it from there. You can play around with the values for lowpass and highpass for best results.
import os
for filename in os.listdir():
if ".py" not in filename:
print("start with:")
print("ffmpeg -i " + filename + " -af lowpass=1000,highpass=200 " + filename + "out.mp4")
os.system("ffmpeg -i " + filename + " -af lowpass=1000,highpass=200 " + filename + "out.mp4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment