Last active
May 4, 2021 18:50
-
-
Save wett1988/2d431dcc7e4149b7ee6c71695309b04a to your computer and use it in GitHub Desktop.
Create video from image and audio with ffmpeg
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
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -vf "scale='min(1280,iw)':-2,format=yuv420p" -c:v libx264 -preset medium -profile:v main -c:a aac -shortest -movflags +faststart output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment