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

[Feature request] Digital zoom hotkeys for camera mode #4903

Open
parkerlreed opened this issue May 6, 2024 · 2 comments
Open

[Feature request] Digital zoom hotkeys for camera mode #4903

parkerlreed opened this issue May 6, 2024 · 2 comments

Comments

@parkerlreed
Copy link

parkerlreed commented May 6, 2024

Is your feature request related to a problem? Please describe.

I am using my phone as a desktop magnifier. My current solution for zooming involves zooming into the desktop itself, which is less than ideal for a high resolution sensor rendering on something like 1080p.

Describe the solution you'd like

Digital zoom shortcuts taking advantage of high resolution sensor sizes (4032x3024 in my case)

Describe alternatives you've considered

Zooming into desktop which nets you a maximum of the rendered desktop resolution.

Additional Info

Max sensor size fullscreened to desktop
Screenshot_20240505_221823

Zooming in with desktop zooming
Screenshot_20240505_221833

Resizing the window to much larger than the desktop
Screenshot_20240505_221843

Desktop zooming into that with much more detail
Screenshot_20240505_221851

@rom1v
Copy link
Collaborator

rom1v commented May 6, 2024

I have this feature in mind for the future (and other camera-related features like turn on/off flashlight). It requires to adapt the control mechanism first, because currently camera implies no control. #4452

@Disonantemus
Copy link

I use my smartphone as a magnifier like this (dwm tiling window manager):

  1. Launch scrcpy with main camera.
  2. Drag camera window with MOD+mouse to make it a floating window.
  3. [Alt]+[g] to get 1:1 zoom.
  4. Then rotate/flip/pan window to my liking.

Because camera is 4032x3040 and my monitor is 1920x1080, I get nearly 3x "optical zoom".


  • There is a small delay for the video to look good, it seems that a static object is needed for it to look sharp, maybe it is a camera or compression problem.
  • It is possible just to send cropped sensor 1920x1080 data (from smartphone) to not send image information that is not shown, and make it faster?
  • My device (Galaxy S20 FE) has an optical zoom lens, but I can't use it with scrcpy, don't know why.

System:

distro: Arch Linux x86_64
kernel: 6.6.52-1-lts
shell: bash 5.2.37
term: tmux
wm: dwm
cpu: Intel i7-4790 (8) @ 3.600GHz

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