Created
February 12, 2024 06:12
-
-
Save CodeBoy2006/9519687dc4f05b124da39d54703e7130 to your computer and use it in GitHub Desktop.
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
| ffmpeg -y -f lavfi -i " | |
| color=white@0.0:1700x520:d=<SECONDS>, | |
| format=rgba, | |
| drawtext= | |
| fontcolor=black: | |
| fontsize=600: | |
| fontfile=<FONT>.ttf: | |
| text='%{eif\:(<SECONDS>-t)/60\:d\:1}\:%{eif\:mod(<SECONDS>-t, 60)\:d\:2}': | |
| x=(w-text_w)/2: | |
| y=(h-text_h)/2: | |
| alpha=1 | |
| " -c:v png <FILENAME>.mkv |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The last line could be repalced by
" -c:v qtrle <FILENAME>.mov(Transparent background, smaller)or
" -c:v nvenc_hevc <FILENAME>.mp4(No transparent bg, smallest)