8000 Don't work on RedMi4A · Issue #61 · openstf/minicap · GitHub
[go: up one dir, main page]

Skip to content

Don't work on RedMi4A #61

Closed
Closed

Description

@raychin

C:\Users\HD-QL24>adb -s dde9d49f1f583 shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -P 720x1280@180x320/0
PID: 11177
INFO: Using projection 720x1280@180x320/0

I work in windows10 , and RedMi4A。no show "ok"!
How to solve?

Activity

  1. sorccu commented on Jun 2, 2017

    @sorccu
    Member

    I bought a Redmi 4A to test it out and it works fine.

    + adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 720x1280@720x1280/0 -t
    PID: 12033
    INFO: Using projection 720x1280@720x1280/0
    INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
    INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
    INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
    INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
    INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
    INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
    INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
    INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder
    INFO: (external/MY_minicap/src/minicap_23.cpp:284) Destroying virtual display
    OK
    

    It also works in STF.

    And it also works with your extremely small resolution:

    + adb shell LD_LIBRARY_PATH=/data/local/tmp/minicap-devel /data/local/tmp/minicap-devel/minicap -P 720x1280@180x320/0 -t
    PID: 12112
    INFO: Using projection 720x1280@180x320/0
    INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
    INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
    INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
    INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
    INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
    INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
    INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
    INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder
    INFO: (external/MY_minicap/src/minicap_23.cpp:284) Destroying virtual display
    OK
    
    % adb devices -l
    List of devices attached
    redacted          device usb:338690048X product:rolex model:Redmi_4A device:rolex
    

    MIUI 8.2.6.0.

  2. sorccu commented on Jun 2, 2017

    @sorccu
    Member

    Note that people have had issues with character sets messing with ADB. Changing the character set has solved mysterious issues like this in the past. Might want to try setting your terminal to UTF-8.

  3. Locotar commented on Jul 18, 2017

    @Locotar

    I have found the same issues at the beginning, then i find that version of minicap.so is not correct : (
    You can check the SDK version, and choose a correct version. Have a try~
    SDK=$(adb shell getprop ro.build.version.sdk | tr -d '\r')
    adb push jni/minicap-shared/aosp/libs/android-$SDK/$ABI/minicap.so /data/local/tmp/

  4. raychin commented on Jul 26, 2017

    @raychin
    Author

    OK , Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0