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

后端 未结 5 688
半阙折子戏
半阙折子戏 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:53

    Since vlc can't play the h264 file from adb std output, I turn to use ffplay as stream player and it works via the following command:

    adb shell screenrecord --output-format=h264 - | ffplay -
    

    OS X binary ffplay and streaming screens:

    enter image description here

    Thanks!!

提交回复
热议问题