•  


encoder cant be found (before c2.avc used to work) · Issue #4907 · Genymobile/scrcpy · GitHub
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

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

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

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
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본