Created
November 12, 2016 14:53
-
-
Save elhigu/b50cb756bee1666fc7cdb5cecce18c55 to your computer and use it in GitHub Desktop.
Record Raspberry PI camera module stream and vector data directly with remote computer (a.k.a I <3 Netcat! a.k.a. Netcat te amo!)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nc yourrpi-address.duckdns.org 3000 > video.h264 & | |
| nc yourrpi-address.duckdns.org 3001 > vectors.out & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /opt/vc/bin/raspivid -t 0 -hf -b 1000000 -n -md 4 -ex night -awb off -awbg 1.0,2.5 -o sendvideo.fifo -x sendvectors.fifo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkfifo videodata.fifo || true | |
| mkfifo vectordata.fifo || true | |
| cat videodata.fifo | nc -l -p 3000 & | |
| cat vectordata.fifo | nc -l -p 3001 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| killall nc |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So first start listening 3000 and 3001 ports on RPI by running
Then connect to RPI from remote machine with
Finally start capturing video and piping it directly to TCP connections on RaspberryPI