• Hardware Platform (Corporation TU106GLM [Quadro RTX 3000 Mobile / Max-Q] )
• DeepStream Version 6.2.0
• TensorRT Version 8.5
• NVIDIA GPU Driver Version 525.60.13
• Issue Type (questions)
Hello, I’m trying to encode a screen capture and decode it immediately with the following pipeline:
GST_DEBUG=3 gst-launch-1.0 -v ximagesrc endy=600 endx=1000 use-damage=0 ! nvvideoconvert ! "video/x-raw(memory:NVMM), format=I420, framerate=30/1" ! nvv4l2h264enc name=video iframeinterval=30 control-rate=1 bitrate=1000000 preset-id=1 tuning-info-id=3 ! h264parse ! nvv4l2decoder low-latency-mode=true ! nvvideoconvert ! autovideosink
but it is hanging and the log is:
Setting pipeline to PAUSED ...
0:00:00.054413374 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054429160 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MJPG
0:00:00.054455117 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054460993 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MJPG
0:00:00.054494183 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054500667 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat AV10
0:00:00.054504973 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054510842 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat AV10
0:00:00.054521057 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054526980 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat DVX5
0:00:00.054532293 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054537833 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat DVX5
0:00:00.054547145 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054552889 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat DVX4
0:00:00.054557616 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054562864 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat DVX4
0:00:00.054571978 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054577717 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MPG4
0:00:00.054582504 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054587865 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MPG4
0:00:00.054597990 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054603667 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MPG2
0:00:00.054608459 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054630589 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MPG2
0:00:00.054640986 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054646380 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H265
0:00:00.054650898 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054656131 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H265
0:00:00.054664497 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054669787 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat VP90
0:00:00.054674238 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054679341 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat VP90
0:00:00.054686657 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054691791 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat VP80
0:00:00.054696194 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054701108 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat VP80
0:00:00.054710037 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054715526 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H264
0:00:00.054720040 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:00.054725398 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H264
0:00:00.055081372 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:00.055089963 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat NM12
0:00:00.055094928 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:00.055100362 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat NM12
0:00:00.055107631 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x563764603bf0 Failed to determine interlace mode
0:00:00.055202198 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<video:sink> Unable to try format: Unknown error -1
0:00:00.055211077 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<video:sink> Could not probe minimum capture size for pixelformat YM12
0:00:00.055216041 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<video:sink> Unable to try format: Unknown error -1
0:00:00.055221286 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<video:sink> Could not probe maximum capture size for pixelformat YM12
0:00:00.055227499 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x5637645f5c00 Failed to determine interlace mode
0:00:00.055237642 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<video:sink> Unable to try format: Unknown error -1
0:00:00.055243097 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<video:sink> Could not probe minimum capture size for pixelformat NM12
0:00:00.055247892 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<video:sink> Unable to try format: Unknown error -1
0:00:00.055252950 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<video:sink> Could not probe maximum capture size for pixelformat NM12
0:00:00.055258271 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2395:gst_v4l2_object_add_interlace_mode:0x5637645f5c00 Failed to determine interlace mode
0:00:00.055292931 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<video:src> Unable to try format: Unknown error -1
0:00:00.055298726 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2942:gst_v4l2_object_probe_caps_for_format:<video:src> Could not probe minimum capture size for pixelformat H264
0:00:00.055303401 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:3057:gst_v4l2_object_get_nearest_size:<video:src> Unable to try format: Unknown error -1
0:00:00.055308603 23770 0x563764634c00 WARN v4l2 gstv4l2object.c:2948:gst_v4l2_object_probe_caps_for_format:<video:src> Could not probe maximum capture size for pixelformat H264
Pipeline is live and does not need PREROLL ...
0:00:00.055724847 23770 0x563764635300 FIXME default gstutils.c:3980:gst_pad_create_stream_id_internal:<ximagesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstXImageSrc:ximagesrc0.GstPad:src: caps = video/x-raw, format=(string)BGRx, width=(int)1001, height=(int)601, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1001, height=(int)601, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)I420, block-linear=(boolean)false
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)1001, height=(int)601, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)I420, block-linear=(boolean)false
/GstPipeline:pipeline0/nvv4l2h264enc:video.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1001, height=(int)601, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1001, height=(int)601, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, parsed=(boolean)true
/GstPipeline:pipeline0/nvv4l2decoder:nvv4l2decoder0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1001, height=(int)601, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, parsed=(boolean)true
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)NULL, level=(string)NULL, width=(int)1001, height=(int)601, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
Redistribute latency...
0:00:00.147488773 23770 0x563764635300 WARN v4l2bufferpool gstv4l2bufferpool.c:1082:gst_v4l2_buffer_pool_start:<video:pool:src> Uncertain or not enough buffers, enabling copy threshold
/GstPipeline:pipeline0/nvv4l2h264enc:video.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1001, height=(int)601, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)I420, block-linear=(boolean)false
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)1001, height=(int)601, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1, format=(string)I420, block-linear=(boolean)false
/GstPipeline:pipeline0/Gstnvvideoconvert:nvvideoconvert0.GstPad:sink: caps = video/x-raw, format=(string)BGRx, width=(int)1001, height=(int)601, framerate=(fraction)30/1, pixel-aspect-ratio=(fraction)1/1
0:00:00.172259643 23770 0x563764635580 WARN v4l2bufferpool gstv4l2bufferpool.c:1533:gst_v4l2_buffer_pool_dqbuf:<video:pool:src> Driver should never set v4l2_buffer.field to ANY
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, profile=(string)constrained-baseline, level=(string)3.1, width=(int)1001, height=(int)601, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
The pipeline works when I use avdec_h264 instead of nvv4l2decoder, so is it the problem of nvv4l2decoder of I just use it in a wrong way?