Edit video recordings with ffmpeg

Published

September 25, 2020

A few scripts to speedup, concatenate and possibly other operations using ffmpeg on linux (also works on Chromebooks) from the command line:

ffmpeg -safe 0 -f concat -i <(find . -type f -name '*.mp4' -printf "file '$PWD/%p'\n" | sort) -c copy output.mp4
view raw concat_mp4.sh hosted with ❤ by GitHub
ffmpeg -i $1 -filter_complex "[0:v]setpts=0.87*PTS[v];[0:a]atempo=1.15[a]" -map "[v]" -map "[a]" speedup_$1
# ffmpeg_trim.sh input.mp4 00:14 03:24
ffmpeg -i $1 -ss 00:${2} -to 00:${3} -c:v copy -c:a copy ${1}_trim.mp4
view raw ffmpeg_trim.sh hosted with ❤ by GitHub

I used those to pre-record videos for a conference (after recording with Loom)