User avatar
Datarhei
Posts: 3
Joined: Sun Jan 03, 2016 5:14 pm
Location: Zurich / Switzerland

Live video streaming on your website with Raspberry Pi Cam

Wed Jan 13, 2016 5:49 pm

Hello Raspberry Pi Community

We just realeased our open source project "Datarhei/Restreamer" on GitHub a few days ago. It is available under: https://datarhei.github.io/restreamer

The Datarhei/Restreamer allows free video streaming. The H.264 video is displayed via iFrame on the website. Even the video player is included. There is no streaming providers required and there are no monthly fees because your own internet connection is used for streaming. It can be streamed to external video services like YouTube Live, Ustream, Twitch or Livestream.com to use these services as a distributor for your video, too. Streamingservers like WOWZA or Adobe Media Server are supported. Our Docker image is easy to install and runs on Linux, MacOS and Windows. Datarhei/Restreamer can be perfectly combined with single-board computers like Raspberry Pi, Pi Zero and Odroid.

The elaborate installations and configuration :cry: of the needed programs to stream a camera, falls completely away with the Restreamer. :D

Image

Main features:
1. H.264 Streaming
2. IP-Camera (RTSP/RTP), USB and Raspberry Pi Camera support
3. HLS Streaming for iOS and Android
4. HTML5 Open Source Video Player (Clappr)
5. iFrame code for embedding on website
6. Snapshot of running stream (adjustable interval)
7. External streaming to YouTube, Ustream, Livestream.com, Twitch or professional streaming server solutions of service providers (user account for used service required)
8. Easy installation with Docker for Linux 64bit, Windows, OSX, ARMv6l (Pi 1/Linux), ARMv7l (Pi2 (Linux), Odroid U3 (Linux)
9. Datarhei/Restreamer ist free Software (licensed under Apache 2.0) and you can use it for any purpose, private or commercial

Comments:
1. Raspberry Pi camera and USB cams are not implemented in the UI yet, you have to activate them over a sweet and easy hack.
2. You are using your own internet connection for streaming your internet connection will overload with a large number of spectators. It depends on your video resolution, internetupload and the video motive you are streaming (water is not the same as still life). The Restreamer shows you the bandwidth of your camera. It helps to can calculate, at how much viewers your upload is no longer sufficient. Information about video compression can be found in our Wiki
3. The installation of Dockerfiles requires some time while a complete image is rolled out. Once this process is running, you can sit back and go drink a coffee. Depending on the CPU power of your computer, the process may take some time.
4. Please do not forget to forward port 8080 in your router, as described in the instructions to forward (port forwarding), if you want to use the iFrame code on your website.

If you notice errors or discrepancies, we are very grateful for constructive feedback. You are welcome to comment also feature requests for future versions of the Restreamer. The project is young, we ask for understanding if there are rough edges here and there. We work hard to fix things...

Everyone is very welcome to use the Webchat or our Forum for questions around the Restreamer on Google Groups. In our Wiki some questions about the technical aspects of Live Streaming are already answered. You can also make comments in this beautiful raspberrypi.org forum.

Thank you for your time and feedback. ;)

Friendly greets
The Datarhei Team
(Sven)

PS: If you like software development, can also forks on GitHub and start developing - Everyone is welcome, there is always something to do!
Stream me up, Scotty!
GitHub ☺ ► https://datarhei.github.io/restreamer/
Twitter ☺ ►https://www.twitter.com/datarhei
Chat ☺ ► https://chat.datarhei.org
Facebook ☺ ► https://www.facebook.com/datarhei/

User avatar
mikronauts
Posts: 2823
Joined: Sat Jan 05, 2013 7:28 pm

Re: Live video streaming on your website with Raspberry Pi C

Wed Jan 13, 2016 6:10 pm

Thank you for making this.

I do have a few questions...

1) what is the typical latency over WiFi for 720p? 480p? (in ms or frames)

2) do you support a bitmap overlay to be added before encoding?

Regards,

Bill
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
cyrano
Posts: 718
Joined: Wed Dec 05, 2012 11:48 pm
Location: Belgium

Re: Live video streaming on your website with Raspberry Pi C

Wed Jan 13, 2016 8:55 pm

Waw! Sounds great! Thanks for sharing!

Need to find time to test.

User avatar
Datarhei
Posts: 3
Joined: Sun Jan 03, 2016 5:14 pm
Location: Zurich / Switzerland

Re: Live video streaming on your website with Raspberry Pi C

Wed Jan 13, 2016 8:58 pm

mikronauts wrote: 1) what is the typical latency over WiFi for 720p? 480p? (in ms or frames)
The Datarhei/Restreamer works with HLS. We are working with 2s HLS chunks as minimum. On top the FFmpeg Buffer and the Videoplayer i estimate about 3-7 seconds latency as default.
mikronauts wrote: 2) do you support a bitmap overlay to be added before encoding?
At the moment we are not encoding on the Raspberry Pi. It is not possible cause of the missing CPU power on an Raspi.
If you think of adding an logo to your player: You could add an PNG or JPG in the Clappr video player we are using.

Keep on streaming!
Sven

(EDIT - changed transcoding to encoding )
Stream me up, Scotty!
GitHub ☺ ► https://datarhei.github.io/restreamer/
Twitter ☺ ►https://www.twitter.com/datarhei
Chat ☺ ► https://chat.datarhei.org
Facebook ☺ ► https://www.facebook.com/datarhei/

NabeelLass
Posts: 16
Joined: Fri Jun 26, 2015 3:53 pm

Re: Live video streaming on your website with Raspberry Pi C

Mon Mar 07, 2016 10:03 pm

Support Raspberrypi Zero as well?

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK

Re: Live video streaming on your website with Raspberry Pi C

Mon Mar 07, 2016 10:10 pm

Sounds good
Will it support EZCAP or other video grabbers.
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

mohog
Posts: 75
Joined: Wed May 08, 2013 11:53 am

Re: Live video streaming on your website with Raspberry Pi C

Mon May 09, 2016 5:19 pm

What is the default resolution for streaming with a raspicam?

Can I adjust the resolution?

Smashnet
Posts: 1
Joined: Tue May 17, 2016 1:36 pm

Re: Live video streaming on your website with Raspberry Pi C

Tue May 17, 2016 1:39 pm

Nice one!

What about using the raspberrys integrated H264 hardware encoder? As far as I know, you can access it using gstreamer and its OpenMAX plugins.

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

Re: Live video streaming on your website with Raspberry Pi C

Mon Jul 04, 2016 2:51 pm

Can I view stream on VLC?

allegfede
Posts: 26
Joined: Fri Jan 17, 2014 12:01 pm

Re: Live video streaming on your website with Raspberry Pi C

Fri Aug 19, 2016 4:45 pm

seems has a little bugs ....
expecially with usb cameras .....

hard to get in the login page .... hard to seek the usb captured video ..... hard to understand if docker is running and if data is to get fetched by the internet .....

keep going, a lot of work to do ;-)

Return to “Camera board”