Skip to content

Instantly share code, notes, and snippets.

@juanbono
Forked from david-christiansen/fix-audio.sh
Created June 27, 2016 17:53
Show Gist options
  • Save juanbono/ea26cad303688bfeb6e9141929b4f58e to your computer and use it in GitHub Desktop.
Save juanbono/ea26cad303688bfeb6e9141929b4f58e to your computer and use it in GitHub Desktop.
How to fix the audio on the current crop of OPLSS videos
#!/bin/bash
for i in *.mp4; do
if [ ! -a "${i%.mp4}-fixed.mp4" ]; then
ffmpeg -i "$i" -vcodec copy -ac 1 "${i%.mp4}-fixed.mp4"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment