Gstreamer rtsp server cannot connection with "no control in path '/test'"

Hi everyone,

We are developing the webcam streaming with rtsp server on Jetson Nano,
when we use the vlc (PC client) to connect the server, we get connection fail with the error message in Nano (rtsp server).
0:06:44.760563336 9974 0x5589b321e0 ERROR rtspclient rtsp-client.c:2651:handle_setup_request: client 0x5589d04220: no control in path '/test’

Install gstreamer rtsp server with command:
sudo apt-get install libgstrtspserver-1.0
And git clone the rtsp server example:

We use the command to create the rtsp server:
nvidia@nvidia-desktop:~/gst-rtsp-server/examples$ ./test-launch v4l2src device=/dev/video1 ! “video/x-raw, width=640, height=480, format=(string)YUY2” ! queue ! nvvidconv ! “video/x-raw(memory:NVMM), width=640, height=480, format=(string)I420” ! omxh264enc bitrate=912000 ! ‘video/x-h264, stream-format=(string)byte-stream’ ! rtph264pay name=pay0 pt=96

Then we get the server create log (export GST_DEBUG=4):
0:00:00.000171398 9974 0x5589abac00 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.5
0:00:00.000256811 9974 0x5589abac00 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/aarch64-linux-gnu
0:00:00.000314204 9974 0x5589abac00 INFO GST_INIT gst.c:607:init_pre: Linux nvidia-desktop 4.9.140-tegra #2 SMP PREEMPT Wed Apr 22 13:44:16 CST 2020 aarch64
0:00:00.000892407 9974 0x5589abac00 INFO GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.002086207 9974 0x5589abac00 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.002398173 9974 0x5589abac00 INFO GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.002592955 9974 0x5589abac00 INFO GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin “staticelements”
0:00:00.002623110 9974 0x5589abac00 INFO GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin “staticelements”, result: 1
0:00:00.002663942 9974 0x5589abac00 INFO GST_REGISTRY gstregistry.c:1727:ensure_current_registry: reading registry cache: /home/nvidia/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.042154189 9974 0x5589abac00 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/nvidia/.cache/gstreamer-1.0/registry.aarch64.bin in 0.039435 seconds
0:00:00.042307933 9974 0x5589abac00 INFO GST_REGISTRY gstregistry.c:1583:scan_and_update_registry: Validating plugins from registry cache: /home/nvidia/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.047511552 9974 0x5589abac00 INFO GST_REGISTRY gstregistry.c:1685:scan_and_update_registry: Registry cache has not changed
0:00:00.047548946 9974 0x5589abac00 INFO GST_REGISTRY gstregistry.c:1762:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.047567799 9974 0x5589abac00 INFO GST_INIT gst.c:807:init_post: GLib runtime version: 2.56.4
0:00:00.047585298 9974 0x5589abac00 INFO GST_INIT gst.c:809:init_post: GLib headers version: 2.56.4
0:00:00.047597694 9974 0x5589abac00 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.048066422 9974 0x5589abac00 INFO rtspmountpoints rtsp-mount-points.c:333:gst_rtsp_mount_points_add_factory: adding media factory 0x5589ac35f0 for path /test
stream ready at rtsp://127.0.0.1:8554/test

PC vlc connect the network source (rtsp://{NANO IP}:8554/test):
0:06:44.143233084 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4132:gst_rtsp_client_set_connection: client 0x5589d04110 connected to server ip 192.168.1.222, ipv6 = 0
0:06:44.143522819 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4135:gst_rtsp_client_set_connection: added new client 0x5589d04110 ip 192.168.1.160:56492
0:06:44.144948843 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4631:gst_rtsp_client_attach: client 0x5589d04110: attaching to context 0x5589d03350
0:06:44.145227485 9974 0x5589b32190 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x5589cfc310
0:06:44.147158657 9974 0x5589b32190 INFO rtspclient rtsp-client.c:3468:handle_request: client 0x5589d04110: received a request OPTIONS rtsp://192.168.1.222:8554/test 1.0
0:06:44.194492988 9974 0x5589b32190 INFO rtspclient rtsp-client.c:3468:handle_request: client 0x5589d04110: received a request DESCRIBE rtsp://192.168.1.222:8554/test 1.0
0:06:44.194880431 9974 0x5589b32190 INFO rtspmountpoints rtsp-mount-points.c:300:gst_rtsp_mount_points_match: found media factory 0x5589ac35f0 for path /test
0:06:44.195159958 9974 0x5589b32190 INFO GST_PIPELINE gstparse.c:337:gst_parse_launch_full: parsing pipeline description ‘v4l2src’
0:06:44.418415281 9974 0x5589b32190 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so” loaded
0:06:44.419158136 9974 0x5589b32190 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “v4l2src”
0:06:44.431476882 9974 0x5589b32190 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseSrc@0x7fac01c1e0 adding pad ‘src’

(test-launch:9974): GLib-GObject-WARNING **: 17:11:40.110: invalid cast from ‘GstV4l2Src’ to ‘GstBin’

(test-launch:9974): GStreamer-CRITICAL **: 17:11:40.111: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(test-launch:9974): GLib-GObject-WARNING **: 17:11:40.111: invalid cast from ‘GstV4l2Src’ to ‘GstBin’

(test-launch:9974): GStreamer-CRITICAL **: 17:11:40.111: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(test-launch:9974): GLib-GObject-WARNING **: 17:11:40.111: invalid cast from ‘GstV4l2Src’ to ‘GstBin’

(test-launch:9974): GStreamer-CRITICAL **: 17:11:40.111: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed
0:06:44.433382065 9974 0x5589b32190 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “pipeline” named “media-pipeline”
0:06:44.434123358 9974 0x5589b32190 INFO rtspmediafactory rtsp-media-factory.c:1268:gst_rtsp_media_factory_construct: constructed media 0x7fac01e280 for url /test
0:06:44.434290699 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:3217:gst_rtsp_media_prepare: preparing media 0x7fac01e280
0:06:44.434451218 9974 0x5589b32320 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x7fac00bb20
0:06:44.436141509 9974 0x5589b32190 INFO GST_PLUGIN_LOADING gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstrtpmanager.so” loaded
0:06:44.436216820 9974 0x5589b32190 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “rtpbin”
0:06:44.437835653 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:3244:gst_rtsp_media_prepare: object 0x7fac01e280 is prerolled
0:06:44.437961173 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:778:collect_media_stats: collect media stats
0:06:44.437999245 9974 0x5589b32190 FIXME rtspmedia rtsp-media.c:3841:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:06:44.438039401 9974 0x5589b32190 INFO rtspclient rtsp-client.c:2867:handle_describe_request: adding content-base: rtsp://192.168.1.222:8554/test/
0:06:44.439276572 9974 0x5589b32190 INFO rtspclient rtsp-client.c:4352:closed: client 0x5589d04110: connection closed
0:06:44.439334228 9974 0x5589b32190 INFO rtspclient rtsp-client.c:4584:client_watch_notify: client 0x5589d04110: watch destroyed
0:06:44.439418914 9974 0x5589b32190 INFO rtspclient rtsp-client.c:737:gst_rtsp_client_finalize: finalize client 0x5589d04110
0:06:44.439577297 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:3431:gst_rtsp_media_unprepare: unprepare media 0x7fac01e280
0:06:44.439634953 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:2632:set_target_state: set target state to NULL for media 0x7fac01e280
0:06:44.439676567 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:2619:set_state: set state to NULL for media 0x7fac01e280
0:06:44.439785784 9974 0x5589b32190 INFO GST_STATES gstbin.c:2506:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL
0:06:44.439892293 9974 0x5589b32190 INFO GST_STATES gstelement.c:2676:gst_element_continue_state: completed state change to NULL
0:06:44.440011979 9974 0x5589b32190 INFO GST_STATES gstbin.c:2954:gst_bin_change_state_func: child ‘rtpbin0’ changed state to 1(NULL) successfully
0:06:44.440071926 9974 0x5589b32190 INFO GST_STATES gstbin.c:2506:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL
0:06:44.440117811 9974 0x5589b32190 INFO GST_STATES gstbin.c:2623:gst_bin_element_set_state: skipping transition from NULL to NULL
0:06:44.440164321 9974 0x5589b32190 INFO GST_STATES gstbin.c:2954:gst_bin_change_state_func: child ‘v4l2src0’ changed state to 1(NULL) successfully
0:06:44.440349162 9974 0x5589b32190 INFO GST_STATES gstelement.c:2676:gst_element_continue_state: completed state change to NULL
0:06:44.440459317 9974 0x5589b32190 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func: removed child “rtpbin0”
0:06:44.440552910 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x7fac030050 dispose
0:06:44.441033320 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4132:gst_rtsp_client_set_connection: client 0x5589d04220 connected to server ip 192.168.1.222, ipv6 = 0
0:06:44.441068007 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4135:gst_rtsp_client_set_connection: added new client 0x5589d04220 ip 192.168.1.160:56493
0:06:44.441965600 9974 0x5589b321e0 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x5589cffc30
0:06:44.442002526 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4631:gst_rtsp_client_attach: client 0x5589d04220: attaching to context 0x5589ad1240
0:06:44.442053151 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3297:gst_element_dispose: 0x7fac030050 parent class dispose
0:06:44.442089661 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x7fac030050 finalize
0:06:44.442118046 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3334:gst_element_finalize: 0x7fac030050 finalize parent
0:06:44.442187732 9974 0x5589b32190 INFO rtspmedia rtsp-media.c:459:gst_rtsp_media_finalize: finalize media 0x7fac01e280
0:06:44.442196534 9974 0x5589b32320 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x7fac00bb20
0:06:44.442237107 9974 0x5589b32190 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func: removed child “v4l2src0”
0:06:44.442275283 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x7fac0281a0 dispose
0:06:44.442326637 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3297:gst_element_dispose: 0x7fac0281a0 parent class dispose
0:06:44.442351949 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x7fac0281a0 finalize
0:06:44.442370751 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3334:gst_element_finalize: 0x7fac0281a0 finalize parent
0:06:44.442390750 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x7fac01c1e0 dispose
0:06:44.442416011 9974 0x5589b32190 INFO GST_ELEMENT_PADS gstelement.c:789:gst_element_remove_pad: removing pad ‘src’
0:06:44.442465593 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3297:gst_element_dispose: 0x7fac01c1e0 parent class dispose
0:06:44.442508770 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x7fac01c1e0 finalize
0:06:44.442530384 9974 0x5589b32190 INFO GST_REFCOUNTING gstelement.c:3334:gst_element_finalize: 0x7fac01c1e0 finalize parent
0:06:44.442577154 9974 0x5589b32190 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x5589cfc310
0:06:44.752068707 9974 0x5589b321e0 INFO rtspclient rtsp-client.c:3468:handle_request: client 0x5589d04220: received a request SETUP rtsp://192.168.1.222:8554/test 1.0
0:06:44.752268496 9974 0x5589b321e0 INFO rtspmountpoints rtsp-mount-points.c:300:gst_rtsp_mount_points_match: found media factory 0x5589ac35f0 for path /test
0:06:44.752360526 9974 0x5589b321e0 INFO GST_PIPELINE gstparse.c:337:gst_parse_launch_full: parsing pipeline description ‘v4l2src’
0:06:44.752966143 9974 0x5589b321e0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “v4l2src”
0:06:44.753349419 9974 0x5589b321e0 INFO GST_ELEMENT_PADS gstelement.c:670:gst_element_add_pad:GstBaseSrc@0x7fac01d0e0 adding pad ‘src’

(test-launch:9974): GLib-GObject-WARNING **: 17:11:40.432: invalid cast from ‘GstV4l2Src’ to ‘GstBin’

(test-launch:9974): GStreamer-CRITICAL **: 17:11:40.433: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(test-launch:9974): GLib-GObject-WARNING **: 17:11:40.433: invalid cast from ‘GstV4l2Src’ to ‘GstBin’

(test-launch:9974): GStreamer-CRITICAL **: 17:11:40.433: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed

(test-launch:9974): GLib-GObject-WARNING **: 17:11:40.434: invalid cast from ‘GstV4l2Src’ to ‘GstBin’

(test-launch:9974): GStreamer-CRITICAL **: 17:11:40.434: gst_bin_get_by_name: assertion ‘GST_IS_BIN (bin)’ failed
0:06:44.756374953 9974 0x5589b321e0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:359:gst_element_factory_create: creating element “pipeline” named “media-pipeline”
0:06:44.757573583 9974 0x5589b321e0 INFO rtspmediafactory rtsp-media-factory.c:1268:gst_rtsp_media_factory_construct: constructed media 0x7fac01e9c0 for url /test
0:06:44.758793567 9974 0x5589b32320 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x7fac025600
0:06:44.759513193 9974 0x5589b321e0 INFO rtspmedia rtsp-media.c:3217:gst_rtsp_media_prepare: preparing media 0x7fac01e9c0
0:06:44.759620640 9974 0x5589b321e0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:361:gst_element_factory_create: creating element “rtpbin”
0:06:44.760294121 9974 0x5589b321e0 INFO rtspmedia rtsp-media.c:3244:gst_rtsp_media_prepare: object 0x7fac01e9c0 is prerolled
0:06:44.760423963 9974 0x5589b321e0 FIXME rtspmedia rtsp-media.c:3841:gst_rtsp_media_suspend: suspend for dynamic pipelines needs fixing
0:06:44.760563336 9974 0x5589b321e0 ERROR rtspclient rtsp-client.c:2651:handle_setup_request: client 0x5589d04220: no control in path '/test’
0:06:44.762715183 9974 0x5589b321e0 INFO rtspclient rtsp-client.c:4352:closed: client 0x5589d04220: connection closed
0:06:44.762934347 9974 0x5589b321e0 INFO rtspclient rtsp-client.c:4584:client_watch_notify: client 0x5589d04220: watch destroyed
0:06:44.763251895 9974 0x5589b321e0 INFO rtspclient rtsp-client.c:737:gst_rtsp_client_finalize: finalize client 0x5589d04220
0:06:44.763562672 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4132:gst_rtsp_client_set_connection: client 0x5589d04330 connected to server ip 192.168.1.222, ipv6 = 0
0:06:44.763779180 9974 0x5589b321e0 INFO rtspmedia rtsp-media.c:3431:gst_rtsp_media_unprepare: unprepare media 0x7fac01e9c0
0:06:44.763795065 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4135:gst_rtsp_client_set_connection: added new client 0x5589d04330 ip 192.168.1.160:56494
0:06:44.764197924 9974 0x5589b321e0 INFO rtspmedia rtsp-media.c:2632:set_target_state: set target state to NULL for media 0x7fac01e9c0
0:06:44.764293652 9974 0x5589b321e0 INFO rtspmedia rtsp-media.c:2619:set_state: set state to NULL for media 0x7fac01e9c0
0:06:44.764306829 9974 0x5589abac00 INFO rtspclient rtsp-client.c:4631:gst_rtsp_client_attach: client 0x5589d04330: attaching to context 0x5589ae0c30
0:06:44.764796718 9974 0x5589b321e0 INFO GST_STATES gstbin.c:2506:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL
0:06:44.764402661 9974 0x5589b32190 INFO rtspthreadpool rtsp-thread-pool.c:330:do_loop: enter mainloop of thread 0x5589cffca0
0:06:44.765149110 9974 0x5589b321e0 INFO GST_STATES gstelement.c:2676:gst_element_continue_state: completed state change to NULL
0:06:44.765298170 9974 0x5589b321e0 INFO GST_STATES gstbin.c:2954:gst_bin_change_state_func: child ‘rtpbin1’ changed state to 1(NULL) successfully
0:06:44.765613895 9974 0x5589b321e0 INFO GST_STATES gstbin.c:2506:gst_bin_element_set_state: current NULL pending VOID_PENDING, desired next NULL
0:06:44.765732748 9974 0x5589b321e0 INFO GST_STATES gstbin.c:2623:gst_bin_element_set_state: skipping transition from NULL to NULL
0:06:44.766106285 9974 0x5589b321e0 INFO GST_STATES gstbin.c:2954:gst_bin_change_state_func: child ‘v4l2src1’ changed state to 1(NULL) successfully
0:06:44.766241075 9974 0x5589b321e0 INFO GST_STATES gstelement.c:2676:gst_element_continue_state: completed state change to NULL
0:06:44.766526071 9974 0x5589b321e0 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func: removed child “rtpbin1”
0:06:44.766749818 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x7fac030a10 dispose
0:06:44.766838984 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3297:gst_element_dispose: 0x7fac030a10 parent class dispose
0:06:44.767064293 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x7fac030a10 finalize
0:06:44.767153302 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3334:gst_element_finalize: 0x7fac030a10 finalize parent
0:06:44.767403872 9974 0x5589b321e0 INFO rtspmedia rtsp-media.c:459:gst_rtsp_media_finalize: finalize media 0x7fac01e9c0
0:06:44.767603140 9974 0x5589b321e0 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func: removed child “v4l2src1”
0:06:44.767701889 9974 0x5589b32320 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x7fac025600
0:06:44.768155946 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x7fac0289a0 dispose
0:06:44.769348638 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3297:gst_element_dispose: 0x7fac0289a0 parent class dispose
0:06:44.769443273 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x7fac0289a0 finalize
0:06:44.769506345 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3334:gst_element_finalize: 0x7fac0289a0 finalize parent
0:06:44.769654051 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose: 0x7fac01d0e0 dispose
0:06:44.769789258 9974 0x5589b321e0 INFO GST_ELEMENT_PADS gstelement.c:789:gst_element_remove_pad: removing pad ‘src’
0:06:44.769995401 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3297:gst_element_dispose: 0x7fac01d0e0 parent class dispose
0:06:44.770205815 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize: 0x7fac01d0e0 finalize
0:06:44.770333261 9974 0x5589b321e0 INFO GST_REFCOUNTING gstelement.c:3334:gst_element_finalize: 0x7fac01d0e0 finalize parent
0:06:44.770638674 9974 0x5589b321e0 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x5589cffc30
0:06:44.776047249 9974 0x5589b32190 INFO rtspclient rtsp-client.c:3468:handle_request: client 0x5589d04330: received a request OPTIONS rtsp://192.168.1.222:8554 1.0
0:06:44.776944061 9974 0x5589b32190 INFO rtspclient rtsp-client.c:4352:closed: client 0x5589d04330: connection closed
0:06:44.777032132 9974 0x5589b32190 INFO rtspclient rtsp-client.c:4584:client_watch_notify: client 0x5589d04330: watch destroyed
0:06:44.777141089 9974 0x5589b32190 INFO rtspclient rtsp-client.c:737:gst_rtsp_client_finalize: finalize client 0x5589d04330
0:06:44.777417544 9974 0x5589b32190 INFO rtspthreadpool rtsp-thread-pool.c:332:do_loop: exit mainloop of thread 0x5589cffca0

Can anyone help us please? Thanks!

You may tell your L4T release:

head -n 1 /etc/nv_tegra_release

In recent versions you may try nvv4l2h264enc instead of omxh264enc.
In older versions, it might require to encode into H264 baseline profile in most cases for rtsp streaming.

1 Like

Hi,
Please use nvv4l2h264enc. You have set width,height,format in v4l2src and please set framerate also.

$ ./test-launch "v4l2src device=/dev/video1 ! video/x-raw, width=640,height=480,format=(string)YUY2,framerate=30/1 ! queue ! nvvidconv ! video/x-raw(memory:NVMM),width=640,height=480,format=(string)NV12 ! nvv4l2h264enc bitrate=912000 ! video/x-h264, stream-format=(string)byte-stream ! rtph264pay name=pay0 pt=96"
1 Like

Hi Honey_Patouceul and DaneLLL,

Thanks for your help, we use the nvv4l2h264enc instead of omxh264enc and the problem is resolved.

Our Platform information: (for reference)
L4T version -> R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t210ref, EABI: aarch64
Jatpack -> JetPack 4.3
gst-rtsp-server -> 1.17.0.1

1 Like