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

对没有音频的文件播放帧率控制 #44

Open
A11en1verson opened this issue Mar 11, 2021 · 1 comment
Open

对没有音频的文件播放帧率控制 #44

A11en1verson opened this issue Mar 11, 2021 · 1 comment

Comments

@A11en1verson
Copy link

sysclock= c->cmnvars->start_pts + (tickcur - c->cmnvars->start_tick) * c->speed / 100;
scdiff = (int)(sysclock - c->cmnvars->vpts - c->tickavdiff);
avdiff = (int)(c->cmnvars->apts - c->cmnvars->vpts - c->tickavdiff);
avdiff = c->cmnvars->apts <= 0 ? scdiff : avdiff;
这里虽然有处理根据系统时间来判断,但是播放出来的效果是快进的。

@rockcarry
Copy link
Owner

麻烦提供你的测试视频文件

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

2 participants