Skip to content

Instantly share code, notes, and snippets.

@appler1009
Created August 16, 2021 05:11
Show Gist options
  • Select an option

  • Save appler1009/bfa593bb543c754e87ce9f871b83ca4f to your computer and use it in GitHub Desktop.

Select an option

Save appler1009/bfa593bb543c754e87ce9f871b83ca4f to your computer and use it in GitHub Desktop.
Encode videos for the INFINITI infotainment system
# basically re-encode with 10-years old encoding
for f
do
/usr/local/bin/ffmpeg -i "$f" -vf scale=704:384 -aspect 16:9 -maxrate 1800k -qscale 2 -trellis 1 -vtag DX50 -qmax 16 "$f.avi"
done
@appler1009
Copy link
Copy Markdown
Author

appler1009 commented Aug 16, 2021

For the macOS Automator, add Run Shell Script step with the above script, which would be run by bash with the input passed in as arguments.

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