1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

FFmpeg で画像の透明度を変更する方法

Posted at

FFmpeg を使って画像の透明度をサクッと変更できないか調べたらサクッとできそうだったのでメモ。

やり方

vf オプションに colorchannelmixer=aa=〇〇 形式で 〇〇 に透明度(不透明度)を指定すればOK。

検証

元画像

例:画像の透明度を50%にする(半透明にする)

ffmpeg -i input.png -vf "colorchannelmixer=aa=0.5" output.png

例:画像の透明度を100%にする(透明にする)

ffmpeg -i input.png -vf "colorchannelmixer=aa=0.0" output.png
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?