RTSP H264 stream

736 views
Skip to first unread message

Anton Vladimirovich

unread,
Dec 18, 2015, 4:17:41 AM12/18/15
to meetecho-janus
firefox 43 rtsp stream doesn't work

Janus streaming config
[rtsp-test]
type
= rtsp
id
= 99
description
= RTSP Test
audio
= no
video
= yes
url
=rtsp://user:pass...@100.100.100.100
videopt
= 96
videortpmap
= H264/90000
videofmtp
= profile-level-id=42e01f\;packetization-mode=1


Local SDP
v=0
o
=mozilla...THIS_IS_SDPARTA-43.0 1360038898413775374 0 IN IP4 0.0.0.0
s
=-
t
=0 0
a
=sendrecv
a
=fingerprint:sha-256 28:B4:E9:E8:CF:77:C3:39:78:C5:A0:7C:B0:54:48:AD:6E:73:74:48:10:BF:1A:C4:89:CA:5E:CD:A4:10:B0:80
a
=ice-options:trickle
a
=msid-semantic:WMS *
m
=video 0 RTP/SAVPF 0
c
=IN IP4 0.0.0.0
a
=inactive
a
=rtpmap:0 PCMU/8000

Remote SDP
v=0
o
=- 1450428833487133 1450428833487133 IN IP4 192.168.1.1
s
=-
t
=0 0
a
=sendrecv
a
=group:BUNDLE video
a
=msid-semantic:WMS janus
m
=video 1 RTP/SAVPF 96
c
=IN IP4 192.168.1.1
a
=candidate:1 1 udp 2013266431 192.168.1.1 34670 typ host
a
=candidate:1 2 udp 2013266430 192.168.1.1 40697 typ host
a
=sendonly
a
=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38
a
=fmtp:96 profile-level-id=420029;level-asymmetry-allowed=0
a
=ice-options:trickle
a
=ice-pwd:PSQ+Qjf78at7G5wpGet3xq
a
=ice-ufrag:J2fQ
a
=mid:video
a
=rtcp-fb:96 nack
a
=rtcp-mux
a
=rtpmap:96 H264/90000
a
=setup:actpass
a
=ssrc:1812692104 cname:janusvideo
a
=ssrc:1812692104 msid:janus janusv0
a
=ssrc:1812692104 mslabel:janus
a
=ssrc:1812692104 label:janusv0


Janus Admin
    "streams": [
        {
            "id": 1,
            "ready": -1,
            "disabled": "true",
            "ssrc": {
                "video": 1812692104
            },
            "components": [
                {
                    "id": 1,
                    "state": "disconnected",
                    "local-candidates": [
                        "1 1 udp 2013266431 192.168.105.1 34670 typ host\r\n"
                    ],
                    "dtls": {},
                    "in_stats": {},
                    "out_stats": {}
                },
                {
                    "id": 2,
                    "state": "disconnected",
                    "local-candidates": [
                        "1 2 udp 2013266430 192.168.105.1 40697 typ host\r\n"
                    ],
                    "dtls": {},
                    "in_stats": {},
                    "out_stats": {}
                }
            ]
        }
    ]

And in wireshark i can see how udp packages forwarded from ip cam to janus.

As far as I can understand the problem occurs because the Janus sends "a=fmtp:96 profile-level-id=420029;level-asymmetry-allowed=0"
I'm right?

Anton Vladimirovich

unread,
Dec 18, 2015, 4:19:22 AM12/18/15
to meetecho-janus
or it sends ip camera?
whether there ip camera that can use the correct parameters?

пятница, 18 декабря 2015 г., 12:17:41 UTC+3 пользователь Anton Vladimirovich написал:
firefox 43 rtsp stream doesn't work

Janus streaming config
[rtsp-test]
type
= rtsp
id
= 99
description
= RTSP Test
audio
= no
video
=

Lorenzo Miniero

unread,
Dec 18, 2015, 4:24:35 AM12/18/15
to meetecho-janus
Firefox rejected the stream, just look at the local sdp:

m=video 0 RTP/SAVPF 0

L.


Il giorno venerdì 18 dicembre 2015 10:17:41 UTC+1, Anton Vladimirovich ha scritto:
firefox 43 rtsp stream doesn't work

Janus streaming config
[rtsp-test]
type
= rtsp
id
= 99
description
= RTSP Test
audio
= no
video
=

Lorenzo Miniero

unread,
Dec 18, 2015, 4:25:41 AM12/18/15
to meetecho-janus


Il giorno venerdì 18 dicembre 2015 10:17:41 UTC+1, Anton Vladimirovich ha scritto:
As far as I can understand the problem occurs because the Janus sends "a=fmtp:96 profile-level-id=420029;level-asymmetry-allowed=0"
I'm right?


Not sure, you'll have to enable debugging in Firefox to see if that's what's causing it to reject the stream. Maybe H.264 support is not enabled in about:webrtc? 

Lorenzo Miniero

unread,
Dec 18, 2015, 4:26:53 AM12/18/15
to meetecho-janus
Oh just saw the profile level ID: then yes, I guess that's it, AFAIK only the baseline profile is supported in Firefox. See if you can change the profile to be used in the IP camera settings.

L.

Anton Vladimirovich

unread,
Dec 18, 2015, 5:00:15 AM12/18/15
to meetecho-janus
H 264 are supported and strimings work. The problem with the type rtsp.
So if I find the camera where it will be possible to set the baseline profile - fmtp change to 96 profile-level-id=42e01f\;packetization-mode=1 ?

Anton Vladimirovich

unread,
Dec 18, 2015, 5:02:08 AM12/18/15
to meetecho-janus
I wanted to say "126 profile-level-id=42e01f\;packetization-mode=1"

пятница, 18 декабря 2015 г., 13:00:15 UTC+3 пользователь Anton Vladimirovich написал:

Lorenzo Miniero

unread,
Dec 18, 2015, 5:03:50 AM12/18/15
to meetecho-janus
Just see if you can change the profile, the payload type (96 vs 126) is done by Janus automatically).

L.

Anton Vladimirovich

unread,
Dec 18, 2015, 5:22:11 AM12/18/15
to meetecho-janus
thanks
Reply all
Reply to author
Forward
0 new messages