Skip to content

Instantly share code, notes, and snippets.

@7kfpun
Created November 12, 2016 06:58
Show Gist options
  • Save 7kfpun/7b21a7d447344bb7a442547ff6ad167e to your computer and use it in GitHub Desktop.
Save 7kfpun/7b21a7d447344bb7a442547ff6ad167e to your computer and use it in GitHub Desktop.
ffmpeg for App preview
# Resizing video to fit App preview requirement
ffmpeg -i input.mp4 -acodec copy -crf 12 -vf scale=1080:1920,setsar=1:1 output.mp4
# Double speed up
ffmpeg -i input.mkv -filter:v "setpts=0.5*PTS" -r 30 output.mkv
# Double speed up/slowing down audio:
ffmpeg -i input.mkv -filter:a "atempo=2.0" -vn output.mkv
ffmpeg -i video.mp4 -i audio.wav \
-c:v copy -c:a aac -strict experimental output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment