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

后端 未结 5 673
半阙折子戏
半阙折子戏 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条回答
  •  -上瘾入骨i
    2020-12-07 12:07

    mplayer

    For the low latency playback, the mplayer worked the best so far.

    adb shell screenrecord --output-format=h264 - | mplayer -framedrop -fps 6000 -cache 512 -demuxer h264es -
    

    Note: the above sets the mplayer to consume frames as soon as possible. Though, as a result, the playback window may be sluggish when waiting for new frames.

    The screenrecord has a 3 minutes time limit "feature". If you feel comfortable with recompiling it from code, here is a good link.

    After recompiling the screenrecord:

    adb shell screenrecord --time-limit=31000  --output-format=h264 - | mplayer -framedrop -fps 6000 -cache 512 -demuxer h264es -
    

提交回复
热议问题