Hello, I am looking for a solution where I can stream h265 via webrtc, and I saw that it is available in the echo plugin via Janus, but the same feature is not available in the stream plugin, I think I can add it myself since it is open source, but I could not find any detailed documentation. If anyone has worked with the stream plugin before, let me know where to start.
The Streaming plugin knows nothing about codecs, since RTP is provided by an external application, so H.265 should work there as well.
Maybe the problem is about my configuration
rtp-sample: {
type = "rtp"
id = 1
description = "H264 Live Test"
metadata = "You can use this metadata section to put any info you want!"
audio = true
video = true
audioport = 5002
audiopt = 111
audiocodec = "opus"
videoport = 5004
videopt = 100
videocodec = "h264"
secret = "adminpwd"
}
rtp-sample-2: {
type = "rtp"
id = 2
description = "H265 Live Test"
metadata = "You can use this metadata section to put any info you want!"
audio = true
video = true
audioport = 5003
audiopt = 111
audiocodec = "opus"
videoport = 5005
videopt = 100
videocodec = "h265"
secret = "adminpwd"
}
so from gstreamer i use these commands
the one for h264
gst-launch-1.0 audiotestsrc ! audioresample ! audio/x-raw,channels=1,rate=16000 ! opusenc bitrate=20000 ! rtpopuspay ! udpsink host=127.0.0.1 port=5002 videotestsrc pattern=snow ! video/x-raw,width=320,height=240,framerate=15/1 ! videoscale ! videorate ! videoconvert ! timeoverlay ! x264enc ! rtph264pay mtu=1200 ! udpsink host=127.0.0.1 port=5004
then this one for h265
gst-launch-1.0 audiotestsrc ! audioresample ! audio/x-raw,channels=1,rate=16000 ! opusenc bitrate=20000 ! rtpopuspay ! udpsink host=127.0.0.1 port=5003 videotestsrc pattern=snow ! video/x-raw,width=320,height=240,framerate=15/1 ! videoscale ! videorate ! videoconvert ! timeoverlay ! x265enc ! rtph265pay mtu=1200 ! udpsink host=127.0.0.1 port=5005
it succeeds with h264 as you see in my browser
but when it comes to h265 i get an error on chrome console. so i thougt its about codecs and we also specify codecs in plugin file so how streaming plugin process this info it doesnt even matter? I tried to sink h265 data to rtp-sample
which is configured as h264 and i failed as well. Is there anything wrong about my configuration file.
Hello.
I am having the same issue and trying to find the solution to this.
Would be grateful if you could share if the answer if you solve this, will do the same from my side.
Thanks in advance