public class Watermark extends Object
| 构造器和说明 |
|---|
Watermark() |
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getBottom() |
Integer |
getLeft() |
String |
getLogoFile()
获取水印图片文件的路径
|
VideoScale |
getLogoScale()
获取水印分辨率
|
String |
getOverlay()
filter_complex参数中 logo 在视频上的位置,在初始 initRightBottom等命令中自动创建
|
Integer |
getRight() |
Integer |
getTop() |
VideoScale |
getVideoScale()
获取视频分辨率
|
void |
initLeftBottom(String logoFile,
int left,
int bottom,
VideoScale logoScale)
左下角 "overlay=" + left + ":main_h-overlay_h-" + bottom
|
void |
initLeftTop(String logoFile,
int top,
int left,
VideoScale logoScale)
左上角 "overlay=" + left + ":" + top
|
void |
initRightBottom(String logoFile,
int right,
int bottom,
VideoScale logoScale)
右下角 "overlay=main_w-overlay_w-" + right + ":main_h-overlay_h-" + bottom
|
void |
initRightTop(String logoFile,
int right,
int top,
VideoScale logoScale)
右上角 "overlay=main_w-overlay_w-" + right + ":" + top
|
void |
setLogoFile(String logoFile)
设置水印图片文件的路径
|
void |
setLogoScale(VideoScale logoScale)
设置水印分辨率
|
void |
setVideoScale(VideoScale videoScale)
设置视频分辨率
|
String |
toString()
输出 filter_complex 命令
|
public void initLeftTop(String logoFile, int top, int left, VideoScale logoScale)
logoFile - top - left - logoScale - logo文件缩放比例 100:-1,130:45 ...,可为空public void initRightTop(String logoFile, int right, int top, VideoScale logoScale)
logoFile - right - top - logoScale - logo文件缩放比例 100:-1,130:45 ...,可为空public void initLeftBottom(String logoFile, int left, int bottom, VideoScale logoScale)
logoFile - left - bottom - logoScale - logo文件缩放比例 100:-1,130:45 ...,可为空public void initRightBottom(String logoFile, int right, int bottom, VideoScale logoScale)
logoFile - bottom - right - logoScale - logo文件缩放比例 100:-1,130:45 ...,可为空public Integer getTop()
public Integer getLeft()
public Integer getBottom()
public Integer getRight()
public String getLogoFile()
public void setLogoFile(String logoFile)
logoFile - the logoFile to setpublic VideoScale getLogoScale()
public void setLogoScale(VideoScale logoScale)
logoScale - the logoScale to setpublic VideoScale getVideoScale()
public void setVideoScale(VideoScale videoScale)
videoScale - the videoScale to setpublic String getOverlay()
Copyright © 2021. All rights reserved.