Streaming RTSP from IP camera

958 views
Skip to first unread message

salhi noureddine

unread,
Feb 18, 2016, 3:18:20 AM2/18/16
to meetecho-janus
Hello

I tried to use the project "Janus WebRTC Gateway" on my raspberry pi 2, I think it's very interesting
but I encountered two problems:
- The first is that the project is work fine with Firfox but when using Chrome I get the following error message: "WebRTC error ... [object NavigatorUserMediaError]"
The second is that when I tried to do streamig from my IP camera with the RTSP protocol, the server can connect with the camera but no video display
here is the configuration file /opt/janus/etc/janus/janus.plugin.streaming.cfg:

[rtsp-test]
type = rtsp
id = 99
description = RTSP Test
audio = no
video = yes

Lorenzo Miniero

unread,
Feb 18, 2016, 5:27:29 AM2/18/16
to meetecho-janus
I don't see why you should get a NavigatorUserMediaError error if you're using the Streaming plugin, which is sendonly. You're probably publishing media yourself from the browser, which is useless in this context as the Streaming plugin will ignore it altogether.

As to the black screen, it's very likely that the coded the IP camera uses is not supported by the browser you're using. Even if it's H.264 and you're using Firefox, for instance, it will only work with the baseline profile, and not others.

L.

salhi noureddine

unread,
Feb 18, 2016, 5:48:11 AM2/18/16
to meetecho-janus
thank you
I do not understand you
but when i stream from modul camera attached to raspberry it's work fine, i use Gstreamer
now i need to stream live RTSP from IP camera rtsp://192.168.1.125:554
How should I do ?
 just edit the configuration file?
/opt/janus/etc/janus/janus.plugin.streaming.cfg

salhi noureddine

unread,
Feb 18, 2016, 10:19:35 AM2/18/16
to meetecho-janus


when I run janus
I have the following messages

[1509684300] Creating ICE agent (ICE Full mode, controlled)
[1509684300] WebRTC resources freed
[rtsp-test] New video stream! (ssrc=717911841)
[rtsp-test] New video stream! (ssrc=150762708)
[rtsp-test] New video stream! (ssrc=717911841)
[rtsp-test] New video stream! (ssrc=150762708)
[rtsp-test] New video stream! (ssrc=717911841)
[rtsp-test] New video stream! (ssrc=150762708)

but on the demos page no video stream display

Capture du 2016-02-18 16:18:55.png

Lorenzo Miniero

unread,
Feb 18, 2016, 10:21:03 AM2/18/16
to meetecho-janus
As I said, you should check if the codecs being negotiated are something the browsers can digest. Just look at the SDP.

L.

salhi noureddine

unread,
Feb 18, 2016, 10:54:18 AM2/18/16
to meetecho-janus
how can I access SDP
Reply all
Reply to author
Forward
0 new messages