Last active
October 7, 2023 15:48
-
-
Save Philmist/b7dc624450b54a8d6cc9aba805309d9f 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
# @seealso https://nico-lab.net/drawtext_with_ffmpeg/ | |
ffmpeg -f lavfi -i 'color=c=black:r=15:s=640x64' -f dshow -i 'audio=CABLE-B Output (VB-Audio Cable B)' -filter_complex "[0]drawtext=fontfile='\\Windows\\fonts\\meiryob.ttc':textfile='\\temp_files\\foobar_nowplaying.txt':reload=1:fontsize=(h/2.2):y=0:x=w-mod(n*6\,w+tw):y=(h-th)/2:fontcolor=white" -c:v libsvtav1 -crf 35 -c:a aac -b:a 128k -f matroska http://192.168.0.100:8080/stream.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment