Skip to content

Instantly share code, notes, and snippets.

@xurizaemon
Last active November 9, 2018 02:25
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save xurizaemon/795f1f8fab9dab448f74 to your computer and use it in GitHub Desktop.
Save xurizaemon/795f1f8fab9dab448f74 to your computer and use it in GitHub Desktop.
Streaming to YouTube from Raspberry Pi via avconv with a Microsoft HD-3000 LifeCam.
#!/bin/bash
KEY=YOUR.KEYG-OESR-IGHT-HERE
URL=rtmp://a.rtmp.youtube.com/live2
while true ; do
avconv -ar 44100 -ac 2 -f s16le -i /dev/zero -f video4linux2 -s 640x360 -r 10 -i /dev/video0 -f flv "$URL/$KEY"
sleep 3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment