I have installed Janus-Gateway using the very comprehensive install instructions on an Ubuntu 18.04LTS machine. I have configured the streaming config file (janus.plugin.streaming.jcfg) with:
gstreamer-sample: {
type = "rtp"
id = 1
description = "H.264 live stream coming from gstreamer"
audio = false
video = true
videoport = 5004
videopt = 96
videortpmap = "H264/90000"
videofmtp = "profile-level-id=42e01f;packetization-mode=1"
}
(I didn't change the name because that required least changes to other files.)
Having then started the server, I then take a pre-encoded stream and send that to the server with ffmpeg:
ffmpeg -i udp://127.0.0.1:9034 -c:v copy -an -f rtp rtp://127.0.0.1:5004?pkt_size=1300
Opening up the demo webpage the server comes with, I go to streaming demos, and choose the "gstreamer" demo and click start. The right hand half of the screen produces a spinning circle, but tells me that it is receiving data at the appropriate rate for the stream I'm sending. So if it's receiving the stream, why isn't it playing it?
Cheers, Simon