Last active
December 26, 2022 16:40
-
-
Save karlthorssen/17b3ab47ea34f1af6297bfdd134264f3 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
# crop to mobile vertical | |
ffmpeg -i horizontal.mp4 -filter:v "crop=607:1080:760:0" vertical.mp4 | |
/usr/local/Cellar/ffmpeg/4.2.2-with-options_1/bin/ffmpeg \ | |
-i Screen\ Shot\ 2020-04-13\ at\ 8.52.51\ PM.png -i Glory.wav \ | |
-acodec libfdk_aac \ | |
-filter_complex "[1:a]showwaves=mode=line:s=hd1080:colors=White[v];[0:v][v]overlay=format=auto,format=yuv420p[vout]" \ | |
-map "[vout]" -map 1:a -vcodec libx264 -pix_fmt yuv420p \ | |
output.mp4 | |
/usr/local/Cellar/ffmpeg/4.2.2-with-options_1/bin/ffmpeg \ | |
-i Screen\ Shot\ 2020-04-13\ at\ 8.52.51\ PM.png -i Glory.wav \ | |
-acodec libfdk_aac \ | |
-filter_complex "[1:a]showwaves=mode=line:s=hd1080:colors=White[v];[0:v][v]overlay=format=auto,format=yuv420p[vout]" \ | |
-map "[vout]" -map 1:a \ | |
-vcodec libx264 -pix_fmt yuv420p \ | |
output.mp4 | |
# overlay image | |
# https://video.stackexchange.com/questions/12105/add-an-image-overlay-in-front-of-video-using-ffmpeg | |
ffmpeg -i Xpand2-daydream.mp4 -i Xpand2-daydream.png \ | |
-filter_complex "[0:v][1:v] overlay=1200:25:enable='between(t,0,999)'" \ | |
-pix_fmt yuv420p -c:a copy \ | |
Xpand2-daydream-overlay.mp4 | |
# with image scaled | |
ffmpeg -i Xpand2-daydream.mp4 -i Xpand2-daydream.png \ | |
-filter_complex "[1:v]scale=800:800 [ovrl], [0:v][ovrl] overlay=1050:25:enable='between(t,0,999)'" \ | |
-pix_fmt yuv420p -c:a copy \ | |
Xpand2-daydream-overlay.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment