Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
112.25k stars 10.73k forks source link

encoder cant be found (before c2.avc used to work) #4907

Open Lyzoic opened 6 months ago

Lyzoic commented 6 months ago

Environment

so my issue is that lately it has not been able to open my mysccrpy file, and it seems like there is 2 abd devices trying to connect, and I dont know if its possible disable tcpip by default, because it is searching for usb and tcpip both

also it seems that I have to end adb process on laptop when it cant connect sometimes.

third is, i have used c2.avc encoder for long but it doesnt work currently, I dont know why, whenever I take it away, it works (with quite bad quality), and it shows to be available on list atleast,

if anyone can assist little, here is from console:

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy --list-encoders scrcpy 2.4 https://github.com/Genymobile/scrcpy

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=opengl --encoder 'c2.android.hevc.encoder' scrcpy 2.4 https://github.com/Genymobile/scrcpy ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=opengl --encoder 'c2.android.hevc.encoder' scrcpy 2.4 https://github.com/Genymobile/scrcpy ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy -s 2UPN --no-audio --d --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=direct3d --encoder 'c2.android.hevc.encoder' scrcpy 2.4 https://github.com/Genymobile/scrcpy scrcpy: ambiguous option -- d

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=direct3d --encoder 'c2.android.hevc.encoder' scrcpy 2.4 https://github.com/Genymobile/scrcpy ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=opengl scrcpy 2.4 https://github.com/Genymobile/scrcpy INFO: ADB device found: INFO: --> (usb) (my device) device STK_LX1 INFO: (tcpip) emulator-5562 offline C:\Users\35844\Desktop\scrcpy-win64-v2.4\scrcpy-server: 1 file pushed, 0 skipped. 119.8 MB/s (69007 bytes in 0.001s) [server] INFO: Device: [HUAWEI] HONOR STK-LX1 (Android 10) INFO: Recording started to mp4 file: file.mp4 INFO: Renderer: opengl INFO: OpenGL version: 4.6.0 - Build 31.0.101.4255 INFO: Trilinear filtering enabled INFO: Texture: 408x888 INFO: Recording complete to mp4 file: file.mp4

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy --video-codec=h265 -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=opengl --encoder 'c2.android.hevc.encoder' scrcpy 2.4 https://github.com/Genymobile/scrcpy ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy --video-codec=h265 -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --render-driver=opengl scrcpy 2.4 https://github.com/Genymobile/scrcpy INFO: ADB device found: INFO: --> (usb) 2UPNW20806003620 device STK_LX1 INFO: (tcpip) emulator-5562 offline C:\Users\35844\Desktop\scrcpy-win64-v2.4\scrcpy-server: 1 file pushed, 0 skipped. 9.0 MB/s (69007 bytes in 0.007s) [server] INFO: Device: [HUAWEI] HONOR STK-LX1 (Android 10) INFO: Recording started to mp4 file: file.mp4 INFO: Renderer: opengl INFO: OpenGL version: 4.6.0 - Build 31.0.101.4255 INFO: Trilinear filtering enabled INFO: Texture: 408x888 INFO: Recording complete to mp4 file: file.mp4

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy --video-codec=h265 -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --encoder 'c2.android.avc.encoder' scrcpy 2.4 https://github.com/Genymobile/scrcpy ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

C:\Users\35844\Desktop\scrcpy-win64-v2.4>scrcpy --video-codec=h265 -s 2UPN --no-audio --record=file.mp4 -m 888 -b 8M --max-fps 60 --encoder 'c2.android.avc.encoder'

rom1v commented 6 months ago

ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

Replace --encoder by --video-encoder. This has changed in scrcpy 2.0 when audio was introduced.

scrcpy: ambiguous option -- d

It's -d, not --d.

Lyzoic commented 6 months ago

ERROR: --encoder has been removed, use --video-encoder or --audio-encoder.

Replace --encoder by --video-encoder. This has changed in scrcpy 2.0 when audio was introduced.

scrcpy: ambiguous option -- d

It's -d, not --d.

Oh damn, thanks alot! Seems also it works when I removed -s and serial number (doesn't flash ane close the scrcpy quick anymore) I dont understand why tho, had it to do something at registering as it shows my device twice on google authorized devices as well(because I think some of honor lite phones has a similar firmware or something?) or I just dummily had both activated, works good now thanks :). And encoder works well, thanks!