tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

how do I live stream pi camera

Mon Jul 04, 2016 3:25 pm

Hi

I want to live stream pi camera module using offcial OS Raspian with reasonable delay. I dont want to use OS images for streaming. I want easy and recent method not old and slow one. I searched and found methods by installing much packages I didn't like and got confused.

and I want to be able to view stream on mobile android/ios and vlc application.

my raspberry pi is 3 and offcial operating system installed Rasbian.

RpiName
Posts: 717
Joined: Sat Jul 06, 2013 3:14 am

Re: how do I live stream pi camera

Mon Jul 04, 2016 3:34 pm

tony power wrote:I want to live stream pi camera module using offcial OS Raspian with reasonable delay. I dont want to use OS images for streaming. I want easy and recent method not old and slow one. I searched and found methods by installing much packages I didn't like and got confused.

and I want to be able to view stream on mobile android/ios and vlc application.
If you do not want to install any additional software, I do not think that is possible, otherwise install UV4L and choose one of the many ways for streaming mentioned here:

http://www.linux-projects.org/uv4l/tutorials/

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26659
Joined: Sat Jul 30, 2011 7:41 pm

Re: how do I live stream pi camera

Tue Jul 05, 2016 9:10 am

tony power wrote:Hi

I want to live stream pi camera module using offcial OS Raspian with reasonable delay. I dont want to use OS images for streaming. I want easy and recent method not old and slow one. I searched and found methods by installing much packages I didn't like and got confused.

and I want to be able to view stream on mobile android/ios and vlc application.

my raspberry pi is 3 and offcial operating system installed Rasbian.
You can use a combination of raspivid and gstreamer (note, these are C&P from my notes, so may be out of date)

Code: Select all

raspivid -fps 15 -b 400000 -t 0 -n -w 640 -h 480 -o - | tee | gst-launch-1.0 fdsrc ! h264parse ! rtph264pay ! udpsink host=192.168.1.255 port=5000
That will stream out H264 in a RTP stream on port 5000. Another device could connect to that and display it.

On another P (or the same one!) to receive you could do something like this.

Code: Select all

gst-launch-1.0 --gst-debug 3 udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! omxh264dec ! "video/x-raw, format=(string)I420" ! eglglessink
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: how do I live stream pi camera

Tue Jul 05, 2016 9:35 am

tony power wrote:Hi

I want to live stream pi camera module using offcial OS Raspian with reasonable delay. I dont want to use OS images for streaming. I want easy and recent method not old and slow one. I searched and found methods by installing much packages I didn't like and got confused.

and I want to be able to view stream on mobile android/ios and vlc application.
Well then, I should plug my own android app ;)

viewtopic.php?t=67571
Android app - Raspi Card Imager - download and image SD cards - No PC required !

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

Re: how do I live stream pi camera

Thu Jul 07, 2016 1:56 am

jamesh wrote:
tony power wrote:Hi

I want to live stream pi camera module using offcial OS Raspian with reasonable delay. I dont want to use OS images for streaming. I want easy and recent method not old and slow one. I searched and found methods by installing much packages I didn't like and got confused.

and I want to be able to view stream on mobile android/ios and vlc application.

my raspberry pi is 3 and offcial operating system installed Rasbian.
You can use a combination of raspivid and gstreamer (note, these are C&P from my notes, so may be out of date)

Code: Select all

raspivid -fps 15 -b 400000 -t 0 -n -w 640 -h 480 -o - | tee | gst-launch-1.0 fdsrc ! h264parse ! rtph264pay ! udpsink host=192.168.1.255 port=5000
That will stream out H264 in a RTP stream on port 5000. Another device could connect to that and display it.

On another P (or the same one!) to receive you could do something like this.

Code: Select all

gst-launch-1.0 --gst-debug 3 udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! omxh264dec ! "video/x-raw, format=(string)I420" ! eglglessink
thank you for the reply
but I want the stream to be viewable using the browser or vlc at least not through a command for my project

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

Re: how do I live stream pi camera

Thu Jul 07, 2016 1:57 am

mikerr wrote:
tony power wrote:Hi

I want to live stream pi camera module using offcial OS Raspian with reasonable delay. I dont want to use OS images for streaming. I want easy and recent method not old and slow one. I searched and found methods by installing much packages I didn't like and got confused.

and I want to be able to view stream on mobile android/ios and vlc application.
Well then, I should plug my own android app ;)

viewtopic.php?t=67571
Thank you
but I want to view stream using browser or vlc not through third party application this the requirement of my project

tony power
Posts: 33
Joined: Tue Mar 08, 2016 9:07 pm

Re: how do I live stream pi camera

Sat Jul 09, 2016 4:38 pm

successfully done it using uv4l

Return to “Camera board”