Skip to content
Janine edited this page May 29, 2015 · 11 revisions

Notes on the Webcam

Gstreamer supports encoding audio/video with the GPU using the OpenMAX plugin. The GPU can encode/decode 1080p30, so getting 480p30 shouldn't be an issue. Here's a guide to setting up a the Raspberry Pi to send video via UDP to a Linux PC: http://emmanuelgranatello.blogspot.com/2013/10/raspberry-pi-gstreamer-streaming-h264.html

The above page didn't provide good guidance. This page however is great and works well: http://uavmatrix.com/Blog/13

The Webcam itself does have a microphone

I have gotten streaming to work with mjpg-streamer and also motion.

This web site has some more info on getting audio: https://www.the-hawkes.de/a-raspberry-pi-powered-baby-monitor-12.html

Script Stop and Start commands

These commands are used to start/stop the script that will automatically attempt to connect to twitch on start-up or if a connection is lost during transmission.
Start: gst-launch-1.0
Stop: killall -9

Performance

Pi 2
Resolution: 320x240
FPS (configured): 20
FPS (observed, est): 20
Network: wireless
Latency (est): .5 sec
CPU: 21%
Software: mjpg-streamer
Client: Windows 7 / firefox
Notes: no stuttering

Note - CPU usage of flite (text-to-speech) was minimal whilst running with mjpg-streamer.

Original Pi Resolution: 320x240
FPS (configured): 20
FPS (observed, est): 20
Network: wireless
Latency (est): .5 sec
CPU: 73%
Software: mjpg-streamer
Client: Windows 7 / firefox
Notes: occasional hiccups in framerate

Resolution: 320x240
FPS (configured): 10
FPS (observed, est): 10
Network: wireless
Latency (est): .5 sec
CPU: 48%
Software: mjpg-streamer
Client: Windows 7 / firefox

Resolution: 320x240
FPS (configured): 10
FPS (observed, est): 10
Network: wired
Latency (est): .5 sec
CPU: 37%
Software: mjpg-streamer
Client: Windows 7 / firefox

ToDo: Profile Try to get audio working Put detailed instructions here for mjpg-streamer and motion.

Clone this wiki locally