Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lyzoic opened this issue May 7, 2024 · 2 comments
Open

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

Lyzoic opened this issue May 7, 2024 · 2 comments

Comments

@Lyzoic
Copy link

Lyzoic commented May 7, 2024

Environment

  • OS: Windows, msi laptop
  • scrcpy version: 2.4
  • installation method: manual
  • device model: huawei honor 10
  • Android version: 10

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

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    INFO: ADB device found:
    INFO: --> (usb) 2UPNW20806003620 device STK_LX1
    C:\Users\35844\Desktop\scrcpy-win64-v2.4\scrcpy-server: 1 file pushed, 0 skipped. 8.7 MB/s (69007 bytes in 0.008s)
    [server] INFO: Device: [HUAWEI] HONOR STK-LX1 (Android 10)
    [server] INFO: List of video encoders:
    --video-codec=h264 --video-encoder='OMX.hisi.video.encoder.avc'
    --video-codec=h264 --video-encoder='c2.android.avc.encoder'
    --video-codec=h264 --video-encoder='OMX.google.h264.encoder'
    --video-codec=h265 --video-encoder='OMX.hisi.video.encoder.hevc'
    --video-codec=h265 --video-encoder='c2.android.hevc.encoder'
    [server] INFO: List of audio encoders:
    --audio-codec=opus --audio-encoder='c2.android.opus.encoder'
    --audio-codec=aac --audio-encoder='c2.android.aac.encoder'
    --audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
    --audio-codec=flac --audio-encoder='c2.android.flac.encoder'
    --audio-codec=flac --audio-encoder='OMX.google.flac.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 --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
Copy link
Collaborator

rom1v commented May 7, 2024

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
Copy link
Author

Lyzoic commented May 7, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants