Created
March 1, 2023 05:02
-
-
Save tlockney/48c57ccd1a4ab513ef7a6b04e28dc132 to your computer and use it in GitHub Desktop.
Combine a jpeg file and mp3 to make a video
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
#!/usr/bin/env sh | |
# from https://superuser.com/a/1041818 | |
ffmpeg -loop 1 -i img.jpg -i music.mp3 -shortest -acodec copy -vcodec mjpeg result.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment