Live screencasting from Ubuntu phone

After the previous post which describes how to send screen video from the Ubuntu phone to a file on your desktop via netcat, it occurred to me that it ought to be possible to just display your Ubuntu phone directly on your desktop’s screen in a window… and with basically the same trick, it is.

Connect to your Ubuntu phone with ssh: if the phone is plugged in with a cable then opening the Ubuntu SDK IDE’s Devices pane will let you do this, or there is a phablet-shell command which does the same thing when plugged in with a cable, and once you’ve done that once you can ssh to the phone over the network with ssh [email protected].

In that ssh session, run: mirscreencast -m /var/run/mir_socket --stdout --cap-interval 4 -s 360 640 | nc desktop-machine-ip-address 1234

In a separate terminal on your desktop machine, run: nc -l -p 1234 | mplayer -demuxer rawvideo -rawvideo w=360:h=640:format=rgba - (note the hyphen on the end of that command; it is important!)

and: you get your phone’s screen, live, in a window on your desktop. Handy for screencasting at conferences or for hangout video demonstrations or similar.

I'm currently available for hire, to help you plan, architect, and build new systems, and for technical writing and articles. You can take a look at some projects I've worked on and some of my writing. If you'd like to talk about your upcoming project, do get in touch.

More in the discussion (powered by webmentions)

  • (no mentions, yet.)