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

使用testplayer打开摄像头画面有延迟 #68

Open
liquanguo opened this issue Oct 27, 2022 · 7 comments
Open

使用testplayer打开摄像头画面有延迟 #68

liquanguo opened this issue Oct 27, 2022 · 7 comments

Comments

@liquanguo
Copy link

使用player_open("vfwcap", GetSafeHwnd(), NULL);打开摄像头画面有延迟,延迟大概在1秒到2秒左右
使用vlc和mpc-hc都是正常的

环境:win10+vs2010,PC:realme笔记本

@rockcarry
Copy link
Owner

设置 fanplayer.ini 的下面的参数:
avts_syncmode = 2;
video_bufpktn = 1;
audio_bufpktn = 1;

试试

@liquanguo
Copy link
Author

设置 fanplayer.ini 的下面的参数: avts_syncmode = 2; video_bufpktn = 1; audio_bufpktn = 1;

试试

刚刚试了,没有效果

@rockcarry
Copy link
Owner

dshow 方式试过没,我这边测试 dshow 模式是正常的。

@rockcarry
Copy link
Owner

试下修改 player_prepare 这个函数里面,把 player->init_params.avts_syncmode 设置为 2

@liquanguo
Copy link
Author

dshow 方式试过没,我这边测试 dshow 模式是正常的。

我的摄像头名称是 720p HD Camera,我这样打开后没有图像
player_open("dshow://video=720p HD Camera", GetSafeHwnd(), NULL);

@rockcarry
Copy link
Owner

fanplayer dshow://video="open_uvc_cam#Camera"
或者
fanplayer dshow://video="open_uvc_cam#720p"
用这个试下

@liquanguo
Copy link
Author

设置了这两个都不行
player_open("dshow://video=open_uvc_cam#Camera", GetSafeHwnd(), NULL);
player_open("dshow://video=open_uvc_cam#720p", GetSafeHwnd(), NULL);
一直提示报错,如下:
unable to decode APP fields: Invalid data found when processing input
real-time buffer [open_uvc_cam#720p] [video input] too full or near too full (82% of size: 3041280 [rtbufsize parameter])! frame dropped!

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