help request on Janus+Rtsp streaming

1,462 views
Skip to first unread message

Fabio Zingaro

unread,
Apr 14, 2020, 1:35:17 PM4/14/20
to meetech...@googlegroups.com
Hi all,

i'm sorry if i'm asking something obvious for you.
I've a linux box with Janus for showing with webrtc a couple of ip cams (a bosch and a dahua).

I'm new to Webrtc, Janus, Sdp, etc.
If a direct help to my problems is not possible i'll appreciate a lot also some suggestions on books, ebooks, etc for letting me to solve myself these problems.
I've tried also reading logs on the admin panel, but with my actual knowledge i cannot understand what's wrong and what's fine.

I'm using latest stable versione of Janus (v0.9.2), Firefox (75), Chrome (81).
I've tried also the latest Janus master version on github with the same results.

Actually i've 2 problems:
  1. Bosch stream is working only on Firefox 75.0 on mac osx. On Chrome 81 i've some errors. (see screenshot)
  2. Dahua stream isn't working at all
I've tried also Safari and Vivaldi obtaining the same result of Chrome (but on Safari different error).

screenshot.jpg


This is the main part of my janus.plugin.streaming.jcfg:
TC1: {
type = "rtsp"
        id = 103
        description = "TC1"
        audio = false
        video = true
url = "rtsp://......./rtsp_tunnel?profile=1&inst=2&h26x=4"
rtsp_user = "user"
        rtsp_pwd = "pwd"
videofmtp = "profile-level-id=42e01f;packetization-mode=1"
}

I've omitted the dahua (TC2) config since it's identical to the TC1.

On Janus start i've:
[ERR] [plugins/janus_streaming.c:janus_streaming_rtsp_connect_to_server:5769] Couldn't send DESCRIBE request: Timeout was reached
[ERR] [plugins/janus_streaming.c:janus_streaming_init:1888] Error creating 'rtsp' mountpoint 'TC2'...

I've tried also on capturing the Dahua stream with ffmpeg and redirecting it to a Janus RTP port (after proper config on the plugin cfg) with no success.
TC2-rtp: {
type = "rtp"
        id = 104
        description = "TC2-rtp"
        audio = false
        video = true
        videoport = 8004
        videopt = 126
videortpmap = "H264/90000"
        videofmtp = "profile-level-id=42e01f;packetization-mode=1"
}

When ffmpeg starts on Janus console i see:
[TC2-rtp] New video stream! (ssrc=336439608, index 0)

The video is not showing on Firefox and on console i see a periodic "slowlink" event but ffmpeg and janus are on the same machine and the IP cam is on the same net.

screenshot2.jpg


Thank you in advance at who will help me.

Bye.

Fabio

Fabio Zingaro

unread,
Apr 15, 2020, 11:20:55 AM4/15/20
to meetech...@googlegroups.com
no one has ideas and suggestions?

Fabio Zingaro

unread,
Apr 18, 2020, 3:13:54 AM4/18/20
to meetech...@googlegroups.com
no one has ideas and suggestions?

Mirko Brankovic

unread,
Apr 18, 2020, 6:44:12 AM4/18/20
to meetecho-janus
Hi,
My guess you have a problem with H264 profile.
Only a baseline profile can be used at this point.
I see you have base profile in settings profile-level-id=42e01f;

Could be a browser bug also, I don't have experience with streaming that much :D

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meetecho-janus/CAKO1X7_3xc9wP8UfjjA6HF%3DZPYBVg1BH72117ZQgFgYdP8B3EA%40mail.gmail.com.


--
Regards,
Mirko

Lorenzo Miniero

unread,
Apr 20, 2020, 4:29:29 AM4/20/20
to meetecho-janus
Definitely a codec issue, as we just relay media. H.264 support across browsers is inconsistent, and may vary wildly depending on whether hardware acceleration is used or not.

L.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janus+unsubscribe@googlegroups.com.


--
Regards,
Mirko

Lorenzo Miniero

unread,
Apr 20, 2020, 4:30:48 AM4/20/20
to meetecho-janus
Besides, the H.264 may be lacking SPS/PPS info in packets (in some cases they're sent only once when the stream is started by the encoder), which are needed to decode. If so, you'll have to inject them yourself (e.g., with the help of gstreamer of ffmpeg).

L.

Vikas Sharma

unread,
Apr 14, 2021, 9:29:06 AM4/14/21
to meetecho-janus
fabio were you able to have this stuff working ? 

can you please let me know 

To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.


--
Regards,
Mirko

Carlos Primo

unread,
Apr 28, 2021, 1:41:40 PM4/28/21
to meetecho-janus
Hi, I detected also problems with the stream of a BOSCH Autodome IR 5000 camera.
At first, I tried to connect to main or secondary stream of the camera, with no luck.

After that, I  change the value of the bitrate compensation, and then, i can see an image every 2 second.

Later, i modified the GOP structure to IP value, and then, the camera started to work perfectly (At full hd resolution, forget the video resolution parameter, don't applies)
boschparameters.png

I configured the streaming plugin with a RTP settings, and the ffmpeg line is:
ffmpeg -y -fflags nobuffer -hide_banner -nostdin -i 'rtsp://user:pass...@192.168.11.10/?inst=2' -c:v copy -flags global_header -bsf dump_extra -f rtp rtp://XXX.XXX.XXX.XXX:10001?pkt_size=1300


inst=2 -> Second Stream, because i changed the profile of the second, but i think that if you set the parameters to the main stream, it will work also.

I didn't tried with firefox, but what i see (as commented in this forum) is that the web browser must support the codec, so all the additions that manufacturers do to the codec, breaks the compatibility with browser


Regards
Reply all
Reply to author
Forward
0 new messages