Skip to content

Instantly share code, notes, and snippets.

@yspreen
Last active December 12, 2022 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yspreen/69f1ae2ddeae516e201ba2b7da49e717 to your computer and use it in GitHub Desktop.
Save yspreen/69f1ae2ddeae516e201ba2b7da49e717 to your computer and use it in GitHub Desktop.
ffmpeg -i input output
rm calculator*mp4 ; ls -1 calculator* | while read f; do ffmpeg -i "$f" -c:v hevc_videotoolbox -q:v 65 -tag:v hvc1 -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1:color=black" -s 1920x1080 -r 60 -strict experimental -c:a aac -b:a 128k -ar 48000 -ac 2 "$f.mp4" </dev/null; done
-i my-video.mov -vcodec h264 -acodec mp2
-acodec libvo_aacenc -vcodec libx264 -s 1920x1080 -r 60 -strict experimental
ffmpeg -f concat -safe 0 -i files.txt -c copy -acodec copy output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment