Jetson TX2 --- Camera RTSP Strea
2019-04-26 本文已影响15人
童年雅趣
网络相机调试记录(RTSP)
型号: 海康DS-2CD1221-I3/I5 (200万1/2.7”CMOS ICR日夜型筒型网络摄像机 )
账号+密码:admin:wxt123456)
命令: Gstreamer (gst-launch-1.0)
TX2 —— 执行(ex1)- 播放RTSP --- Okay
gst-launch-1.0 playbin uri=rtsp://admin:wxt123456@192.168.1.64:554 --gst-debug=2
---gst-debug=2 为 添加调试信息方便排查
nvidia@tegra-ubuntu:~/$ gst-launch-1.0 playbin uri=rtsp://admin:wxt123456@192.168.1.64:554 --gst-debug=2
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:wxt123456@192.168.1.64:554
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
0:00:00.318820067 5097 0x7f7c002450 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/nvidia/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
NvMMLiteOpen : Block : BlockType = 261
TVMR: NvMMLiteTVMRDecBlockOpen: 7647: NvMMLiteBlockOpen
NvMMLiteBlockCreate : Block : BlockType = 261
TVMR: cbBeginSequence: 1179: BeginSequence 1920x1088, bVPR = 0
TVMR: LowCorner Frequency = 180000
TVMR: cbBeginSequence: 1529: DecodeBuffers = 5, pnvsi->eCodec = 4, codec = 0
TVMR: cbBeginSequence: 1600: Display Resolution : (1920x1080)
TVMR: cbBeginSequence: 1601: Display Aspect Ratio : (1920x1080)
TVMR: cbBeginSequence: 1669: ColorFormat : 5
TVMR: cbBeginSequence:1683 ColorSpace = NvColorSpace_YCbCr601
TVMR: cbBeginSequence: 1809: SurfaceLayout = 3
TVMR: cbBeginSequence: 1902: NumOfSurfaces = 12, InteraceStream = 0, InterlaceEnabled = 0, bSecure = 0, MVC = 0 Semiplanar = 1, bReinit = 1, BitDepthForSurface = 8 LumaBitDepth = 8, ChromaBitDepth = 8, ChromaFormat = 5
TVMR: cbBeginSequence: 1904: BeginSequence ColorPrimaries = 2, TransferCharacteristics = 2, MatrixCoefficients = 2
Allocating new output: 1920x1088 (x 12), ThumbnailMode = 0
OPENMAX: HandleNewStreamFormat: 3464: Send OMX_EventPortSettingsChanged : nFrameWidth = 1920, nFrameHeight = 1088
TVMR: FrameRate = 25
TVMR: NVDEC LowCorner Freq = (150000 * 1024)
---> TVMR: Video-conferencing detected !!!!!!!!!
TVMR: FrameRate = 25.109730
TVMR: FrameRate = 25.001375
TVMR: FrameRate = 24.989317
TVMR: FrameRate = 24.999438
TX2 —— 执行(ex2)- 播放RTSP --- Okay
GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://admin:wxt123456@192.168.1.64:554 ! rtph264depay ! **h264parse** ! omxh264dec ! nvvidconv ! video/x-raw, width=1920, height=1280, format=BGRx ! videoconvert ! ximagesink 2>&1 | tee gst-launch-rtspsrc.level3.log
GST_DEBUG=3 为 添加调试信息方便排查
运行Terminal log
nvidia@tegra-ubuntu:~/$ GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://admin:wxt123456@192.168.1.64:554 ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! video/x-raw, width=1920, height=1280, format=BGRx ! videoconvert ! ximagesink 2>&1 | tee gst-launch-rtspsrc.level3.log
0:00:00.148157616 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x120000: 'AVR (Audio Visual Research)' is not mapped
0:00:00.148261324 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x180000: 'CAF (Apple Core Audio File)' is not mapped
0:00:00.148285163 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x100000: 'HTK (HMM Tool Kit)' is not mapped
0:00:00.148304458 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0xc0000: 'MAT4 (GNU Octave 2.0 / Matlab 4.2)' is not mapped
0:00:00.148319913 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0xd0000: 'MAT5 (GNU Octave 2.1 / Matlab 5.0)' is not mapped
0:00:00.148332681 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x210000: 'MPC (Akai MPC 2k)' is not mapped
0:00:00.148347208 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0xe0000: 'PVF (Portable Voice Format)' is not mapped
0:00:00.148362504 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x160000: 'SD2 (Sound Designer II)' is not mapped
0:00:00.148389127 4969 0x535b60 WARN default gstsf.c:98:gst_sf_create_audio_template_caps: format 0x190000: 'WVE (Psion Series 3)' is not mapped
0:00:00.206438303 4969 0x535b60 WARN ladspa gstladspa.c:455:plugin_init: no LADSPA plugins found, check LADSPA_PATH
0:00:00.439139784 4967 0x563860 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/nvidia/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:wxt123456@192.168.1.64:554
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
0:00:00.523292721 4967 0x7f9c032720 FIXME default gstutils.c:3766:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sent PLAY request
0:00:00.720733722 4967 0x7f84001c50 FIXME videodecoder gstvideodecoder.c:946:gst_video_decoder_drain_out:<omxh264dec-omxh264dec0> Sub-class should implement drain()
NvMMLiteOpen : Block : BlockType = 261
TVMR: NvMMLiteTVMRDecBlockOpen: 7647: NvMMLiteBlockOpen
NvMMLiteBlockCreate : Block : BlockType = 261
TVMR: cbBeginSequence: 1179: BeginSequence 1920x1088, bVPR = 0
TVMR: LowCorner Frequency = 180000
TVMR: cbBeginSequence: 1529: DecodeBuffers = 5, pnvsi->eCodec = 4, codec = 0
TVMR: cbBeginSequence: 1600: Display Resolution : (1920x1080)
TVMR: cbBeginSequence: 1601: Display Aspect Ratio : (1920x1080)
TVMR: cbBeginSequence: 1669: ColorFormat : 5
TVMR: cbBeginSequence:1683 ColorSpace = NvColorSpace_YCbCr601
TVMR: cbBeginSequence: 1809: SurfaceLayout = 3
TVMR: cbBeginSequence: 1902: NumOfSurfaces = 12, InteraceStream = 0, InterlaceEnabled = 0, bSecure = 0, MVC = 0 Semiplanar = 1, bReinit = 1, BitDepthForSurface = 8 LumaBitDepth = 8, ChromaBitDepth = 8, ChromaFormat = 5
TVMR: cbBeginSequence: 1904: BeginSequence ColorPrimaries = 2, TransferCharacteristics = 2, MatrixCoefficients = 2
Allocating new output: 1920x1088 (x 12), ThumbnailMode = 0
OPENMAX: HandleNewStreamFormat: 3464: Send OMX_EventPortSettingsChanged : nFrameWidth = 1920, nFrameHeight = 1088
0:00:00.770281453 4967 0x7f7c002990 WARN nvvidconv gstnvvconv.c:2377:gst_nvvconv_set_caps:<nvvconv0> Cannot keep DAR
TVMR: FrameRate = 25
TVMR: NVDEC LowCorner Freq = (150000 * 1024)
---> TVMR: Video-conferencing detected !!!!!!!!!
TVMR: FrameRate = 25.059391
TVMR: FrameRate = 25.008440
TVMR: FrameRate = 25.010129
TVMR: FrameRate = 24.985384
TVMR: FrameRate = 25.031352
TVMR: FrameRate = 25.004563
TVMR: FrameRate = 25.009504
-
Buglist:
Bug001 : priv_gst_parse_yyparse: no element "h264parse"
解决001:
sudo apt-get install gstreamer1.0-plugins-bad
nvidia@tegra-ubuntu:~/workspaces_backup$ GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://admin:wxt123456@192.168.1.64:554 ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! video/x-raw, width=1920, height=1280, format=BGRx ! videoconvert ! ximagesink 2>&1 | tee gst-launch-rtspsrc.level3.log
0:00:00.018360190 4367 0x4f5960 ERROR GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "h264parse"
0:00:00.018428764 4367 0x4f5960 ERROR GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [source=@0x506100]
0:00:00.022472750 4367 0x4f5960 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/nvidia/.config:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
0:00:00.023288818 4367 0x4f5960 ERROR GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [sink=@0x51f430]
WARNING: erroneous pipeline: no element "h264parse"
待续。。。