Skip to content

Instantly share code, notes, and snippets.

@Denperidge
Last active June 24, 2024 12:03
Show Gist options
  • Save Denperidge/a69d91966d653793a8702da9cea8db50 to your computer and use it in GitHub Desktop.
Save Denperidge/a69d91966d653793a8702da9cea8db50 to your computer and use it in GitHub Desktop.
Some useful FFMPEG commands I've needed over time
# 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