Game Development Reference
In-Depth Information
Then, we update the aptitude and install the packages we need:
# apt-get update
# apt-get install gstreamer1.0
Streaming with FFmpeg
Arch Linux uses the latest branch of FFmpeg, but on Raspbian, we have to compile
FFmpeg manually. This can take up to 6 hours, but it has the best compatibility for
streaming directly from the camera module.
When you type in the last line, it will configure, compile, and install FFmpeg in one
go. Let it run and do not close the terminal window; however, just come back from
time to time to make sure there were no errors. If something goes wrong, you can
rerun the command, and it will go much faster as it tries to pick up from where
it stopped.
# cd /usr/src
# git clone git://source.ffmpeg.org/ffmpeg.git
# cd ffmpeg
# ./configure && make && make install
Raspivid
It is best to use the latest version of Raspivid. Let's download and compile the latest
version that is supported by the userland repository. This normally takes about
20 minutes to compile and install everything we need.
# sudo apt-get install git-core gcc build-essential cmake
# cd /tmp
# sudo mkdir code
# cd code
# git clone git://github.com/raspberrypi/userland.git
# cd userland
# sudo sed -i 's/if (DEFINED CMAKE_TOOLCHAIN_FILE)/if (NOT DEFINED #
CMAKE_TOOLCHAIN_FILE)/g' makefiles/cmake/arm-linux.cmake
# sudo mkdir build
# cd build
# sudo cmake -DCMAKE_BUILD_TYPE=Release ..
# sudo make
# sudo make install
 
Search WWH ::




Custom Search