While RTSP streaming i am getting black frames in the the receiver ( gstream client OR vlc)

zvikas1971 zvikas at video-inform.com
Mon Sep 14 20:32:21 UTC 2020


Hello Guys,

I am a beginner for the Gstreamer.

I am trying to run RTSP stream sender from idsueye camera connected to nano
jetson .

I have *succeeded *in streaming from camera to display : "gst-launch-1.0 -v
idsueyesrc  config-file
="/home/nvidia/gst-plugins-vision/UI155xLE-C_conf.ini" ! videoconvert !
xvimagesink" 

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstIdsueyeSrc:idsueyesrc0.GstPad:src: caps =
video/x-raw, format=(string)BGRA, width=(int)1600, height=(int)1200,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
colorimetry=(string)sRGB, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
video/x-raw, width=(int)1600, height=(int)1200,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
framerate=(fraction)0/1, format=(string)YUY2
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, width=(int)1600, height=(int)1200,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
framerate=(fraction)0/1, format=(string)YUY2
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
video/x-raw, format=(string)BGRA, width=(int)1600, height=(int)1200,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
colorimetry=(string)sRGB, framerate=(fraction)0/1


*But when i am trying to RTSP it to gstreamer client or VLC with the
following sender/receiver i get black frames in the receiver.*

*Sender :

GST_DEBUG=*:3 ./test-launch "(  idsueyesrc  config-file
="/home/nvidia/gst-plugins-vision/UI155xLE-C_conf.ini" !  videoconvert !
nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96 )" 

Receiver :

gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! queue !
decodebin ! nvoverlaysink*

with logs :

GST_DEBUG=*:3 ./test-launch "(  idsueyesrc  config-file
="/home/nvidia/gst-plugins-vision/UI155xLE-C_conf.ini" !  videoconvert !
nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96 )"
stream ready at rtsp://127.0.0.1:8554/test
0:00:00.471654279 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:1013:find_media: client 0x55ac56f150: no factory for path
/ds-test
0:00:00.471912880 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:2910:handle_describe_request: client 0x55ac56f150: no media
0:00:10.489135062 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:1013:find_media: client 0x55ac56f260: no factory for path
/ds-test
0:00:10.489272149 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:2910:handle_describe_request: client 0x55ac56f260: no media
Opening in BLOCKING MODE 
0:00:19.469877352 15183   0x7fa803b000 WARN                    v4l2
gstv4l2object.c:2372:gst_v4l2_object_add_interlace_mode:0x7fa80a5c40 Failed
to determine interlace mode
0:00:19.469961208 15183   0x7fa803b000 WARN                    v4l2
gstv4l2object.c:2372:gst_v4l2_object_add_interlace_mode:0x7fa80a5c40 Failed
to determine interlace mode
0:00:19.470003918 15183   0x7fa803b000 WARN                    v4l2
gstv4l2object.c:2372:gst_v4l2_object_add_interlace_mode:0x7fa80a5c40 Failed
to determine interlace mode
0:00:19.470129911 15183   0x7fa803b000 WARN                    v4l2
gstv4l2object.c:4435:gst_v4l2_object_probe_caps:<nvv4l2h264enc0:src> Failed
to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:20.186793024 15183   0x7fa0005a80 FIXME                default
gstutils.c:3981:gst_pad_create_stream_id_internal:<idsueyesrc0:src> Creating
random stream-id, consider implementing a deterministic way of creating a
stream-id
NvMMLiteOpen : Block : BlockType = 4 
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
0:00:20.202617485 15183   0x7fa0005a80 WARN                    v4l2
gstv4l2object.c:4004:gst_v4l2_object_set_format_full:<nvv4l2h264enc0:sink>
Reuse caps framerate 0/1 - fix v4l2 output driver
0:00:20.204418787 15183   0x7fa0005a80 WARN          v4l2bufferpool
gstv4l2bufferpool.c:1057:gst_v4l2_buffer_pool_start:<nvv4l2h264enc0:pool:src>
Uncertain or not enough buffers, enabling copy threshold
H264: Profile = 66, Level = 0 
0:00:20.453916255 15183   0x7f7c002a30 WARN          v4l2bufferpool
gstv4l2bufferpool.c:1503:gst_v4l2_buffer_pool_dqbuf:<nvv4l2h264enc0:pool:src>
Driver should never set v4l2_buffer.field to ANY
0:00:20.462224877 15183   0x55ac3c1d90 FIXME              rtspmedia
rtsp-media.c:3841:gst_rtsp_media_suspend: suspend for dynamic pipelines
needs fixing
0:00:20.464088055 15183   0x55ac3c1d90 FIXME              rtspmedia
rtsp-media.c:3841:gst_rtsp_media_suspend: suspend for dynamic pipelines
needs fixing
0:00:20.464137327 15183   0x55ac3c1d90 WARN               rtspmedia
rtsp-media.c:3867:gst_rtsp_media_suspend: media 0x7fa80c61d0 was not
prepared
0:00:20.478509455 15183   0x55ac3c1d90 FIXME             rtspclient
rtsp-client.c:1657:handle_play_request:<GstRTSPClient at 0x55ac56f370> Add
support for seek style (null)
0:00:20.483651737 15183   0x55ac3c1d90 FIXME              rtspmedia
rtsp-media.c:2437:gst_rtsp_media_seek_full:<GstRTSPMedia at 0x7fa80c61d0>
Handle going back to 0 for none live not seekable streams.
0:00:20.507388663 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:1013:find_media: client 0x55ac56f480: no factory for path
/ds-test
0:00:20.507571012 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:2910:handle_describe_request: client 0x55ac56f480: no media
0:00:30.524846393 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:1013:find_media: client 0x55ac56f590: no factory for path
/ds-test
0:00:30.525003325 15183   0x55ac3c1d90 ERROR             rtspclient
rtsp-client.c:2910:handle_describe_request: client 0x55ac56f590: no media


*Trying to RTSP videotestsrc works perfect for me.*

*Trying to change the encoder to x264enc  : 

Sender : 
./test-launch "( idsueyesrc ! videoconvert  ! x264enc ! rtph264pay name=pay0
pt=96 )" 

Receiver:
gst-launch-1.0 rtspsrc location=rtsp://nvidia:nvidia@127.0.0.1:8554/test !
rtph264depay ! h264parse ! decodebin  ! videoconvert ! xvimagesink *

*I get : 

x264 [error]: baseline profile doesn't support 4:4:4 *

What can be the problem , i am trying to figure it out for a couple of days
without success.

10x in advance,

Zvika




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list