Last active
January 23, 2023 08:29
-
-
Save mrhead/bda1924220cb41ecd348e0db6f1e0c28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert iPhone .mov videos to .mp4 videos which can be embedded in Basecamp. | |
IFS=" | |
" | |
for video in *.mov; do | |
ffmpeg -i $video -c:v libx264 -crf 23 -c:a aac -strict -2 `echo $video | sed "s/mov/mp4/"` | |
done | |
# The ffmpeg options were generated by ChatGPT. Here is the description | |
# generated for the provided options: | |
# | |
# This command tells ffmpeg to take the input file "input.mov", and encode the | |
# video with the H.264 codec (libx264) at a constant rate factor of 23, and | |
# audio with AAC codec (aac) and create the output file "output.mp4". The | |
# "-strict -2" flag is used to allow ffmpeg to use non-free codecs (if you are | |
# using a version of ffmpeg that support it). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment