Skip to content

Instantly share code, notes, and snippets.

@asquared
Last active February 9, 2018 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asquared/8d8ddbe9a7291804e2a144c1696e89ff to your computer and use it in GitHub Desktop.
Save asquared/8d8ddbe9a7291804e2a144c1696e89ff to your computer and use it in GitHub Desktop.
Raspberry Pi H.264 streaming over TCP
#!/bin/bash
apt-get install xinetd
cat > /etc/xinetd.d/camera << 'EOF'
service camera
{
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
server = /usr/bin/raspivid
server_args = -t 0 -b 10000000 -o -
port = 9999
user = root
instances = 1
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment