Starting today you can download Windows 10 IoT Core Insider Preview with support for Raspberry Pi 2 and Intel’s Minnowboard Max. Windows 10 IoT Core is a new Windows 10 edition for low-cost, small-footprint devices that will be available ‘free’ for Makers and commercial device builders.
Get Started
Click to Learn how to set up the Raspberry Pi 2 and connect it to your computer. Note that this requires you to have a PC running Windows 10 Technical Preview.
Thursday, April 30, 2015
Stream RPi Camera Module Video to network, using Python
It's a example on Picamera docs - Recording to a network stream , to stream video of Raspberry Pi Camera Module to network using Python.
In this scenario, the Pi acts as the server, waiting for a connection from the client. When it accepts a connection, it starts streaming video over it for 60 seconds.
Bo script is needed on the client side - we can simply use VLC with a network URL:
$ vlc tcp/h264://my_pi_address:8000/
There 2~3 seconds delay in my test on Raspberry Pi 2.
import socket
import time
import picamera
with picamera.PiCamera() as camera:
camera.resolution = (640, 480)
camera.framerate = 24
server_socket = socket.socket()
server_socket.bind(('0.0.0.0', 8000))
server_socket.listen(0)
# Accept a single connection and make a file-like object out of it
connection = server_socket.accept()[0].makefile('wb')
try:
camera.start_recording(connection, format='h264')
camera.wait_recording(60)
camera.stop_recording()
finally:
connection.close()
server_socket.close()
![]() |
| Run the Python on Raspberry Pi |
![]() |
| View on desktop using VLC |
In this scenario, the Pi acts as the server, waiting for a connection from the client. When it accepts a connection, it starts streaming video over it for 60 seconds.
Bo script is needed on the client side - we can simply use VLC with a network URL:
$ vlc tcp/h264://my_pi_address:8000/
There 2~3 seconds delay in my test on Raspberry Pi 2.
Tuesday, April 28, 2015
Install VLC Media Player on Raspberry Pi
VLC is a free and open source cross-platform multimedia player. To install VLC on Raspberry Pi, enter the command at Terminal:
$ sudo apt-get install vlc
$ sudo apt-get install vlc
Subscribe to:
Posts (Atom)


