How to use `adb shell screenrecord --output-format=h264` together with VLC I am trying to set up a live stream showing the screen of my Android phone. When I tried

adb shell screenrecord --output-format=h264 | /Applications/vlc.app/Contents/MacOS/VLC


VLC will start but there will be no content. How do I do this properly?
Your command adb shell screenrecord --output-format=h264
is missing a - at the end.
It should be

adb shell screenrecord --output-format=h264 - | /Applications/vlc.app/Contents/MacOS/VLC -