Thanks. The test-launch.c worked. Trouble is I need to send it all UDP (not RTSP). I am trying the other link and getting an error:
nvidia@tegra-ubuntu:~/scripts/works/live$ ./udp
(udp:5848): GLib-GObject-WARNING **: g_object_set_valist: object class ‘GstVideoTestSrc’ has no property named ‘source’
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and MjstreamingFramerate set to : 60 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
===== MSENC blits (mode: 1) into tiled surfaces =====
^CSending EOS signal to shutdown pipeline cleanly
End of stream
… It would be nice if someone knew the ‘secret’ plugin that enables VLC to parse a gstreamer UDP flow…just saying.
Here, you mentioned how to use the test-launch.c server for the rtsp stream.
Is there a way where I can launch the ./test-launch and not be in the gst-rtsp-server directory? If I move the test-launch.c file to the home directory would that affect anything?
Also, I have this streaming code now using the test-launch.c
I have tried test-launch application like you said but i got nothing when i trying to connect with ffplay or vlc. Any idea why? I am testing using ubuntu 18.04 x86-64 with deepstream installed 5.0.
Hi @DaneLLL I used the rtsp test-launch and i am able to view in the stream on one vlc but when i try to view the stream from another vlc window it fails with this error:
** (test-launch:7901): WARNING **: 16:33:32.505: ignoring stream 0 without media type
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:568 Failed to create CaptureSession
root@ziomario-desktop:/home/ziomario/Desktop/Tools/gst-rtsp-server/examples# gcc test-launch.c -o test-launch
test-launch.c:20:10: fatal error: gst/gst.h: No such file or directory #include <gst/gst.h>
^~~~~~~~~~~
compilation terminated.
root@ziomario-desktop:/home/ziomario/Desktop/Tools/gst-rtsp-server/examples# gcc test-launch.c -o test-launch $(pkg-config --cflags --libs gstreamer-1.0 gstreamer-rtsp-server-1.0)
test-launch.c: In function ‘main’:
test-launch.c:77:3: warning: implicit declaration of function ‘gst_rtsp_media_factory_set_enable_rtcp’; did you mean ‘gst_rtsp_media_factory_set_latency’? [-Wimplicit-function-declaration]
gst_rtsp_media_factory_set_enable_rtcp (factory, !disable_rtcp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gst_rtsp_media_factory_set_latency
/tmp/ccJPG5EO.o: In function main': test-launch.c:(.text+0x154): undefined reference to gst_rtsp_media_factory_set_enable_rtcp’
collect2: error: ld returned 1 exit status
I had the same issue. The repo a few versions newer than the apt installed package.
Checkout an earlier branch of the gst-rtsp-server repo, 1.18.5 worked for me.