Use adb screenrecord command to mirror Android screen to PC via USB

后端 未结 5 684
半阙折子戏
半阙折子戏 2020-12-07 11:26

I\'ve tried the suggestion from fadden to mirror the Android screen to PC, but the vlc player screen show nothing:

5条回答
  •  佛祖请我去吃肉
    2020-12-07 11:49

    Using any of the adb shell commands produced corrupted data for me. Using adb exec-out, as noted by lord-ralf-adolf in a comment on the accepted answer, fixed the problem.

    I used this exact command to get optimal video quality and minimal lag from a Galaxy S6:

    adb exec-out screenrecord --output-format=h264 --size 540x960 - | ffplay -framerate 60 -framedrop -bufsize 16M -
    

提交回复
热议问题