-
Notifications
You must be signed in to change notification settings - Fork 30
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
录制的视频速度较快,而且音频调用writePacket时报错av_interleaved_write_frame failed, ret: -22 #3
Comments
-22是参数不对,可能音频某个参数设置错了。 |
网上说时pts有问题,音视频知识薄弱,没看懂pts这么计算的 |
理论上是采集的时候记录音频/视频帧的时间戳,pts是采集时间戳-起始时间,然后AVPacket在写进文件前需要转换为AVStream的时基。 |
方便的话留个QQ交流 |
Q779612573 |
最新代码支持录制麦克风,可以选择录制扬声器或者麦克风。 |
666 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如题
The text was updated successfully, but these errors were encountered: