H264 does not play in Safari

486 views
Skip to first unread message

Iskander Kamaliev

unread,
Feb 16, 2018, 11:07:19 AM2/16/18
to meetecho-janus

Hello!

My janus.plugin.streamer.cfg

[h264-sample]
type = rtp
id = 10
description = H.264 live stream coming from gstreamer
audio = no
video = yes
videoport = 8004
videopt = 126
collision = 3000
videortpmap = H264/90000
videofmtp = profile-level-id=42e01f;packetization-mode=1

my ffmepg command

ffmpeg -i rtsp://admin:pa...@90.92.19.15:554/Streaming/Channels/101 
-codec:v libx264 -profile:v baseline -preset ultrafast -tune zerolatency 
-s hd480 -pix_fmt yuv420p 
-b:v 0.2M -qmin 10 -qmax 50 -maxrate 0.3M -bufsize 1M 
-f rtp udp://127.0.0.1:8004

I tested with https://janus.conf.meetecho.com/streamingtest.html
example code.

Every browsers shows fine, but Safari browser in mac not showed and in Janus debug look like

Transport task pool, serving request
No more remote candidates for handle 5113282193399523!
Sending Janus API response to janus.transport.websockets (0x7f357c001750)
[WSS-0x7f3585bc17c0] 71 ((null))
[WSS-0x7f357c0008c0] Sending WebSocket message (90 bytes)...
[WSS-0x7f357c0008c0] -- Sent 90/90 bytes
[5113282193399523] Looks like DTLS!
[5113282193399523] Looks like DTLS!
[5113282193399523] Looks like DTLS!
[5113282193399523] Looks like DTLS!
[5113282193399523] Looks like DTLS!
[WARN] [h264-sample] RTP collision on video mountpoint, dropping packet (ssrc=3727784745)
[5113282193399523] Looks like DTLS!
[5113282193399523] Looks like DTLS!`

How to fix it?

Thank you

Message has been deleted

Iskander Kamaliev

unread,
Feb 16, 2018, 6:18:14 PM2/16/18
to meetecho-janus
Instead of openssl it is necessary to use boringssl
and compile
and add janus --enable-dtls-settimeout when configuring

Lorenzo Miniero

unread,
Feb 19, 2018, 5:11:41 AM2/19/18
to meetecho-janus
I don't see how BoringSSL vs OpenSSL should get Safari to work: they're completely unrelated. It looks to me you're experiencing a different issue entirely, possibly network related (the settimeout stuff simply makes DTLS retransmissions much more frequent and aggressive).

L.

Iskander Kamaliev

unread,
Feb 19, 2018, 9:25:16 AM2/19/18
to meetecho-janus
I tested in Opera@last version in Windows 10, not worked
But in Opera@last version in Mac Os@last version is worked, why?

And in Firefox@last version Debian 9 GNOME desktop not worked

Why is very difficult (

Kaplan

unread,
Feb 20, 2018, 7:45:44 AM2/20/18
to meetecho-janus
Check your keyframe rate? I know that some browsers will not play the video if you are missing keyframes. 
I had used gstreamer 1.x vs ffmpeg on my streaming tests and it worked better for me...

Iskander Kamaliev

unread,
Feb 20, 2018, 8:56:24 AM2/20/18
to meetecho-janus
Can you give an example of running gstreamer? Thank you

вторник, 20 февраля 2018 г., 15:45:44 UTC+3 пользователь Kaplan написал:

Kaplan

unread,
Feb 21, 2018, 7:52:58 AM2/21/18
to meetecho-janus
I am using gstreamer to receive frames from janus, not to send them to janus. I had better luck with it than ffmpeg,  but if you search this group I believe somebody posted a way to send .Not sure if this will solve your issue, but I think the keyframe rate (how often you send the keyframes) will make it wotk better for you (you can do that with ffmpeg too)
Reply all
Reply to author
Forward
0 new messages