Integrating WebRTC in the existing IP camera solution over Android/Stagefright framework

572 views
Skip to first unread message

ankit singhal

unread,
Jun 20, 2016, 7:32:04 AM6/20/16
to discuss-webrtc
Hello All,

We have an IP camera solution based on Android using the stagefright framework. We are using Live555 for RTSP streaming. 
We are not using gstreamer in our solution. 

Our IP camera solution supports H264 hardware encoding. I would like to know how can i integrate WebRTC into our solution with H264 video. 
Is H264 well supported or transcoding to VP8 is mandatory?

Can we give the encoded H264 video to getUserMedia() as a stream input? 

We are using Go server. Can somebody suggest what are the WebRTC native components to be used for development?

regards
Ankit Singhal

Max Lapshin

unread,
Jun 20, 2016, 2:19:29 PM6/20/16
to discuss-webrtc
You want to launch webrtc server on IP camera?

Or you want to create a mediator that will take video from camera and send it over webrtc?

ankit singhal

unread,
Jun 21, 2016, 1:52:12 AM6/21/16
to discuss-webrtc
Hi Max,

I want to launch the webrtc server on IP camera. There could be multiple clients accessing the camera AV over webRTC.
We have H264 encoded data. Can it directly be used as input to webRTC or does it always take input as raw AV and then encodes it?

regards
Ankit Singhal

ankit singhal

unread,
Jun 22, 2016, 1:40:47 PM6/22/16
to discuss-webrtc
We can not port any browser like chrome which supports webRTC. We only want to port the webRTC native for our use case.

Also, There is a getUserMedia API used in webRTC for media. I believe it is supported in the browser and not really part of webRTC and it is coupled with webcam and microphone of the device. How can i use webRTC and pass on the AV captured through our IP cam and also encoded using H264 encoder
I would really appreciate if i can get an early response.

regards
Ankit Singhal

Max Lapshin

unread,
Jun 24, 2016, 1:16:26 AM6/24/16
to discuss-webrtc
It is an interesting task and we are also working on it.

You need to dig inside webrtc protocols and implement all this as if your server is a peer browser.

But getUserMedia is just a javascript function. It is not related to your server.

Gautam

unread,
Jul 28, 2016, 3:13:00 AM7/28/16
to discuss-webrtc
Hello Ankit

I just saw your posts here, were you able to implement this? We are also looking at the same solution and could not reach anywhere, if you have then please help.

Regards
Gautam

ankit singhal

unread,
Jul 28, 2016, 3:17:26 AM7/28/16
to discuss...@googlegroups.com
Hi Gautam,

No we could not get any help. Now, we are looking at webrtc native in android chromium. It is mentioned on webrtc.org and trying to follow the Apprtc example.

This activity is kind of stalled for now.
If you find something, please let me know as well. 

Regards
Ankit Singhal

--

---
You received this message because you are subscribed to a topic in the Google Groups "discuss-webrtc" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/discuss-webrtc/VmpHSn5RuQ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e9c4b8c0-098b-4236-bcc1-0f912870c7cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Kaye

unread,
Jul 11, 2017, 2:59:09 PM7/11/17
to discuss-webrtc
Hi all,

Was anyone able to launch webRTC on an ip camera? Any tips for someone attempting to use webRTC for video surveillance? Any advice would be greatly appreciated.

Thanks,
James

Lorenzo Miniero

unread,
Jul 12, 2017, 5:01:35 AM7/12/17
to discuss-webrtc
You may want to have a look at Janus (full disclosure, I'm the author), in particular at the Streaming plugin which provides RTSP-to-WebRTC functionality, as I know of many people who've used it for similar projects.

L.

James Kaye

unread,
Jul 12, 2017, 9:59:08 AM7/12/17
to discuss-webrtc
Is there any reason why Janus would be the better choice for this use-case over Kurento?

Tyler Brooks

unread,
Jul 12, 2017, 4:17:38 PM7/12/17
to discuss-webrtc
Hi Lorenzo...
Is there an Android port of Janus in the works?  I am also interested an RTSP-to-WebRTC implementation but I need it to work on the equivalent of an Android tablet (Allwinner A64, 2GB ram, 4GB flash, Marshmallow).  That is, I have the equivalent of an Android tablet connected via ethernet to a common security camera module.  The security camera is pumping out h264 via RTSP which the A64 can capture.

I see in the Meetecho-janus discussion group there was some discussion of this a few years ago.  Did anything come of it?  Honestly, I am less interested in the Java native wrapper than I am in getting some WebRTC pipeline that doesn't mess with the frames/packets as they are passed out to the client.  I currently have libjingle doing this but I have had to hack up some of the link optimization stuff (frame-dropper, bit-rate-estimator) to make it work.  That makes maintenance a problem and I would prefer to avoid that. 

Iñaki Baz Castillo

unread,
Jul 12, 2017, 4:20:45 PM7/12/17
to discuss...@googlegroups.com
El 12 jul. 2017 15:59, "James Kaye" <jlk...@cornell.edu> escribió:
Is there any reason why Janus would be the better choice for this use-case over Kurento?

Yes.

James Kaye

unread,
Jul 13, 2017, 10:53:33 AM7/13/17
to discuss-webrtc
Could you please elaborate on this?

Lorenzo Miniero

unread,
Jul 13, 2017, 1:03:41 PM7/13/17
to discuss-webrtc
Hi Tyler,

personally we're not planning any work in that direction. Android is Linux based so it MAY be installable already (you can easily install it on arm-based processors like R.Pis for instance, which is what many people do) but that's just speculation. If possible, that would only leave you with how to hook it to the Java side of things, but no idea honestly...

Lorenzo
Reply all
Reply to author
Forward
0 new messages