Skip to content

Instantly share code, notes, and snippets.

@machiq
Last active September 5, 2018 22:35
Show Gist options
  • Save machiq/7a2d1688919d81ec42ec2ba5053deb97 to your computer and use it in GitHub Desktop.
Save machiq/7a2d1688919d81ec42ec2ba5053deb97 to your computer and use it in GitHub Desktop.
ffmpeg compression for aso spring
#!/bin/bash
#
# 2018-09-05 - Matt Crnich - v001 - Setup for ASO Spring Footage
#
#
### Medium Preset, Fast Decode Tune with +Faststart at 1920x1080 ###
### copy Timecode track ###
### mix down multi-track audio track into stereo mix ###
#
for i in `find "/Volumes/CREATIVE_SAN/Sandbox/Matt.Crnich/_source/_footage/_clips/_aso/spring/01_RAW/DAY01" -name "*.mov" -print0 | xargs -0`;
do o="/Volumes/CREATIVE_SAN/Sandbox/Matt.Crnich/_source/_footage/_clips/_aso/spring/02_TRANSCODES/_ai_transcode/${i##*/}";
ffmpeg -i "$i" -ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL+0.30*SL|FR=FC+0.30*FR+0.30*BR+0.30*SR" -c:v libx264 -preset medium -tune fastdecode -vf scale=1920:-1 -pix_fmt yuv420p -movflags +faststart "${o%.*}.mov";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment