Genymobile / Genymobile/scrcpy
Camera video issues
- 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: Manual build
- installation method: Manual Build
- device model: Redmi Note 11T Pro`(xaga)`
- Android version: 12
**Describe the bug**
On my device, when the camera size is set to `1920x1080`, the camera function can be used normally. But when the camera size is specified as (also the default) `4640x3472`, the camera cannot be displayed normally, and FFmpeg will also have errors.
```
D:\Tools\scrcpy-win64>scrcpy --video-source=camera --camera-facing=back
scrcpy v2.2
INFO: Camera video source: control disabled
INFO: Camera video source: microphone audio source selected
INFO: ADB device found:
INFO: --> (tcpip) 192.168.1.25:5555 device 22041216C
D:\Tools\scrcpy-win64\scrcpy-server: 1 file pushed, 0 skipped. 158.6 MB/s (64571 bytes in 0.000s)
[server] INFO: Device: [Xiaomi] Redmi 22041216C (Android 12)
INFO: Renderer: direct3d
[server] INFO: Using camera '0'
INFO: Texture: 4640x3472
INFO: [FFmpeg] concealing 62505 DC, 62505 AC, 62505 MV errors in I frame
INFO: [FFmpeg] concealing 62628 DC, 62628 AC, 62628 MV errors in P frame
INFO: [FFmpeg] concealing 62557 DC, 62557 AC, 62557 MV errors in P frame
INFO: [FFmpeg] concealing 62529 DC, 62529 AC, 62529 MV errors in P frame
INFO: [FFmpeg] concealing 62433 DC, 62433 AC, 62433 MV errors in P frame
INFO: [FFmpeg] concealing 62580 DC, 62580 AC, 62580 MV errors in P frame
INFO: [FFmpeg] concealing 62451 DC, 62451 AC, 62451 MV errors in P frame
INFO: [FFmpeg] concealing 62406 DC, 62406 AC, 62406 MV errors in P frame
INFO: [FFmpeg] concealing 62612 DC, 62612 AC, 62612 MV errors in P frame
INFO: [FFmpeg] concealing 62511 DC, 62511 AC, 62511 MV errors in P frame
INFO: [FFmpeg] concealing 62474 DC, 62474 AC, 62474 MV errors in P frame
INFO: [FFmpeg] concealing 62627 DC, 62627 AC, 62627 MV errors in P frame
INFO: [FFmpeg] concealing 62088 DC, 62088 AC, 62088 MV errors in P frame
INFO: [FFmpeg] concealing 62495 DC, 62495 AC, 62495 MV errors in P frame
INFO: [FFmpeg] concealing 62339 DC, 62339 AC, 62339 MV errors in P frame
INFO: [FFmpeg] concealing 62636 DC, 62636 AC, 62636 MV errors in P frame
INFO: [FFmpeg] concealing 62429 DC, 62429 AC, 62429 MV errors in P frame
INFO: [FFmpeg] concealing 62249 DC, 62249 AC, 62249 MV errors in P frame
INFO: [FFmpeg] concealing 62544 DC, 62544 AC, 62544 MV errors in P frame
INFO: [FFmpeg] concealing 62303 DC, 62303 AC, 62303 MV errors in P frame
INFO: [FFmpeg] concealing 62383 DC, 62383 AC, 62383 MV errors in P frame
INFO: [FFmpeg] concealing 62540 DC, 62540 AC, 62540 MV errors in P frame
INFO: [FFmpeg] concealing 62161 DC, 62161 AC, 62161 MV errors in P frame
INFO: [FFmpeg] concealing 62218 DC, 62218 AC, 62218 MV errors in P frame
ERROR: [FFmpeg] left block unavailable for requested intra4x4 mode -1
ERROR: [FFmpeg] error while decoding MB 0 2, bytestream d
INFO: [FFmpeg] concealing 62399 DC, 62399 AC, 62399 MV errors in P frame
INFO: [FFmpeg] concealing 62604 DC, 62604 AC, 62604 MV errors in P frame
WARN: Killing the server...
```
It's show like that

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported command with the Redmi Note 11T Pro setup and compare camera sizes 1920x1080 and 4640x3472. Use the provided FFmpeg decoding errors and the camera video path as the investigation boundary; done means the high-resolution camera stream displays without decoding errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c
- Domain
- audio-video-rtc, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100