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
convert myimage.png \ | |
-adaptive-resize '144x168>' \ | |
-fill '#FFFFFF00' -opaque none \ | |
-type Grayscale -colorspace Gray \ | |
-black-threshold 30% -white-threshold 70% \ | |
-ordered-dither 2x1 \ | |
-colors 2 -depth 1 \ | |
-define png:compression-level=9 -define png:compression-strategy=0 \ | |
-define png:exclude-chunk=all \ | |
myimage.pbl.png |
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
ffmpeg \ | |
-loop 1 -i INPUT_IMAGE_FILE.jpg \ | |
-i INPUT_AUDIO_FILE.mp3 \ | |
-strict experimental -c:a aac -b:a 128k \ | |
-c:v libx264 -tune stillimage -pix_fmt yuv420p -r 0.033 \ | |
-shortest -t 30 -y \ | |
OUTPUT_VIDEO_FILE.mp4 |
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
["#1abc9c", "#2ecc71", "#3498db", "#9b59b6", "#34495e", "#16a085", "#27ae60", "#2980b9", "#8e44ad", "#2c3e50", "#f1c40f", "#e67e22", "#e74c3c", "#ecf0f1", "#95a5a6", "#f39c12", "#d35400", "#c0392b", "#bdc3c7", "#7f8c8d"] |