Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vukanac/a3d82d815d0135edae9036acf366c3e2 to your computer and use it in GitHub Desktop.
Save vukanac/a3d82d815d0135edae9036acf366c3e2 to your computer and use it in GitHub Desktop.
ffmpeg shell command to convert all videos from my dir to acceptable Audi MMI format/size
cd $HOME/my_funny_video
for i in *.mp4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -hide_banner \
-i "$i" \
-r 25 \
-vf scale=w=720:h=404:force_original_aspect_ratio=decrease:force_divisible_by=2 ease \
-c:v libx264 \
-preset medium \
-tune animation \
-profile:v baseline \
-crf 23 \
-maxrate 1750k -bufsize 1750k \
-c:a aac -b:a 192k \
"$HOME/audi_mmi/${name}_480.mp4"
done
# https://www.audiworld.com/forums/audio-video-security-discussion-15/converting-video-working-formats-2014-a4-mmi-3g-cdn-2855965/
# https://en.wikipedia.org/wiki/Multi_Media_Interface
@vukanac
Copy link
Author

vukanac commented Jun 14, 2021

Thanks for the update!

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