As the subject says, I am trying to stream H265 transcoded from FFMPEG. I was successful with H264, so I am now trying with H265. I have gone through the Google Group but haven't found any solution.
FFMPEG command: ffmpeg -rtsp_transport tcp -i rtsp://<IP of Camera>/Steaming1/Channel1/101 -c:v libx265 -b:v 1M -r 24 -g 60 -an -f rtp rtp://
Janus Configuration:

I've tried both ways, commenting and uncommenting videofmtp but to no avail
This is the error I am getting when testing on Safari (version 15.5, which support H265)
Error:
WebRTC error... Failed to set local answer sp: Failed to set local video description
recv parameters for -section with mid-'v'
Also, attaching the SDP offer

I am new to this field, any help would be appreciated.
Thanks,
Tharun
SDP Offer:
Going to offer this SDP:
v=0
o=- 1661262135873428 1 IN IP4 0.0.0.0
s=Mountpoint 11
t=0 0
c=IN IP4 0.0.0.0
m=video 9 UDP/TLS/RTP/SAVPF 96
c=IN IP4 0.0.0.0
a=sendonly
a=mid:v
a=rtpmap:96 H265/90000
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=extmap:2
http://www.webrtc.org/experiments/rtp-hdrext/abs-send-timea=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
[transports/janus_http.c:janus_http_request_completed:2021] Request completed, freeing data
[8235911567077557] There are 0 audio, 1 video and 0 data m-lines
[8235911567077557] Setting ICE locally: got ANSWER
[8235911567077557] Creating ICE agent (ICE Full mode, controlling)
[8235911567077557] Adding 172.20.138.68 to the addresses to gather candidates for
[8235911567077557] Gathering done for stream 1
-------------------------------------------
>> Anonymized
-------------------------------------------
[8235911567077557] We have 1 candidates for Stream #1, Component #1
[8235911567077557] Address:
172.20.138.68:50201[8235911567077557] Priority:
2013266431[8235911567077557] Foundation: 1
[8235911567077557] 1 1 udp
2013266431 172.20.138.68 50201 typ host
-------------------------------------------
>> Merged (968 bytes)
-------------------------------------------
v=0
o=- 1661262135873428 1 IN IP4 172.20.138.68
s=Mountpoint 11
t=0 0
a=group:BUNDLE v
a=ice-options:trickle
a=fingerprint:sha-256 E2:BC:5F:CC:FB:B6:B5:EF:82:FD:BA:C8:7A:34:90:3E:4D:24:B4:26:1B:C9:9E:25:A7:E5:6F:58:33:86:69:9A
a=extmap-allow-mixed
a=msid-semantic: WMS *
m=video 9 UDP/TLS/RTP/SAVPF 96 97
c=IN IP4 172.20.138.68
a=sendonly
a=mid:v
a=rtcp-mux
a=ice-ufrag:6F0x
a=ice-pwd:ugwMu/bCElK+xMfjmug/1t
a=ice-options:trickle
a=setup:actpass
a=rtpmap:96 H265/90000
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=extmap:2
http://www.webrtc.org/experiments/rtp-hdrext/abs-send-timea=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=ssrc-group:FID
2149633902 2809951415
a=msid:janus janusv
a=ssrc:
2149633902 cname:janus
a=ssrc:2809951415 cname:janus
a=candidate:1 1 udp
2013266431 172.20.138.68 50201 typ host
a=end-of-candidates
[8235911567077557] Sending event to transport...
Sending event to janus.transport.http (0x7fd1f400b9e0)
Got a Janus API event to send (0x7fd1f400b9e0)
[transports/janus_http.c:janus_http_request_timeout_finalize:239] [0x7fd1f4017260] finalize
[transports/janus_http.c:janus_http_notifier:2072] ... handling long poll...
We have a message to serve...
[
{
"janus": "event",
"session_id": 5276782652912894,
"transaction": "UQnRSx21WkI1",
"sender": 8235911567077557,
"plugindata": {
"plugin": "janus.plugin.streaming",
"data": {
"streaming": "event",
"result": {
"status": "preparing"
}
}
},
"jsep": {
"type": "offer",
"sdp": "v=0\r\no=- 1661262135873428 1 IN IP4 172.20.138.68\r\ns=Mountpoint 11\r\nt=0 0\r\na=group:BUNDLE v\r\na=ice-options:trickle\r\na=fingerprint:sha-256 E2:BC:5F:CC:FB:B6:B5:EF:82:FD:BA:C8:7A:34:90:3E:4D:24:B4:26:1B:C9:9E:25:A7:E5:6F:58:33:86:69:9A\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS *\r\nm=video 9 UDP/TLS/RTP/SAVPF 96 97\r\nc=IN IP4 172.20.138.68\r\na=sendonly\r\na=mid:v\r\na=rtcp-mux\r\na=ice-ufrag:6F0x\r\na=ice-pwd:ugwMu/bCElK+xMfjmug/1t\r\na=ice-options:trickle\r\na=setup:actpass\r\na=rtpmap:96 H265/90000\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=extmap:2
http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=rtpmap:97 rtx/90000\r\na=fmtp:97 apt=96\r\na=ssrc-group:FID
2149633902 2809951415\r\na=msid:janus janusv\r\na=ssrc:
2149633902 cname:janus\r\na=ssrc:2809951415 cname:janus\r\na=candidate:1 1 udp 2013266431 172.20.138.68 50201 typ host\r\na=end-of-candidates\r\n"
}
}
]
>> Pushing event: 0 (Success)
[transports/janus_http.c:janus_http_request_completed:2021] Request completed, freeing data