Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
106.47k stars 10.31k forks source link

other encoders? #4650

Open astroskyoffical opened 5 months ago

astroskyoffical commented 5 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

I use a low end laptop as a scrcpy shell. I have the most minimal windows and debloatef the entire laptop and even turn off explorer.exe and all composting with a single script when I wirelessly scrcpy into my phone to fill screen it. However. Sometimes I experience weird delay. Is there other encoders on the PC side I can use besides what it runs stock? Is there any other way to optimize this? I try to desktop mode with my phone onto the laptop and it works. Pretty dang useful. Turns a below useful laptop into a powerful android PC that can game and run termux. But I do want to optimize it's abitly to process the frames it receives from scrcpy. Any way to do so? The resolution is already low. Doesn't run higher than 1280x720. The other option I use is Miracast and it's horrible for latency. Scrcpy is way better but I want to know what else I can do to improve it.

rom1v commented 5 months ago

There is no encoder on the desktop side, only a decoder.

I wirelessly scrcpy into my phone to fill screen it

The delay typically comes from the wireless network (e.g. when a network packet is lost). Try over USB to confirm.

You can reduce the bit rate to minimize the network latency (scrcpy -b2M), but the quality will suffer (using --video-codec=h265 -b2M should limit the quality downgrade).

astroskyoffical commented 5 months ago

There is no encoder on the desktop side, only a decoder.

I wirelessly scrcpy into my phone to fill screen it

The delay typically comes from the wireless network (e.g. when a network packet is lost). Try over USB to confirm.

You can reduce the bit rate to minimize the network latency (scrcpy -b2M), but the quality will suffer (using --video-codec=h265 -b2M should limit the quality downgrade).

I noticed on Mac it's metal and on windows it's different. Is there different choices to pick when it comes to the renderer ?

astroskyoffical commented 5 months ago

There is no encoder on the desktop side, only a decoder.

I wirelessly scrcpy into my phone to fill screen it

The delay typically comes from the wireless network (e.g. when a network packet is lost). Try over USB to confirm.

You can reduce the bit rate to minimize the network latency (scrcpy -b2M), but the quality will suffer (using --video-codec=h265 -b2M should limit the quality downgrade).

Also scrcpy depends on wifi. Can scrcpy use wifi direct? Let's say I don't have wifi around me. How can scrcpy be used? Besides using USB. Miracast uses wifi direct so wifi around me is not needed. Can scrcpy use that?