RasPi to gstreame to Janus

1,031 views
Skip to first unread message

Shane Weddle

unread,
Feb 10, 2015, 1:20:31 PM2/10/15
to meetech...@googlegroups.com
Hello,

What I want to do:
- Stream audio and video (out only) via a Raspberry Pi with a USB web cam

What I have:
1) I have installed gstreame on the raspberry pi and its working via a local network VLC test.

Understandings/???:
- Is there a way I can send the stream using gstreame(or maybe FFMPEG) to a Janus-Gateway? 
- Do I need the Janus-Gateway running on the RasPi? or just a remote server? (this is something im not clear on in my readings)
- I have a EasyRTC server setup and know it well... Can I have a Janus-Gateway send the stream to it (to the Easy RTC servers IP and a Room.. then it tells Janus how to connect to the Clients in that room)?? 

Or maybe its best I not use EasyRTC at all and just user Janus as Gate-Way and WebRTC server?

ehh my brain it hurts.. thanks for the help!!!
Shane

Lorenzo Miniero

unread,
Feb 10, 2015, 1:30:22 PM2/10/15
to meetech...@googlegroups.com
You can use the streaming plugin to receive a stream from ffmpeg/gstreamer and make it available as a broadcast to other WebRTC peers. No eed to install Janus on the Pi, just forward the stream to a Janus server somewhere. Janus is a server, not a client, so I don't think it can connect to EasyRTC (but I'm unfamiliar with it so I wouldn't know).

L.

Shane Weddle

unread,
Feb 10, 2015, 3:02:20 PM2/10/15
to meetech...@googlegroups.com
Thanks Lorenzo!

I'm going to set up a Janus server on Digital Ocean,
? - What is best OS to use for Janus? They offer Ubuntu, FreeBSD, Fedora, Debian, CoreOS, CentOS.

I think I understand now, Janus is a Gateway that can take different kinds of video/audio  feeds/streams and server them up as WebRTC to clients... This will be fun!

Thanks
Shane

Shane Weddle

unread,
Feb 10, 2015, 3:21:08 PM2/10/15
to meetech...@googlegroups.com
Thinking it over a bit more I should try and have the plugin stream to your Janus demo site first... 

How do i specify a room for the stream to send/join to?? 

Thanks
Shane

Lorenzo Miniero

unread,
Feb 10, 2015, 3:28:48 PM2/10/15
to meetech...@googlegroups.com
No our demo site is off limits...

L.

Nicholas Wylie

unread,
Feb 10, 2015, 4:58:59 PM2/10/15
to meetech...@googlegroups.com
Shane,

Why not just setup a Linux box on your local network for testing?

I've installed Janus on Arch, CentOS and Debian so far. Arch (home PC) is probably the easiest to get all the dependencies, but Debian (VPS) was fairly easy to setup as well. CentOS has been a bit of a pain.

Gatecrasher777

unread,
Feb 11, 2015, 9:15:25 AM2/11/15
to meetech...@googlegroups.com
Clean install on Ubuntu 14.04 works without any issues. (just need to install libavformat-dev over and above the documented dependencies if you are going to use post-processing)

Shane Weddle

unread,
Feb 11, 2015, 12:21:35 PM2/11/15
to meetech...@googlegroups.com
Nicholas - I want the service to be on the internet not just my home network, yet its tempting to set up at home for testing but I have found DO to be very fast and easy to use and cheep for testing.

Gatecrasher777 - Thanks!... I have clean build of Ubuntu 14 booted on digital ocean. starting in on setup this morning, Good times!

Thanks
shane

Dan Berman

unread,
Feb 11, 2015, 12:35:54 PM2/11/15
to meetech...@googlegroups.com
Hello,

Shane, this is exactly what I and a few of us at a hacker/maker space here in Charlotte NC want to do.

*  Take a look at this diagram as that it shows our pain points in setting this up and understanding what needs to run and where:
Anyone have ideas or answers to what is asked in the diagram?



Thanks to all!
Dan B

Shane Weddle

unread,
Feb 11, 2015, 1:57:17 PM2/11/15
to meetech...@googlegroups.com
Hi Dan,

YES thats it!... Thats what I'm wanting to do and the ?? in the image are what I need to know as well.

Thanks for the awesome diagram, I hope we can get this working!

Shane

Lorenzo Miniero

unread,
Feb 11, 2015, 3:29:03 PM2/11/15
to meetech...@googlegroups.com
The scenario depicted there is perfectly reproduceable. The streaming plugin is all you need.
The sample script assumes you're generating and sending a video stream from gstreamer to a Janus located on the same machine: putting a different network address there would obviously result in the stream being sent to a remote location. If you're unfamiliar with how the udpsink plugin works in gstreamer, look for some tutorials and guidelines on this online.

Lorenzo
Reply all
Reply to author
Forward
0 new messages