quic / sample-apps-for-robotics-platforms

Other
111 stars 46 forks source link

Gstreamer RTSP VLC Clinet connect Problem #69

Open imavgg opened 1 year ago

imavgg commented 1 year ago

Hello! Thanks for this guide on gsteamer and rtsp here. It is clear. https://github.com/quic/sample-apps-for-Qualcomm-Robotics-RB5-platform/tree/master/Gstreamer-Applications/gst_streaming

I have successfully install the package and build the code. However I can't connect to RB5 RTSP server(192.168.1.104) with another client VLC.(192.168.1.106)


I run the Gstreamer on RB5. It shows:

root@qrb5165-rb5:/data/gst-rtsp-server-1.4.5# cd examples/ 64parse ! rtph264pay name=pay0 pt=96 )"idth=1920,height=1080,framerate=30/1 ! h26 stream ready at rtsp://127.0.0.1:8554/test

gbm_create_device(156): Info: backend name is: msm_drm

(test-launch:14624): GStreamer-CRITICAL **: 23:43:16.412: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed

(test-launch:14624): GStreamer-CRITICAL **: 23:43:23.195: Trying to dispose element media-pipeline, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

(test-launch:14624): GStreamer-CRITICAL **: 23:43:23.202: Trying to dispose element qmmf!, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

(test-launch:14624): GStreamer-CRITICAL **: 23:43:23.208: Trying to dispose element bin0, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

gbm_create_device(156): Info: backend name is: msm_drm


However, when I want to connect to RB5 with a clients VLC (Ubuntu 18.04) It shows:

VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7) [000055a154119610] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [000055a15411d580] main playlist: playlist is empty Created new TCP socket 36 for connection [00007f10700010f0] live555 demux error: Failed to connect with rtsp://192.168.1.104:8554/test [00007f1070004aa0] satip stream error: Failed to setup RTSP session QObject::~QObject: Timers cannot be stopped from another thread


PS: I can start a Gstreamer TCP server and can connect with a client VLC with the following commands: gst-launch-1.0 -e qtiqmmfsrc name=qmmf ! video/x-h264,format=NV12, width=1280, height=720,framerate=30/1 ! h264parse config-interval=1 ! mpegtsmux name=muxer ! queue ! tcpserversink port=8900 host=192.168.1.104

Can a Gsreamer RTSP server also start with such command or any simpler python file.

I am exhausted and confused. Thanks for any comment!! It will be a lot help!!

tranhien1612 commented 6 days ago

@imavgg do you have the code for streaming by c/c++? i run the example but it uses tcp. I want to use rtsp for streaming.