Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LukeChow opened this issue May 25, 2020 · 0 comments

Comments

@LukeChow
Copy link

LukeChow commented May 25, 2020

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant