H265 streaming from Gstreamer

1,195 views
Skip to first unread message

nic...@sunflower-labs.com

unread,
Apr 16, 2018, 11:57:00 AM4/16/18
to meetecho-janus
Hi

We are trying to get H265 streaming from a gstreamer pipeline working.
For this we have added the following in janus.plugin.streaming.cfg:

[h265-airborne]
type = rtp
id = 12
description = H.265 test stream
audio = no
video = yes
videoport = 8007
videopt = 96
videortpmap = H265/90000

We are feeding Janus with a test stream (on an nvidia jetson):
gst-launch-1.0 -v videotestsrc ! omxh265enc ! rtph265pay config-interval=1 pt=96 ! udpsink host=127.0.0.1 port=8007

Janus is reporting that it's seeing a new stream at this ID, but when trying to view the stream on demos/streamingtest.html we just get a pop up message that says "WebRTC error... {}".

We suspect the issue might be that we are not properly setting videofmtp in the config file. Unfortunately we don't know what this needs to be set to.
For H264 streams, gstreamer outputs the needed profile-level-id and packetization-mode parameters when run with the -v option. Unfortunately we're not seeing those parameters for the H265 pipeline. Perhaps the videofmtp line needs to look completely different?
How can we find out what we need to put there?

Thanks for your help.
Nick

Lorenzo Miniero

unread,
Apr 16, 2018, 12:01:01 PM4/16/18
to meetecho-janus
No idea, but AFAIK no browser supports H.265 via WebRTC anyway.

L.

nic...@sunflower-labs.com

unread,
Apr 16, 2018, 12:27:32 PM4/16/18
to meetecho-janus
Thanks for the fast answer Lorenzo.
Safari seems to support it: https://caniuse.com/#search=h265
Either way I would like to find out more about what Janus wants/needs in videofmtp. The documentation just says "Codec specific parameters, if any", which doesn't help a lot.

Lorenzo Miniero

unread,
Apr 16, 2018, 12:36:16 PM4/16/18
to meetecho-janus
Janus doesn't need anything. The videofmtp property is there just to make clients happy, that's why we say "codec specific". You'll have to check how H.265 is typically negotiated in the SDP, maybe in some RFC if there's any, or see how Apple usually negotiates it.

L.

Tanguy Mezzano

unread,
Jan 4, 2019, 1:08:42 PM1/4/19
to meetecho-janus
Hi,

Have you tested H264 streaming with janus on your jetson?
Is it working?

Thanks

Reply all
Reply to author
Forward
0 new messages