Game Development Reference
In-Depth Information
Streaming Live HD Video
In this chapter, we are going to use the official HD camera module designed by
the Raspberry Pi Foundation . Unfortunately, at the time of writing, there was no
Video4Linux driver for this camera device and alternatives had to be used.
We will also be learning how to compile a custom version of the nginx-rtmp-module.
It is an add-on created by Roman Arutyunyan , and it is capable of retransmitting
RTMP video. It can also be used like a media center to list stored video files, play
them on demand, or capture live streams from other sites or cameras and record
or rebroadcast them.
Before starting with this chapter, you should have the camera module installed and
enabled as described in the instruction that was included with the module.
Streaming with GStreamer
At the time of writing, GStreamer from the OMX project is the only encoder that
supports hardware encoding and decoding on the Pi. It supports the extra licensed
encoders, and you can activate them by reading Chapter 3 , Configuring Extra Features .
GStreamer works really well for transmitting streams of video between Linux and
Mac OS X. This does not work on Windows as GStreamer is not supported on
Windows. Streaming live video to the VLC player or HLS format is not supported
properly using GStreamer.
We can add a repository and install the latest version of GStreamer from there.
We need to add this line into /etc/apt/sources.list :
deb http://vontaene.de/raspbian-updates/ . main
Search WWH ::




Custom Search