Genymobile / Genymobile/scrcpy
Scrcpy lagging while streaming to OBS Studio
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.7k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
- [x] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [x] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).
**Environment**
- OS: Windows
- scrcpy version: 2.0
- installation method: Windows release
- device model: Redmi Note 10 Pro (Indian Variant)
- Android version: 13
**Describe the bug**
I tried to stream my phone screen with SCRCPY using OBS Studio. I want it as a web cam so I open my Camera app (Open Camera) and streamed it via scrcpy. But after sometime it starts lagging. I think the right term for it would be "frame skipping", I don't really know. I have a pretty strong laptop specs and its not even consumed fully while streaming.
The settings I use in SCRCPY:
scrcpy -m 1280 -b 8M --max-fps=30 --turn-screen-off --stay-awake
The lag doesn't seem to be on my phone or Laptops ends. Its either in OBS or Scrcpy. I also came across this another term "Encoder Overloading" which I felt like could be the culprit but I am using my GPU as my encoder.
My Laptop Specs: Lenovo Legion I5 10th Gen NVIDIA 1650 16GB RAM 1.5 GB SSD
Please help with a solution on what to do to avoid this issue.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported setup with scrcpy 2.0 on Windows using Redmi Note 10 Pro, Android 13, OBS Studio, Open Camera, and the supplied command. Compare the stream in scrcpy and OBS to determine where frame skipping begins; done requires a reproducible cause and a confirmed way to avoid the lag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c
- Domain
- audio-video-rtc, desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100