public class TaskBasic extends Object
| 构造器和说明 |
|---|
TaskBasic() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getBitRate() |
String |
getOutPrefix()
输出地址前缀
|
VideoScale |
getOutVideoScale() |
String |
getSourceVideo()
来源视频
|
Watermark |
getWaterMark() |
boolean |
isConvertToM3u8()
是否转码为M3u8 格式,默认true
|
boolean |
isConvertToTs()
是否转码为 MPEG-TS 格式,默认true
|
void |
setBitRate(long bitRate) |
void |
setConvertToM3u8(boolean convertToM3u8)
是否转码为 M3u8 格式
|
void |
setConvertToTs(boolean convertToTs)
是否转码为 MPEG-TS 格式,默认true
|
void |
setOutPrefix(String outPrefix)
输出视频地址前缀,例如 /home/guolei/video/output/vod_1121
转换完毕根据前缀添加扩展名,例如:输出文件 mp4为 /home/guolei/video/output/vod_1121.mp4 输出文件 ts 为 /home/guolei/video/output/vod_1121.ts 输出文件 m3u8 为 /home/guolei/video/output/vod_1121.m3u8 |
void |
setOutVideoScale(VideoScale outVideoScale) |
void |
setSourceVideo(String sourceVideo)
源视频地址,例如 /home/guolei/video/source/vod_1121.mov
|
void |
setWaterMark(Watermark waterMark) |
public String getSourceVideo()
public void setSourceVideo(String sourceVideo)
sourceVideo - the sourceVideo to setpublic String getOutPrefix()
public void setOutPrefix(String outPrefix)
outPrefix - 输出视频地址前缀public Watermark getWaterMark()
public void setWaterMark(Watermark waterMark)
waterMark - the waterMark to setpublic long getBitRate()
public void setBitRate(long bitRate)
bitRate - the bitRate to setpublic VideoScale getOutVideoScale()
public void setOutVideoScale(VideoScale outVideoScale)
outVideoScale - the outVideoScale to setpublic boolean isConvertToTs()
public void setConvertToTs(boolean convertToTs)
convertToTs - the covvertToTs to setpublic boolean isConvertToM3u8()
public void setConvertToM3u8(boolean convertToM3u8)
convertToM3u8 - the convertToM3u8 to setCopyright © 2021. All rights reserved.