I am currently building a project where we aim to:
“Live stream a drone video over 4G network in real time (~500 ms Latency) and broadcast to a website”.
The process is as follow:
Gstreamer[HDMI video feed -> H264 encode -> RTP -> UDP sink] —> Kurento[rtp -> webRTC] --> [b]browser
[/b]We successfully live streamed over WAN via ethernet and achieved required latency. The result was good.
However when testing with 4G dongle (for real testing scenario), we are facing the issues with UDP streams being halted due to poor network condition depending on the location.
My question is: Does Gstreamer (omxh264enc and udpsink in particular) have variable/adaptive bitrate capability depending on network condition? I would like Gstreamer to automatically reduce the target bitrate if it detects that the network condition is poor and vice versa.
This is my current pipeline:
‘!’, ‘omxh264enc control-rate=1, bitrate=800000’,
Another question: It seems that Gstreamer stops streaming completely if the network condition is too poor. Is there a way for Gstreamer to simply pause and wait when the network is bad, and continue streaming when the signal gets better?