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.