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

音视频同步问题 #52

Open
meowlgmee opened this issue Oct 15, 2021 · 3 comments
Open

音视频同步问题 #52

meowlgmee opened this issue Oct 15, 2021 · 3 comments

Comments

@meowlgmee
Copy link

开启垂直同步, 输出帧率小于视频文件帧率的时候, 没有丢帧去追赶音频, 会导致视频画面滞后, 音视频不同步

@rockcarry
Copy link
Owner

你是自己修改了代码吗?

@meowlgmee
Copy link
Author

meowlgmee commented Oct 15, 2021

我移植到了Linux上, 视频画面作为我整体输出的一部分, 整体输出由egl/openGL ES控制输出, 开启垂直同步,输出模式是1080i50, 即25fps/s, 视频帧率为30; 我的初步想法是 av_sync_and_complete函数返回avdiff, 而不是直接avsleep, 且av_sync_and_complete函数在render_video之前, 先判断avdiff是否过大, 如果过大, 就不render了,直接丢弃; 如果在范围内,则执行av_sleep; 这是初步想法, 还没有验证 :p

@TuringApple73
Copy link

@yunkernel 请问,你是怎么把fanplay移植到Linux的?我最近也在做这个事情,想弄一个Linux版的贡献一下

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

3 participants