Actually if you want Mira cast it does come enabled on the s5 neo stock Canadian version anyway and if not your always able to install custom Roms like both lineage os 15.1 and 14.1 works flawless with Mira cast even had a controller hooked up playing games lol
Samsung put a chipset capable of it just didn't enable them in some countries or os's it seems
screenrecord is an internal Android executable that dumps screen to a file, and ffplay from ffmpeg happens to be able to play an H.264 encoded stream from stdin:
sudo apt-get install ffmpeg
adb shell screenrecord --output-format=h264 - | ffplay -
There is some latency, but the image quality is great.
You might have to make the screen ...