Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4e926e107b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (12 sloc) 0.346 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh
# run the script: ./listen.sh
# it will listen on port 65001 for incoming videos from a ShirtCam
# (osx only: if you want to use on linux/windows, dont "open" the video:
# `nc -l 65001 | pv > ${VIDEO_COUNT}.mp4`
# )

VIDEO_COUNT=0
while true
do
  VIDEO_COUNT+=1
  `nc -l 65001 | pv > ${VIDEO_COUNT}.mp4 && open ${VIDEO_COUNT}.mp4`
done
Something went wrong with that request. Please try again.