RTSP live stream

1,607 views
Skip to first unread message

daniel

unread,
Apr 26, 2018, 4:28:49 AM4/26/18
to meetecho-janus
Hello,

I'm just compiled Janus gateway.
Demos are working fine, but I can't make my IP cams work.

I have this in janus.plugin.streaming.cfg:
[rtsp-test]
type
= rtsp
id
= 4
description
= RTSP
url
= rtsp://CAMERARTSPLINK
audio
= no
video
= yes
secret
= adminpwd

When I open the the browser (Windows, Chrome), it starts the streaming without any serious errors, but nothing is displayed in the white box.

Here is the startup of Janus: https://pastebin.com/s4M7ejvn
Here is the logs of Janus when I hit the play in Chrome: https://pastebin.com/9Y0NbXew

What do you think?

Camera is ESCAM QD800, serves H264 over RTSP.



Thanks!
Cheers
D.

Lorenzo Miniero

unread,
Apr 26, 2018, 5:06:37 AM4/26/18
to meetecho-janus

daniel

unread,
Apr 26, 2018, 5:53:16 AM4/26/18
to meetecho-janus
Thank you.

However I'm still quite out-of-ideas.

Admin API log: https://pastebin.com/hEu8fmBj

Chrome is stating that it receives @1000kbits/sec. Stream is started.
However only a loader is rotating and nothing is displayed.

Lorenzo Miniero

unread,
Apr 26, 2018, 5:58:19 AM4/26/18
to meetecho-janus
Then it's codec related. It may also be related to this: https://github.com/meetecho/janus-gateway/issues/849

L.

daniel

unread,
Apr 26, 2018, 6:06:00 AM4/26/18
to meetecho-janus
sprop-parameter-sets are visible in the setRemoteDescription in Chrome's webrtc-internals.

However it is using my public IP which is tricky, because I'm sitting behind firewall.
Could it be a problem? I did not forwarded out any ports for the stream..

daniel

unread,
Apr 26, 2018, 6:06:52 AM4/26/18
to meetecho-janus
Any anyway, now
camera, janus and the webrtc client are all on the same subnet.

daniel

unread,
Apr 26, 2018, 10:26:25 AM4/26/18
to meetecho-janus
Could anyone help me please?
I'm trying to do it on my own but quite new for this stuff yet.
Any help would be greatly appreciated.

Also, I tried changing the streaming url to "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov" which plays fine in VLC, but Janus keeps dropping it in every 5 seconds.
"Reconnected to the RTSP server, streaming again"...

Lorenzo Miniero

unread,
Apr 26, 2018, 11:05:01 AM4/26/18
to meetecho-janus
Your IP has nothing to do with it. Connectivity works fine, the stream is connected, it's the media that fails. Unfortunately H.264 support in WebRTC (and Chrome in particular) is sometimes sketchy, so you'll have to play with it. There are other discussions on the same subject, try looking at older posts.

L.

daniel

unread,
Apr 26, 2018, 1:19:45 PM4/26/18
to meetecho-janus
Thanks.
Is there ANY way to test if Janus is configured right?
I mean, okay, web browser issues. Can I test with a client which is working 100% sure, and then I can see if my stream is coming through Janus or not.

For example Firefox displays 'No remote video available' and does not stream anything.

daniel

unread,
Apr 27, 2018, 9:32:15 AM4/27/18
to meetecho-janus
Now I can manage to start the stream also in FF, but video is never displayed.

In Chrome (66.0.3359.117) when I play: "Stream Started 405 kbits/sec". White video screen, spinner is spinning.
In Firefox (59.0.2) when I play: "Stream Started 0x0 407 kbits/sec". White video screen, no spinner, no video.

So FF might be able to play the stream, but it see it as 0 x 0 resolution. Why? I have the resolution info in the sdp coming from the cam itself.
Reply all
Reply to author
Forward
0 new messages