Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
105.37k stars 10.23k forks source link

Phone always freezes as a result of ./scrcpy . #1154

Open StacktraceException opened 4 years ago

StacktraceException commented 4 years ago

adb -s 192.168.1.117:5555 shell screenrecord /sdcard/file.mp4

ERROR: unable to start codec (err=-12)
WARNING: failed at 480x800, retrying at 720x1280
ERROR: unable to start codec (err=-12)

./scrcpy -s 192.168.1.117:5555 --no-display --record file.mkv

INFO: scrcpy 1.12.1 <https://github.com/Genymobile/scrcpy>
C:\Users\Loombard\Downloads\scrcpy-win64-v1.12.1\scrcpy-server: 1 file pushed. 0.8 MB/s (26202 bytes in 0.033s)
adb.exe: error: more than one device/emulator
ERROR: "adb reverse" returned with value 1
WARN: 'adb reverse' failed, fallback to 'adb forward'
27183
INFO: Recording started to matroska file: file.mkv
INFO: Finishing recording...
[server] ERROR: Exception on thread Thread[main,5,main]
android.media.MediaCodec$CodecException: start failedERROR: Recording failed to file.mkv

        at android.media.MediaCodec.native_start(Native Method)
        at android.media.MediaCodec.start(MediaCodec.java:2018)
WARN: Device disconnected
        at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:71)
        at com.genymobile.scrcpy.Server.scrcpy(Server.java:34)Press any key to continue...

(After about a minute of the display freeze, the preexistent ADB wireless connection gets changed in such a way that the adb shell prints out device offline).

S3 Mini i8190 , Resurrection Remix ROM, Android 7.1.2. Windows 10.

Destro- commented 3 years ago

Same problem on S3 Mini i8190L ROM Resurrection Remix 6.0.1...

Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.

D:\Android\gui-scrcpy\scrcpy>scrcpy
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
D:\Android\gui-scrcpy\scrcpy\scrcpy-se...ped. 39.5 MB/s (33622 bytes in 0.001s)
[server] INFO: Device: samsung GT-I8190 (Android 6.0.1)
INFO: Renderer: direct3d
INFO: Initial texture: 480x800
WARN: Device disconnected -- > (Device freeze!)
Press any key to continue...

@Edit Is H264 codec problem, for so many years none ROMs has solve this problem.... :s https://forum.xda-developers.com/showthread.php?t=2422061 Only this app works for screen recording using a software codec.