• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 6.0.1
**• JetPack Version (valid for Jetson only)**4.6.
• TensorRT Version
• Issue Type( questions, new requirements, bugs) Failed to create ‘sink_sub_bin_encoder1’
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
Running the sample app :
sudo deepstream-app -c source2_1080p_dec_infer-resnet_demux_int8.txt
Hello, i have installed jetpack 4.6.4 on a jetson nano using the sdk manager, then installed deepstream 6.0.1, i’m having issues with the encoder plugin :
sudo deepstream-app -c source2_1080p_dec_infer-resnet_demux_int8.txt
** ERROR: <create_encode_file_bin:372>: Failed to create 'sink_sub_bin_encoder1'
** ERROR: <create_encode_file_bin:467>: create_encode_file_bin failed
** ERROR: <create_sink_bin:781>: create_sink_bin failed
** ERROR: <create_processing_instance:815>: create_processing_instance failed
** ERROR: <create_pipeline:1326>: create_pipeline failed
** ERROR: <main:688>: Failed to create pipeline
Quitting
App run failed
And when i try to run :
/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app$ gst-launch-1.0 videotestsrc ! nvvidconv ! nvv4l2h264enc ! filesink location=out1.h264
WARNING: erroneous pipeline: no element "nvv4l2h264enc"
Although vv4l2h264enc
is a component of the library libgstnvvideo4linux2.so
and it exists :
/usr/lib/aarch64-linux-gnu/gstreamer-1.0$ ls | grep ibgstnvvideo4linux2.so
libgstnvvideo4linux2.so
I also tried to clear the gstreamer cache and i’m still facing the same error, any help will be appreciated !
yuweiw
June 14, 2024, 2:51am
3
Could you try to set the codec=2
and see if it works?
yuweiw:
codec
I have changed the codec and i’m getting the same error:
deepstream-app -c source2_1080p_dec_infer-resnet_demux_int8.txt
** ERROR: <create_encode_file_bin:372>: Failed to create 'sink_sub_bin_encoder1'
** ERROR: <create_encode_file_bin:467>: create_encode_file_bin failed
** ERROR: <create_sink_bin:781>: create_sink_bin failed
** ERROR: <create_processing_instance:815>: create_processing_instance failed
** ERROR: <create_pipeline:1326>: create_pipeline failed
** ERROR: <main:688>: Failed to create pipeline
Quitting
App run failed
source2_1080p_dec_infer-resnet_demux_int8.txt (4.4 KB)
Even by trying to change the encoder to software encoding, i get a different error:
deepstream-app -c source2_1080p_dec_infer-resnet_demux_int8.txt
serialize cuda engine to file: /opt/nvidia/deepstream/deepstream-6.0/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_fp16.engine successfully
INFO: [Implicit Engine Info]: layers num: 3
0 INPUT kFLOAT input_1 3x368x640
1 OUTPUT kFLOAT conv2d_bbox 16x23x40
2 OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40
0:01:26.497668151 24046 0xc4fe490 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt sucessfully
Runtime commands:
h: Print this help
q: Quit
p: Pause
r: Resume
**PERF: FPS 0 (Avg) FPS 1 (Avg)
**PERF: 0.00 (0.00) 0.00 (0.00)
** INFO: <bus_callback:194>: Pipeline ready
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.379: gst_caps_is_empty: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_is_empty: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_truncate: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_truncate: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_fixate: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_fixate: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_get_structure: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_caps_get_structure: assertion 'GST_IS_CAPS (caps)' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_structure_get_string: assertion 'structure != NULL' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_structure_get_string: assertion 'structure != NULL' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_mini_object_unref: assertion 'mini_object != NULL' failed
(deepstream-app:24046): GStreamer-CRITICAL **: 09:56:16.380: gst_mini_object_unref: assertion 'mini_object != NULL' failed
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
Allocating new output: 1920x1088 (x 9), ThumbnailMode = 0
OPENMAX: HandleNewStreamFormat: 3605: Send OMX_EventPortSettingsChanged: nFrameWidth = 1920, nFrameHeight = 1080
NvMMLiteBlockCreate : Block : BlockType = 261
Allocating new output: 1920x1088 (x 9), ThumbnailMode = 0
OPENMAX: HandleNewStreamFormat: 3605: Send OMX_EventPortSettingsChanged: nFrameWidth = 1920, nFrameHeight = 1080
** INFO: <bus_callback:180>: Pipeline running
ERROR from src_bin_muxer: Input buffer number of surfaces (0) must be equal to mux->num_surfaces_per_frame (1)
Set nvstreammux property num-surfaces-per-frame appropriately
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmultistream/gstnvstreammux.c(495): gst_nvstreammux_chain (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstNvStreamMux:src_bin_muxer
ERROR from omxh264dec-omxh264dec1: Internal data stream error.
Debug info: /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideodec.c(3005): gst_omx_video_dec_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin1/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin1/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec1:
stream stopped, reason error
ERROR from queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin1/GstQueue:queue:
streaming stopped, reason error (-5)
ERROR from qtdemux0: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin1/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin1/GstQTDemux:qtdemux0:
streaming stopped, reason error (-5)
Quitting
ERROR from src_bin_muxer: Input buffer number of surfaces (0) must be equal to mux->num_surfaces_per_frame (1)
Set nvstreammux property num-surfaces-per-frame appropriately
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvmultistream/gstnvstreammux.c(495): gst_nvstreammux_chain (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstNvStreamMux:src_bin_muxer
ERROR from omxh264dec-omxh264dec0: Internal data stream error.
Debug info: /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-omx/omx/gstomxvideodec.c(3005): gst_omx_video_dec_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:
stream stopped, reason error
ERROR from queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstQueue:queue:
streaming stopped, reason error (-5)
ERROR from qtdemux1: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstQTDemux:qtdemux1:
streaming stopped, reason error (-5)
App run failed
yuweiw
June 14, 2024, 9:50am
5
If you want to use software encoding, you need to install the x264enc plugin.
Could you run the command gst-inspect-1.0 nvv4l2h264enc
?
I have managed to fix the issue by reinstalling the NVIDIA BSP packages :
sudo apt install --reinstall nvidia-l4t-gstreamer
sudo apt install --reinstall nvidia-l4t-multimedia
sudo apt install --reinstall nvidia-l4t-core
system
Closed
June 28, 2024, 12:11pm
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.