Skip to content

Instantly share code, notes, and snippets.

@yudenzel
Created September 3, 2020 09:37
Show Gist options
  • Save yudenzel/fb977a49cc9b500ec788393fd235cc61 to your computer and use it in GitHub Desktop.
Save yudenzel/fb977a49cc9b500ec788393fd235cc61 to your computer and use it in GitHub Desktop.
Bash script to merge audio and video only files to one single file.
#!/usr/bin/env bash
if [[ $# -eq 3 ]]; then
echo ffmpeg -i "${1}" -i "${2}" -c:a copy -c:v copy "${3}"
ffmpeg -i "${1}" -i "${2}" -c:a copy -c:v copy "${3}"
else
echo "unexpected number or arguments, 3 is expected.";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment