Genymobile / Genymobile/scrcpy

Feature needed: Dynamic video crop

Open
#6,989 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
150k
Forks
13.8k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.
I offen watch phone video and operate phone on my laptop, but when i watch video, the black borders on both sides of the video are too big , because most video is 16:9 ratio, but my phone screen is 19:9 ratio, so when i watch video, i will crop video to 640x360 (16:9), when i operate phone, i will use its original ratio 19:9. I do use AHK script finished this feature automaticly according the phone screen mode (landscape or portrait), it works ok , but not perfectly, becaure there is a 3~4 second interruption during this mode change (because scrcpy can't do a dynamic corp, so ,when changing screen mode ,i have to close scrcpy process and restart it).

Describe the solution you'd like
I think scrcpy can do a crop on PC side, not really crop video, just display the area needed and hide the area not needed.

Describe alternatives you've considered

Additional context

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files, tests, or an entry point. Start by locating scrcpy’s PC-side display path and reviewing how it handles landscape and portrait changes. Done means the displayed area can change between the requested crop and the original ratio without restarting scrcpy or causing the reported interruption.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
desktop-dev, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.