Hi ,
I have the following error while running python gstreamer code,
**Error: gst-stream-error-quark: Internal data stream error. (1) gstrtspsrc.c(6057): gst_rtspsrc_loop (): /GstPipeline:pipeline0/GstRTSPSrc:src:
streaming stopped, reason not-linked (-1)
**
NOTE: The Pipeline is working fine using gst-launch1.0 in terminal
Here is my gstreamer pipeline(Working fine in terminal)
gst-launch-1.0 -v rtspsrc location= ! rtph265depay ! h265parse ! nvv4l2decoder ! nvvidconv ! nv3dsink sync=false
I converted gstreamer pipeline to python code as following,
python code:
import gi
gi.require_version(‘Gst’, ‘1.0’)
from gi.repository import Gst
Gst.init(None)
pipeline = Gst.Pipeline()
Create elements
src = Gst.ElementFactory.make(“rtspsrc”, “src”)
depay = Gst.ElementFactory.make(“rtph265depay”, “depay”)
parse = Gst.ElementFactory.make(“h265parse”, “parse”)
decoder = Gst.ElementFactory.make(“nvv4l2decoder”, “decoder”)
converter = Gst.ElementFactory.make(“nvvidconv”, “converter”)
sink = Gst.ElementFactory.make(“nv3dsink”, “sink”)
Set properties
src.set_property(“location”, “rtsp url”)
src.set_property(“latency”, 200)
Add elements to pipeline
pipeline.add(src)
pipeline.add(depay)
pipeline.add(parse)
pipeline.add(decoder)
pipeline.add(converter)
pipeline.add(sink)
Link elements
src.link(depay)
depay.link(parse)
parse.link(decoder)
decoder.link(converter)
converter.link(sink)
Start pipeline
pipeline.set_state(Gst.State.PLAYING)
Wait until error or EOS
bus = pipeline.get_bus()
msg = bus.timed_pop_filtered(Gst.CLOCK_TIME_NONE, Gst.MessageType.ERROR | Gst.MessageType.EOS)
Stop pipeline
pipeline.set_state(Gst.State.NULL)
Could you please help on this issue?
Specifications:
Nvidia Tegra Orin (NVGPU)/Integrated-graphics
ARMv8 Processor rev1(v8l)*8-processor
cuda_11.4r11.4
Nvidia Agx orin 64bit ubuntu 20.04.6 LTS
Thanks