x86 Nvidia GeForce RTX 4080
DeepStream 7.0
NVIDIA GPU Driver Version: 535.183.01
CUDA Version: 12.2
I want to modify the deepstream_test1_rtsp_in_rtsp_out.py example so that instead of creating my own rtsp server, it sends the h.264 stream to the Mediamtx server, so that I can easily take the Webrtc stream. Replicating what the command does: gst-launch-1.0 rtspclientsink name=s location=rtsp://localhost:8554/mystream …
I’ve tried to do it with these commands but I can’t seem to get the links in the pipeline right:
x264enc = Gst.ElementFactory.make("x264enc", "encoder") #rtsp
if not x264enc:
sys.stderr.write(" Unable to create x264enc \n")
rtspclientsink = Gst.ElementFactory.make("rtspclientsink", "sink") #rtsp
if not rtspclientsink:
sys.stderr.write(" Unable to create rtspclientsink \n")
x264enc.set_property("speed-preset", "veryfast") #rtsp
x264enc.set_property("tune", "zerolatency") #rtsp
x264enc.set_property("bitrate", 800) #rts
rtspclientsink.set_property("location", "rtsp://localhost:8554/cam1") #rtsp