Documentation ¶
Index ¶
- func AddWatermarkToVideo(ctx context.Context, WatermarkPNGName, videoTitle, videoRawFileName string, ...) error
- func ExtractVideoCover(ctx context.Context, rawFileName, coverFileName string) error
- func GenerateAudioName(videoFileName string) string
- func GenerateCoverName(actorId int64, title string, videoId int64) string
- func GenerateFinalVideoName(actorId int64, title string, videoId int64) string
- func GenerateNameWatermark(actorId int64, Name string) string
- func GenerateRawVideoName(actorId int64, title string, videoId int64) string
- func TextWatermark(ctx context.Context, fontFile, text string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWatermarkToVideo ¶
func AddWatermarkToVideo(ctx context.Context, WatermarkPNGName, videoTitle, videoRawFileName string, videoId, actorId int64) error
AddWatermarkToVideo 添加水印逻辑
func ExtractVideoCover ¶
ExtractVideoCover 提取视频封面
func GenerateAudioName ¶
GenerateAudioName 生成音频链接,此链接仅用于内部使用,不暴露给用户
func GenerateCoverName ¶
GenerateCoverName 生成视频封面名称
func GenerateFinalVideoName ¶
GenerateFinalVideoName 最终暴露给用户的视频名称
func GenerateNameWatermark ¶
GenerateNameWatermark 生成用户名水印图片
func GenerateRawVideoName ¶
GenerateRawVideoName 生成初始视频名称,此链接仅用于内部使用,暴露给用户的视频名称
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.