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

Use avfoundation to capture screen #25

Open
newperson1746 opened this issue Mar 14, 2018 · 3 comments
Open

Use avfoundation to capture screen #25

newperson1746 opened this issue Mar 14, 2018 · 3 comments

Comments

@newperson1746
Copy link

newperson1746 commented Mar 14, 2018

I noticed that using OSXvnc on a gigabit local network is much slower in terms of update speed vs the default screen sharing (in VNC compatibility mode.) FFmpeg uses avfoundation to capture the screen at full refresh rate via rgba, and it works great. This is an enhancement that I just noticed. OSXvnc calls GL methods directly to get the screen (I think) which is slower.

I use OSXvnc since it supports so many more display modes than the default screensharing. This is especially true when using a non-mac os to remote into a macOS host. Since Screen Sharing supports the apple adaptive codec, it is super smooth. On linux, VNC supports many more modes than default screen sharing doesn't. The speed increase by using ZRLE, i.e is negated if the capture method for the screen is slower than the default screen sharing in VNC backward compatibility mode. I just suggest using avfoundation for a massive increase in capture speed.

@stweil
Copy link
Owner

stweil commented Mar 14, 2018

Thank you for this hint. Do you know whether libvncserver is faster, too (maybe by using avfoundation)? I consider using that library, see issue #5.

Send me a pull request if you have new better code with avfoundation.

@mykola-mokhnach
Copy link
Contributor

@stweil Can you please review sauce-archives#1 ? I would be happy to push this improvement back to the origin if you'd like it.

@stweil
Copy link
Owner

stweil commented Feb 10, 2019

Pull requests are welcome, but I prefer to get small commit sets which are much easier to review for me. You would also have to fix the header comments in the new files to include a GPL compatible license statement ("All rights reserved" is incompatible).

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

No branches or pull requests

3 participants