-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
调用下方api后转码onComplete()回调成功但是视频无法播放,地址无视频文件,请问该框架支持avi转mp4格式吗,兼容H265和H264吗
val command = CommandParams()
.append("-c:v") // 设置解码器
.append("hevc_mediacodec")
.append("-i")
.append(path)
.append("-b") // 硬编码一般需要设置视频的比特率(bitrate)
.append("1500k")
.append("-c:v") // 设置编码器
.append("hevc_mediacodec")
.append(videoPath)
.get()
showLoading(getString(R.string.input_accident_video_conversion))
GlobalScope.launch {
FFmpegCommand.runCmd(command, callback("视频转码完成",path, videoPath))
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels