Stream AWS DeepLens video to a Windows PC over wireless

You can stream video from an AWS DeepLens camera over wi-fi. To do this on Windows, first, get mplayer from here:
https://sourceforge.net/projects/mplayerwin/?source=typ_redirect

Then, determine the IP address of your DeepLens camera, enable SSH, and ssh in once once to avoid this:

The authenticity of host '192.168.1.187 (192.168.1.187)' can't be established.
ECDSA key fingerprint is SHA256:sbKJiQl8IjGJ+X/hWekzBK8CxR/gCHR6qJfsq6JYHZY.
Are you sure you want to continue connecting (yes/no)? yes

You can then run the following commands to stream the video – the first command is the video before the ML algorithm hits it, and the second is after. If you don’t have SSH keys set up, you will be prompted for a password. The password prompt is rendered in the midst of the mplayer output, which can be a bit confusing.

To stop this, copy a key:

ssh-copy-id -i ~/.ssh/id_rsa aws_cam@192.168.1.187

Once you authenticate, it will take a few seconds to catch up, and spits out a lot of errors while this happens. For me, the video is also ~5 seconds behind.

ssh aws_cam@192.168.1.187 cat /opt/awscam/out/ch1_out.h264 | /d/software/mplayer/mplayer.exe -xy 800 –demuxer lavf -cache 8092 - 

ssh aws_cam@$ip_address cat /tmp/\*results.mjpeg |
  /d/software/mplayer/mplayer.exe –demuxer lavf -cache 8092 -lavfdopts format=mjpeg:probesize=32 -

Instructions adapted from here.

Leave a Reply

Your email address will not be published. Required fields are marked *