rtmp uri can play in vlc and ffmpeg,but cause error -1 with gst pipeline
Hello, Can anyone help me?
my rtmp uri rtmp://192.168.16.180:1935/live/openUrl/1SN8L3W can play in vlc and ffpay but in my gst pipeline:
gst-launch-1.0 uridecodebin uri=rtmp://192.168.16.180:1935/live/openUrl/1SN8L3W ! m.sink0 nvstreammux name=m batched-push-timeout=40000 batch-size=1 gpu_id=0 live-source=1 width=1920 height=1080 ! fakesink
work error, cause:
Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstBin:source-bin-10/GstURIDecodeBin:uri-decode-bin/GstRTMPSrc:source:
2023-03-27T10:08:34.182616025Z streaming stopped, reason error (-5)
when change the pipelien with:
gst-launch-1.0 uridecodebin uri=rtmp://192.168.16.180:1935/live/openUrl/1SN8L3W ! fakesink
i work success