Last active
June 24, 2024 12:03
-
-
Save Denperidge/a69d91966d653793a8702da9cea8db50 to your computer and use it in GitHub Desktop.
Some useful FFMPEG commands I've needed over time
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
# Add a keyframe every 1 frame (useful for working with video in Ableton - https://stackoverflow.com/a/33855249 | |
ffmpeg -i input.mp4 -c:v libx264 -x264opts keyint=1 output.mp4 | |
for filename in /mnt/sd/PRIVATE/AVCHD/BDMV/STREAM/*.MTS; do | |
echo $filename | |
ffmpeg -i "${filename}" -vcodec libx265 -acodec pcm_s16le "${currentdir}/$(basename ${filename}).mov" -report | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment