Closed SelimEmre closed 2 years ago
I've just had a quick analyze the file.
I've figured out that there is only one I frame in the file. I think this is why it does not play the stream because WebRTC needs I frame to start playing. I take a look at the configuration parameters and it turns out that omxh264enc
has periodicity-idr
, interval-intraframes
and b-frames
. These parameters may change according to the implementation. I think the best idea is to take a look at the parameters with the following command.
gst-inspect-1.0 omxh264enc
I expect that you must see some parameters like periodicity-idr
, interval-intraframes
b-frames
, iframeinterval
or gop-length
. I hope a command something may help for you
gst-launch-1.0 -v videotestsrc ! video/x-raw, framerate=30/1, format=NV12 ! omxh264enc periodicity-idr=60 interval-
intraframes=60 gop-length=60 b-frames=0 ! h264parse ! flvmux ! rtmpsink
location='rtmp://[192.168.1.123/LiveApp/CAM2](http://192.168.1.123/LiveApp/CAM2)'
I'm not good at gstreamer but it seems that the command above sends I frames for every 2 seconds
If it does not help you, you can try iframeinterval=60
parameter.
Lastly, if it's still does not help, please just copy-paste the output of the following command.
gst-inspect-1.0 omxh264enc
Short description
Gstreamer
omxh264enc
codec doesn't work SFU mode. But it's working properly HLS and WebRTC with Adaptive options.Steps to reproduce
omxh264enc
with publishing GStreamer like below:Expected behavior
WebRTC and HLS should work properly on SFU mode.
Actual behavior
WebRTC and HLS doesn't work if we use Adaptive option.
https://drive.google.com/file/d/1ktyKslo6-A-WmbUbhBJ34EduItWrtsv_/view?usp=sharing
Logs
SFU Mode: