dusty-nv / jetson-inference

Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
https://developer.nvidia.com/embedded/twodaystoademo
MIT License
7.92k stars 2.99k forks source link

After disconnection from Jetson RTSP translation, new connection cannot be established again. #1790

Open At2024Start opened 10 months ago

At2024Start commented 10 months ago
  1. Run command "./video-viewer csi://0 rtsp://@:8554/stream_1" on Jetson TX2 NX.
  2. Run gstreamer on Windows PC connected to Jetson trought USB cable : "gst-launch-1.0 rtspsrc location=rtsp://192.168.55.1:8554/stream_1 latency=100 ! queue ! rtph264depay ! h264parse ! decodebin ! videoconvert ! videoscale ! video/x-raw,width=640,height=480 ! autovideosink" (Or open "rtsp://192.168.55.1:8554/stream_1" in VLC on Windows ... no difference)
  3. Successfully receive video translation on Windows PC.
  4. Close receiving translation.
  5. All next tryings to open receive translation ends with error.

Log from terminal :

developer@developer-desktop:~/ijGround$ DISPLAY=:0 GST_DEBUG=3 ./video-viewer csi://0 rtsp://@:8554/stream_1 [gstreamer] initialized gstreamer, version 1.14.5.0 [gstreamer] gstCamera -- attempting to create device csi://0 [gstreamer] gstCamera pipeline string: [gstreamer] nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=30/1, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw(memory:NVMM) ! appsink name=mysink [gstreamer] gstCamera successfully created device csi://0 [video] created gstCamera from csi://0

gstCamera video options:

-- URI: csi://0

GST_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings: Camera index = 0 Camera mode = 4 Output Stream W = 1280 H = 720 seconds to Run = 0 Frame Rate = 59.999999 GST_ARGUS: Setup Complete, Starting captures for 0 seconds GST_ARGUS: Starting repeat capture requests. CONSUMER: Producer has connected; continuing. [gstreamer] gstCamera -- onPreroll [gstreamer] gstBufferManager recieve caps: video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, format=(string)NV12, framerate=(fraction)30/1 [gstreamer] gstBufferManager -- recieved first frame, codec=raw format=nv12 width=1280 height=720 size=1008 [gstreamer] gstBufferManager -- recieved NVMM memory [cuda] allocated 4 ring buffers (8 bytes each, 32 bytes total) [gstreamer] gstreamer changed state from READY to PAUSED ==> mysink [gstreamer] gstreamer message async-done ==> pipeline0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> mysink [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> pipeline0 [cuda] allocated 4 ring buffers (2764800 bytes each, 11059200 bytes total) video-viewer: captured 0 frames (1280x720) [OpenGL] glDisplay -- set the window size to 1280x720 [OpenGL] creating 1280x720 texture (GL_RGB8 format, 2764800 bytes) [cuda] registered openGL texture for interop access (1280x720, GL_RGB8, 2764800 bytes) [cuda] allocated 2 ring buffers (1382400 bytes each, 2764800 bytes total) [gstreamer] gstEncoder -- starting pipeline, transitioning to GST_STATE_PLAYING [gstreamer] gstreamer changed state from NULL to READY ==> pay0 [gstreamer] gstreamer changed state from NULL to READY ==> capsfilter2 [gstreamer] gstreamer changed state from NULL to READY ==> encoder [gstreamer] gstreamer changed state from NULL to READY ==> mysource [gstreamer] gstreamer changed state from NULL to READY ==> pipeline1 [gstreamer] gstreamer changed state from READY to PAUSED ==> pay0 [gstreamer] gstreamer changed state from READY to PAUSED ==> capsfilter2 [gstreamer] gstreamer changed state from READY to PAUSED ==> encoder [gstreamer] gstreamer stream status CREATE ==> src [gstreamer] gstreamer changed state from READY to PAUSED ==> mysource [gstreamer] gstreamer changed state from READY to PAUSED ==> pipeline1 [gstreamer] gstreamer message new-clock ==> pipeline1 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> pay0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> capsfilter2 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> encoder [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> mysource [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> pipeline1 [gstreamer] gstreamer stream status ENTER ==> src [gstreamer] gstEncoder -- new caps: video/x-raw, width=1280, height=720, format=(string)I420, framerate=30/1 Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) video-viewer: captured 1 frames (1280x720) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: stream stopped, reason not-linked [gstreamer] gstreamer stream status CREATE ==> src [gstreamer] gstreamer stream status ENTER ==> src [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: streaming stopped, reason not-linked (-1) [gstreamer] gstreamer encoder ERROR Internal data stream error. [gstreamer] gstreamer Debugging info: /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c(1383): gst_omx_video_enc_loop (): /GstPipeline:pipeline1/GstOMXH264Enc-omxh264enc:encoder: stream stopped, reason not-linked [gstreamer] gstreamer mysource ERROR Internal data stream error. [gstreamer] gstreamer Debugging info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline1/GstAppSrc:mysource: streaming stopped, reason not-linked (-1) video-viewer: captured 2 frames (1280x720) video-viewer: captured 3 frames (1280x720) video-viewer: captured 4 frames (1280x720) video-viewer: captured 5 frames (1280x720) video-viewer: captured 6 frames (1280x720) video-viewer: captured 7 frames (1280x720) video-viewer: captured 8 frames (1280x720) video-viewer: captured 9 frames (1280x720) video-viewer: captured 10 frames (1280x720) video-viewer: captured 11 frames (1280x720) video-viewer: captured 12 frames (1280x720) video-viewer: captured 13 frames (1280x720) video-viewer: captured 14 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 25 (1280x720, 1382400 bytes) video-viewer: captured 25 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 50 (1280x720, 1382400 bytes) video-viewer: captured 50 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 75 (1280x720, 1382400 bytes) video-viewer: captured 75 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 100 (1280x720, 1382400 bytes) video-viewer: captured 100 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 125 (1280x720, 1382400 bytes) video-viewer: captured 125 frames (1280x720) Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:3867 gst_rtsp_media_suspend media 0x7f5800a1a0 was not prepared video-viewer: captured 150 frames (1280x720) video-viewer: captured 175 frames (1280x720) video-viewer: captured 200 frames (1280x720) video-viewer: captured 225 frames (1280x720) video-viewer: captured 250 frames (1280x720) video-viewer: captured 275 frames (1280x720) [gstreamer] gstEncoder -- an error occurred pushing appsrc buffer (result=-2 'flushing') [gstreamer] gstEncoder -- pipeline is in the 'NULL' state, restarting pipeline... [gstreamer] gstEncoder -- starting pipeline, transitioning to GST_STATE_PLAYING Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: stream stopped, reason not-linked [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: streaming stopped, reason not-linked (-1) [gstreamer] gstEncoder -- pipeline full, skipping frame 300 (1280x720, 1382400 bytes) video-viewer: captured 300 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 325 (1280x720, 1382400 bytes) video-viewer: captured 325 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 350 (1280x720, 1382400 bytes) video-viewer: captured 350 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 375 (1280x720, 1382400 bytes) video-viewer: captured 375 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 400 (1280x720, 1382400 bytes) video-viewer: captured 400 frames (1280x720) Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:3867 gst_rtsp_media_suspend media 0x7f5800a1a0 was not prepared [gstreamer] GST_LEVEL_WARNING GstRTSPStream rtspstream rtsp-stream.c:2796 create_sender_part no sockets assigned for UDP [gstreamer] GST_LEVEL_ERROR rtspclient rtsp-client.c:1746 handle_play_request client 0x558aa730d0: failed to configure the pipeline [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS video-viewer: captured 425 frames (1280x720) [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:4156 gst_rtsp_media_set_state media 0x7f5800a1a0 was not prepared [gstreamer] gstEncoder -- an error occurred pushing appsrc buffer (result=-2 'flushing') [gstreamer] gstEncoder -- pipeline is in the 'NULL' state, restarting pipeline... [gstreamer] gstEncoder -- starting pipeline, transitioning to GST_STATE_PLAYING Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: stream stopped, reason not-linked [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: streaming stopped, reason not-linked (-1) [gstreamer] gstEncoder -- pipeline full, skipping frame 450 (1280x720, 1382400 bytes) video-viewer: captured 450 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 475 (1280x720, 1382400 bytes) video-viewer: captured 475 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 500 (1280x720, 1382400 bytes) video-viewer: captured 500 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 525 (1280x720, 1382400 bytes) video-viewer: captured 525 frames (1280x720) Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:3867 gst_rtsp_media_suspend media 0x7f5800a1a0 was not prepared [gstreamer] GST_LEVEL_WARNING GstRTSPStream rtspstream rtsp-stream.c:2796 create_sender_part no sockets assigned for UDP [gstreamer] GST_LEVEL_ERROR rtspclient rtsp-client.c:1746 handle_play_request client 0x558aa73400: failed to configure the pipeline [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] gstEncoder -- an error occurred pushing appsrc buffer (result=-2 'flushing') [gstreamer] gstEncoder -- pipeline is in the 'NULL' state, restarting pipeline... [gstreamer] gstEncoder -- starting pipeline, transitioning to GST_STATE_PLAYING [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:4156 gst_rtsp_media_set_state media 0x7f5800a1a0 was not prepared Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: stream stopped, reason not-linked [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: streaming stopped, reason not-linked (-1) [gstreamer] gstBufferManager -- failed to retrieve timestamp buffer (default to 0) [gstreamer] gstEncoder -- pipeline full, skipping frame 550 (1280x720, 1382400 bytes) video-viewer: captured 550 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 575 (1280x720, 1382400 bytes) video-viewer: captured 575 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 600 (1280x720, 1382400 bytes) video-viewer: captured 600 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 625 (1280x720, 1382400 bytes) video-viewer: captured 625 frames (1280x720) Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE video-viewer: captured 650 frames (1280x720) [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:3867 gst_rtsp_media_suspend media 0x7f5800a1a0 was not prepared [gstreamer] GST_LEVEL_WARNING GstRTSPStream rtspstream rtsp-stream.c:2796 create_sender_part no sockets assigned for UDP [gstreamer] GST_LEVEL_ERROR rtspclient rtsp-client.c:1746 handle_play_request client 0x558aa73620: failed to configure the pipeline [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] GST_LEVEL_WARNING rtspmedia rtsp-media.c:4156 gst_rtsp_media_set_state media 0x7f5800a1a0 was not prepared [gstreamer] gstEncoder -- an error occurred pushing appsrc buffer (result=-2 'flushing') [gstreamer] gstEncoder -- pipeline is in the 'NULL' state, restarting pipeline... [gstreamer] gstEncoder -- starting pipeline, transitioning to GST_STATE_PLAYING Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 ===== NVMEDIA: NVENC ===== NvMMLiteBlockCreate : Block : BlockType = 4 [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1860 gst_omx_video_enc_set_format Error setting temporal_tradeoff 0 : Vendor specific error (0x00000001) H264: Profile = 66, Level = 40 NVMEDIA_ENC: bBlitMode is set to TRUE [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:755 gst_rtp_h264_pay_send_sps_pps Problem pushing SPS [gstreamer] GST_LEVEL_WARNING GstRtpH264Pay rtph264pay gstrtph264pay.c:769 gst_rtp_h264_pay_send_sps_pps Problem pushing PPS [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstOMXH264Enc-omxh264enc omxvideoenc /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideoenc.c:1383 gst_omx_video_enc_loop error: stream stopped, reason not-linked [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: Internal data stream error. [gstreamer] GST_LEVEL_WARNING GstAppSrc basesrc gstbasesrc.c:3055 gst_base_src_loop error: streaming stopped, reason not-linked (-1) [gstreamer] gstEncoder -- pipeline full, skipping frame 675 (1280x720, 1382400 bytes) video-viewer: captured 675 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 700 (1280x720, 1382400 bytes) video-viewer: captured 700 frames (1280x720) [gstreamer] gstEncoder -- pipeline full, skipping frame 725 (1280x720, 1382400 bytes) video-viewer: captured 725 frames (1280x720) ^Creceived SIGINT video-viewer: shutting down... [gstreamer] gstCamera -- stopping pipeline, transitioning to GST_STATE_NULL GST_ARGUS: Cleaning up CONSUMER: Done Success GST_ARGUS: Done Success [gstreamer] gstCamera -- pipeline stopped [gstreamer] gstEncoder -- shutting down pipeline, sending EOS [gstreamer] gstEncoder -- transitioning pipeline to GST_STATE_NULL [gstreamer] gstEncoder -- pipeline stopped [rtsp] RTSP server on port 8554 is shutting down [rtsp] RTSP server thread stopped video-viewer: shutdown complete developer@developer-desktop:~/ijGround$

Andreanbudi commented 10 months ago

I have same issue

rahulkgupta commented 8 months ago

I'm running into a similar issue. Were y'all able to solve it?

dusty-nv commented 8 months ago

@rahulkgupta ended up using a higher-level connection manager like here:

https://github.com/dusty-nv/jetson-containers/blob/1a7fb07dd6183be744784a1c418799c1e0796ca3/packages/llm/local_llm/plugins/video.py#L83

rahulkgupta commented 7 months ago

I'm not sure I follow. Are you saying it's solved in a recent version or to use the higher level connection manager?

dusty-nv commented 7 months ago

Use a higher level connection manager


From: Rahul Gupta @.> Sent: Wednesday, April 17, 2024 2:43:47 PM To: dusty-nv/jetson-inference @.> Cc: Dustin Franklin @.>; Comment @.> Subject: Re: [dusty-nv/jetson-inference] After disconnection from Jetson RTSP translation, new connection cannot be established again. (Issue #1790)

I'm not sure I follow. Are you saying it's solved in a recent version or to use the higher level connection manager?

— Reply to this email directly, view it on GitHubhttps://github.com/dusty-nv/jetson-inference/issues/1790#issuecomment-2061978014, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADVEGK5A6W6WMBB6YMF3NF3Y527GHAVCNFSM6AAAAABCU77ETOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRHE3TQMBRGQ. You are receiving this because you commented.Message ID: @.***>

rahulkgupta commented 7 months ago

it seems like something is happening lower level w/ gstreamer / videooutput. Specifically, the following:

[gstreamer] gstEncoder -- new caps: video/x-raw, width=1280, height=720, format=(string)I420, framerate=30/1
video-viewer:  captured 1 frames (1280x720)
[gstreamer] gstreamer message latency ==> encoder
video-viewer:  captured 2 frames (1280x720)
[gstreamer] gstreamer mysource ERROR Internal data stream error.
[gstreamer] gstreamer Debugging info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline1/GstAppSrc:mysource:
streaming stopped, reason not-linked (-1)

The higher level connection manager you reference seems to help with the input side, but maybe i'm missing something (still new to all of this).