Skip to content

使用您的PCM to AAC编码器编码出的音频文件时长显示不正确 #10

@LukeChow

Description

@LukeChow

编码出的aac文件时长比实际长一些,播放的时候后面那段多出的时间是不能播的。(是安卓开发,文件在iOS & macOS上显示不正确)
我尝试设置
pCodecCtx->time_base = AVRational{1, kSampleRate};

audioPacket.pts = index * 1024;
index++;
结果还是一样

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