Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
106.84k stars 10.33k forks source link

Scrcpy doesnt work #5066

Open Sfixen opened 4 weeks ago

Sfixen commented 4 weeks ago
 - Device model: Xiaomi Pocophone F1
 - Android version: 13

scrcpy 2.5 https://github.com/Genymobile/scrcpy WARN: Could not disable minimize on focus loss INFO: ADB device found: INFO: --> (usb) 32bd1364 device POCO_F1 /usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 126.9 MB/s (69624 bytes in 0.001s) [server] INFO: Device: [Xiaomi] Xiaomi POCO F1 (Android 13) INFO: Renderer: opengl INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.1.2 INFO: Trilinear filtering enabled INFO: Texture: 1080x2240 ERROR: [FFmpeg] [OpenH264] this = 0x0x7f0410002100, Error:NAL_UNIT_PREFIX: DecInitBits() fail due invalid access. ERROR: [FFmpeg] DecodeFrame failed ERROR: Decoder 'video': could not send video packet: -1313558101 ERROR: Demuxer error ERROR: Demuxer 'audio': stream disabled due to connection error

rom1v commented 4 weeks ago
$ printf '%x' 1313558101 | xxd -r -p | rev
UNKN

It's AVERROR_UNKNOWN. As I sad in #4928, it's either a bug in the encoder or the decoder.

Please test the following:

scrcpy --no-playback --record=file.mp4

And play the file with a video player like VLC. Does it work?

Since the other bug report is also on Fedora, I suspect it is a decoder issue.

WARN: Could not disable minimize on focus loss

This other problem is unexpected (even if this is just a warning). This suggests this might be a build/packaging issue.

Could you please try to install the latest version by the install_release.sh script: https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version

Sfixen commented 4 weeks ago

the recorded video is just a black screen, also i installed it again from the script and it still says thats WARN: "Could not disable minimize on focus loss" in the beggining

rom1v commented 4 weeks ago

the recorded video is just a black screen

On every app?

Sfixen commented 4 weeks ago

yes, only the audio can be heard

rom1v commented 4 weeks ago

And with another video encoder: https://github.com/Genymobile/scrcpy/blob/master/doc/video.md#encoder

?

Sfixen commented 4 weeks ago

I tested all 5 and only 2 work, both of them have a noticeable delay and low fps. What's weird is that i used scrcpy with the same phone and computer before i reinstalled fedora and everything was working.