Skip to content

Instantly share code, notes, and snippets.

@Stefan-Code
Created October 22, 2017 09:58
Show Gist options
  • Save Stefan-Code/89367dad6de1d2e04e9fc90ef7acf3b8 to your computer and use it in GitHub Desktop.
Save Stefan-Code/89367dad6de1d2e04e9fc90ef7acf3b8 to your computer and use it in GitHub Desktop.
#removes first audio stream without transcoding
ffmpeg -i file.mp4 -map 0:0 -map 0:2 -acodec copy -vcodec copy new_file.mp4
#!/bin/bash
for name in *.mkv; do
ffmpeg -i "$name" -map 0:0 -map 0:2 -acodec copy -vcodec copy "converted/$name"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment