LoginSignup
0
1

More than 5 years have passed since last update.

ffmpegのdrawtextで中央に文字を置く [WIP]

Posted at

実験しながらのまとめ記事的なやつなので、あとで説明とかは付け足します。
今回の目的: 丁度中央に文字を配置したかった

尚、文字やフォントによって値は違うと思われるのでご了承ください。


ffmpegについて

[あとで書く]

drawtextについて

[あとで書く]

先に結論

今回の場合、 x=750/y=700で大体中央に来ました

スクリーンショット 2018-11-15 20.55.50.png

試行錯誤資料

画素数とかで数えているのだと思いますが、各設定と結果を貼り付けていきます。
x/y以外の基本的な設定は以下の通りです

ffmpeg -i end.mp4 -vf drawtext="/Library/Fonts/Bradley Hand Bold.ttf: text='wait 4 the first video...': fontcolor=white: x=<x>: y=<y>: fontsize=100"  end_with_text.mp4

x=100/y=300

スクリーンショット 2018-11-15 20.26.31.png

x=1000/y=800

スクリーンショット 2018-11-15 20.32.54.png

x=800/y=700

スクリーンショット 2018-11-15 20.35.41.png

x=500/y=700

スクリーンショット 2018-11-15 20.41.24.png

x=600/y=700

スクリーンショット 2018-11-15 20.43.09.png

x=700/y=700

スクリーンショット 2018-11-15 20.49.56.png

x=750/y=700

スクリーンショット 2018-11-15 20.55.50.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1