<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.raspberrytorte.com/index.php?action=history&amp;feed=atom&amp;title=Streaming_Video</id>
		<title>Streaming Video - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.raspberrytorte.com/index.php?action=history&amp;feed=atom&amp;title=Streaming_Video"/>
		<link rel="alternate" type="text/html" href="http://wiki.raspberrytorte.com/index.php?title=Streaming_Video&amp;action=history"/>
		<updated>2026-06-30T19:30:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.4</generator>

	<entry>
		<id>http://wiki.raspberrytorte.com/index.php?title=Streaming_Video&amp;diff=852&amp;oldid=prev</id>
		<title>Martin: Created page with &quot; Category:RaspberryPi Category:Projects  == Introduction == The objective of this How To is install setup and stream high resolution, high frame rate video from your R...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.raspberrytorte.com/index.php?title=Streaming_Video&amp;diff=852&amp;oldid=prev"/>
				<updated>2015-03-28T17:04:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &lt;a href=&quot;/index.php?title=Category:RaspberryPi&quot; title=&quot;Category:RaspberryPi&quot;&gt;Category:RaspberryPi&lt;/a&gt; &lt;a href=&quot;/index.php?title=Category:Projects&quot; title=&quot;Category:Projects&quot;&gt;Category:Projects&lt;/a&gt;  == Introduction == The objective of this How To is install setup and stream high resolution, high frame rate video from your R...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
[[Category:RaspberryPi]]&lt;br /&gt;
[[Category:Projects]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
The objective of this How To is install setup and stream high resolution, high frame rate video from your Raspberry Pi (with a Camera module) over a network.&lt;br /&gt;
Based on [http://www.ics.com/blog/raspberry-pi-camera-module#.VJFhbyvF-b8].&lt;br /&gt;
&lt;br /&gt;
=== Equipment ===&lt;br /&gt;
* Raspberry Pi&lt;br /&gt;
* Raspberry Pi camera module&lt;br /&gt;
&lt;br /&gt;
=== Initial Setup ===&lt;br /&gt;
It is assumed that your Raspberry Pi is running Raspian and that the camera module is connected correctly.&lt;br /&gt;
Familiarity with the command line prompt is of benefit as most of the work here is via the command line.&lt;br /&gt;
If you&amp;#039;re using the desktop, open a Terminal from the desktop menu or use a remote connection via SSH [[Enable SSH#Connect_via_SSH_on_a_Local_network]] &lt;br /&gt;
&lt;br /&gt;
To test the camera is working take a picture from the camera.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cd ~&lt;br /&gt;
$ raspistill -o test_image.jpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To check the picture use the file browser the picture should be in your home folder (~) [http://thepihut.com/blogs/raspberry-pi-tutorials/16021420-how-to-install-use-the-raspberry-pi-camera].&lt;br /&gt;
&lt;br /&gt;
If its not working, try the following,&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get update&lt;br /&gt;
$ sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
check the camera is enabled&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo raspi-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Reboot to bring your pi back up in a known good state and hopefully a retest of the picture capture will work.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Streaming ==&lt;br /&gt;
=== Install vlc ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install vlc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enable he v4l module&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo modprobe bcm2835-v4l2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== VLC command ===&lt;br /&gt;
Use the command line version of vlc to directly stream the camera output to a port.&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; &lt;br /&gt;
white-space: -moz-pre-wrap; &lt;br /&gt;
white-space: -pre-wrap; &lt;br /&gt;
white-space: -o-pre-wrap; &lt;br /&gt;
word-wrap: break-word;&amp;quot;&amp;gt;&lt;br /&gt;
cvlc v4l2:///dev/video0 --v4l2-width 640 --v4l2-height 480 --v4l2-chroma h264 --sout &amp;#039;#standard{access=http,mux=ts,dst=0.0.0.0:8085}&amp;#039; &amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change the &amp;lt;code&amp;gt;--v4l2-width&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;--v4l2-height&amp;lt;/code&amp;gt; to adjust the screen resolution.&lt;br /&gt;
I&amp;#039;ve tested up to 1900 x 1080.&lt;br /&gt;
Change &amp;lt;code&amp;gt;8085&amp;lt;/code&amp;gt; to adjust the port to broadcast on.&lt;br /&gt;
&lt;br /&gt;
=== Monitor the Stream ===&lt;br /&gt;
Check that this is working by monitoring the stream on anther PC (is best).&lt;br /&gt;
We need to know the IP address of your Pi on your network and the port (from above):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig | grep &amp;#039;inet addr:&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
should give something like&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    inet addr:192.168.0.31  Bcast:192.168.0.255  Mask:255.255.255.0&lt;br /&gt;
    inet addr:127.0.0.1  Mask:255.0.0.0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Point your Firefox browser to the address &amp;lt;code&amp;gt;http://192.168.0.31:8085&amp;lt;/code&amp;gt; to see the live feed.&lt;br /&gt;
Alternatively use the same address in the VLC GUI under a &amp;#039;Open Network Stream&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Stream Capture ==&lt;br /&gt;
It is possible to capture the stream on any computer than can see the stream.&lt;br /&gt;
If your router is correctly configured the stream can be viewed by any computer on the internet.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Use VLC to record the stream (use the figures below as a guide)&lt;br /&gt;
# Enter the network stream address&lt;br /&gt;
# Select the Convert Save button&lt;br /&gt;
# Create a Raw Capture Profile using the &lt;br /&gt;
# Select the Raw profile and select the file save location.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:VLC_convert_save.png|VLC_convert_save.png&lt;br /&gt;
File:VLC_convert_save_open_media_network.png|VLC_convert_save_open_media_network.png&lt;br /&gt;
File:VLC_convert_save_raw_profile.png|VLC_convert_save_raw_profile.png&lt;br /&gt;
File:VLC_convert_save_open_media_network_convert.png|VLC_convert_save_open_media_network_convert.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== TO DO LIST ==&lt;br /&gt;
# Add scripts for running the code from a script&lt;br /&gt;
# How to set up a router to forward a stream port&lt;br /&gt;
# How to get your internet IP address for external viewing (no-ip)&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
# [http://www.ics.com/blog/raspberry-pi-camera-module#.VJFhbyvF-b8 ICS Insight Blog&amp;gt;The Raspberry Pi Camera Module]&lt;br /&gt;
# [http://thepihut.com/blogs/raspberry-pi-tutorials/16021420-how-to-install-use-the-raspberry-pi-camera How to take a photo with your Raspberry Pi]&lt;/div&gt;</summary>
		<author><name>Martin</name></author>	</entry>

	</feed>