Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

视频avi转mp4回调成功,文件中无视频 #64

Copy link
Copy link

Description

@yuyingfeng1989
Issue body actions

调用下方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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.