Safari 11 - Not display video (H.264 Baseline)

1,029 views
Skip to first unread message

Alex Sky

unread,
Sep 25, 2017, 9:09:54 AM9/25/17
to meetecho-janus

Hello.


Janus send video stream (plugin.streaming), Safari receiving this stream, but not display in video player.


But if proxy without converting in ffmpeg, then in Safari the video display perfectly:
ffmpeg -i rtsp://ip-camera/h264 -codec copy rtp://127.0.0.1:5050


What is the problem, why doesn't it work without ffmpeg?


Thanks.

Alex Sky

unread,
Sep 27, 2017, 8:21:28 AM9/27/17
to meetecho-janus
My research shows that the problem in values PTS/DTS in source pakages RTP video stream, FFMpeg automatically set correct values PTS/DTS, and everything works correctly.

I'm sorry, I'm not an expert in this topic, if someone knows more, help me.

Lorenzo Miniero

unread,
Sep 27, 2017, 8:50:00 AM9/27/17
to meetecho-janus
Not an expert either, sorry...

L.

Anton Smith

unread,
Sep 29, 2017, 1:06:05 PM9/29/17
to meetecho-janus
Interesting, I will try this rtsp->rtp copy and see if it works. I have been getting "black screens/spinning wheels" as well.

S.A.N

unread,
Sep 29, 2017, 2:55:20 PM9/29/17
to Anton Smith, meetecho-janus
Correct command
ffmpeg -i 'rtsp://ip-camera' -an -codec copy -f rtp 'rtp://127.0.0.1:20000'
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "meetecho-janus" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/meetecho-janus/j-CYtIwgMFI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> meetecho-janu...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Anton Smith

unread,
Sep 30, 2017, 10:08:18 AM9/30/17
to meetecho-janus
Hi,

I tried this and it improved firefox greatly (previously had been very choppy), however it didn't result in safari working.

Safari displays the bandwidth meter with changing numbers, if I wave my hand in front of the camera it increases as I would expect it to, but no video is displaying.

I haven't yet found anyway to get debug out of safari to tell me if it is barfing on the video format.

when I run ffmpeg it claims sdp details: a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z00AH5pmAoAt/zUBAQFAAAD6AAATiAE=,aO48gA==; profile-level-id=4D001F = main profile level 3.1.

During negotation between safari/janus, I have overridden this with 42E01F. This works for chrome, FF, opera. I guess their decoder can handle main profile. I am surprised that Safari 11 cannot, assuming this is the actual problem.

My issue is I am using an RPI as the RTSP/janus gateway, and it doesn't have the horsepower to transcode. Having said that I have tried transcoding to baseline, 3.1 on a more powerful machine and that didn't work either (but I will try again to see if it is a combination of the PTS/DTS stuff and profile). OMX for RPI does not let you set level-id unfortunately, it crashes.

Regards,
Anton

S.A.N

unread,
Sep 30, 2017, 2:24:06 PM9/30/17
to Anton Smith, meetecho-janus
Maybe you have a problem with HTML5 video player, is example code
<video muted autoplay playsinline onclick = this.play() ></video>

Here more
https://webkit.org/blog/6784/new-video-policies-for-ios/
Reply all
Reply to author
Forward
0 new messages