Last active
October 10, 2025 18:32
-
-
Save shellking4/4f0dc9ce81d8abef6c3b2cb34a9b5c8a to your computer and use it in GitHub Desktop.
Audio To Video with static cover image using ffmpeg
This file contains hidden or 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
| Audio To Video with static cover image using ffmpeg | |
| Unoptimized | |
| ffmpeg -loop 1 -i IMG_20231221_135940_692.jpg -i TiMiLa\ Fa#.mp3 -c:a copy -c:v libx264 -shortest audio2.mp4 | |
| OPtimized | |
| ffmpeg -loop 1 -i IMG_20231221_135940_692.jpg -i TiMiLa\ Fa#.mp3 -c:a aac -ab 112k -c:v libx264 -shortest -strict -2 audio.mp4 | |
| ffmpeg -loop 1 -i IMG_20231221_135940_692.jpg -i "TiMiLa Fa#.mp3" -c:a aac -ab 112k -c:v libx264 -vf "scale=-1:1080" -shortest -strict -2 audio.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment