Skip to content

Instantly share code, notes, and snippets.

@vedovelli
Created February 23, 2023 20:34
Show Gist options
  • Save vedovelli/d7f90c5308d93c69721a0de60ebf2b87 to your computer and use it in GitHub Desktop.
Save vedovelli/d7f90c5308d93c69721a0de60ebf2b87 to your computer and use it in GitHub Desktop.
# Salvar num arquivo ~/encode.sh, conceder direito de execução e
# executar desta forma (adaptar nomes de diretórios e arquivos para seu caso):
# $ ~/encode.sh ~/Video/bigFile.mp4 ~/Video/smallFile.mp4
ffmpeg -i "$1" -vcodec h264 -acodec aac "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment