Skip to content

Instantly share code, notes, and snippets.

@carlosveucv
Created April 1, 2021 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosveucv/aab4f695373965deed4334f6b40e50b1 to your computer and use it in GitHub Desktop.
Save carlosveucv/aab4f695373965deed4334f6b40e50b1 to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in *.MP4; do
ffmpeg -i "$file" -an -c:v copy "${file%.MP4}_noaudio.MP4"
rm "$file"
done
for file in *.mp4; do
ffmpeg -i "$file" -an -c:v copy "${file%.mp4}_noaudio.MP4"
rm "$file"
done
@carlosveucv
Copy link
Author

You can execute this script to remove the audio from any video (.mp4 or .MP4) inside a folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment