Really appreciated with those commands, which works fine.
Just a few questions:
A: It seems deepstream_test_1.py can’t work with /opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4. Why this sample_1080p_h264.mp4 file failed test1?
B: Real time video uses RTP, so I just simply substitue input with python3 deepstream_test_3.py -i rtp://@:5600. I got segfault, and video-viewer rtp://@:5600 --input-codec=h265 works fine. Any suggestion or idea?
$ python3 deepstream_test_3.py rtp://@:5600
usage: deepstream_test_3 [-h] -i URIs [URIs ...] [-c config_location.txt] [-g {nvinfer,nvinferserver,nvinferserver-grpc}] [--no-display] [--file-loop]
[--disable-probe] [-s]
deepstream_test_3: error: the following arguments are required: -i/--input
daniel@daniel-nvidia:/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test3$ python3 deepstream_test_3.py -i rtp://@:5600
{'input': ['rtp://@:5600'], 'configfile': None, 'pgie': None, 'no_display': False, 'file_loop': False, 'disable_probe': False, 'silent': False}
Creating Pipeline
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-00
Creating Pgie
Creating tiler
Creating nvvidconv
Creating nvosd
Creating nv3dsink
Adding elements to Pipeline
Linking elements in the Pipeline
Now playing...
0 : rtp://@:5600
Starting pipeline
WARNING: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.3/sources/deepstream_python_apps/apps/deepstream-test3/../../../../samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine open error
0:00:03.104594983 8938 0xffff240022f0 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1976> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.3/sources/deepstream_python_apps/apps/deepstream-test3/../../../../samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed
0:00:03.316993784 8938 0xffff240022f0 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2081> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.3/sources/deepstream_python_apps/apps/deepstream-test3/../../../../samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine failed, try rebuild
0:00:03.317088090 8938 0xffff240022f0 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2002> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-6.3/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine opened error
0:01:00.968961302 8938 0xffff240022f0 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2029> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-6.3/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
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:01.232700445 8938 0xffff240022f0 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:dstest3_pgie_config.txt sucessfully
Decodebin child added: source
Segmentation fault (core dumped)
Please check README and source code, for test1, pipeline is filesrc --> h264parser ......, which means mp4 format cannot be parsed.
MP4 is a container that can be used to encapsulate audio and video. It requires qtmux to parse the video stream.
When using gstreamer to play rtp multicast, you need to manually specify capabilities. The uridecodebin element cannot automatically obtain this information.
I don’t know what tool video-viewer is, but from the parameters you specified, you also need to specify capabilities.
You need to modify the pipeline of test3 as follows
There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks