Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) GPU RTX3090
• DeepStream Version 6.1
• JetPack Version (valid for Jetson only)
• TensorRT Version 8.2.5.1
**• NVIDIA GPU Driver Version (valid for GPU only)**510.47.03
**• Issue Type( questions, new requirements, bugs)**BUGS
• 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)
I want to save images in a x86 system server and get rtsp out,
hence I modify the deepstream_test1_rtsp_out.py
Pull a docker dGPU image from: nvcr.io/nvidia/deepstream:6.1-triton
Base on this image I installed deepstream-python-apps
Edit the deepstream_test1_rtsp_out.py to save the frames:
n_frame = pyds.get_nvds_buf_surface(hash(gst_buffer), frame_meta.batch_id)
frame_number = frame_meta.frame_num
img_folder = "/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1-rtsp-out/frames"
img_path = "{}/stream_{}/frame_{}.jpg".format(img_folder, frame_meta.pad_index, frame_number)
print(img_path)
print("frame_shape = ",n_frame.shape)
print(n_frame)
cv2.imwrite(img_path, n_frame)
Segmentation fault Error
ERROR_LOG:
Creating Pipeline
Creating Source
Creating H264Parser
Creating Decoder
Creating H264 Encoder
Creating H264 rtppay
Playing file /opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264
Adding elements to Pipeline
Linking elements in the Pipeline
*** DeepStream: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***
Starting pipeline
0:00:08.723336403 213 0x3e2ba10 WARN nvinfer gstnvinfer.cpp:643:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1161> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5
0:00:11.190440787 213 0x3e2ba10 INFO nvinfer gstnvinfer.cpp:646:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1900> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.1/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [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:00:11.229110522 213 0x3e2ba10 INFO nvinfer gstnvinfer.cpp:646:gst_nvinfer_logger:<primary-inference> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2003> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.1/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
0:00:11.230478778 213 0x3e2ba10 INFO nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary-inference> [UID 1]: Load new model:dstest1_pgie_config.txt sucessfully
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1-rtsp-out/frames/stream_0/frame_0.jpg
frame_shape = (1080, 1920, 4)
Segmentation fault (core dumped)
Any frame opteration,like print(n_frame), n_frame.copy() ,will cause the segmentation fault…
How to solve this problem? THANKS!
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)