Basic task to get avi file processed with sink to file fails on jetson

• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version installed with sdkmanager so 5+
• JetPack Version (valid for Jetson only) 4 5 1

:/opt/nvidia/deepstream/deepstream-5.0/sources/deepstream_python_apps/apps/deepstream-ssd-parser$ python3 deepstream_ssd_parser.py /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4
Creating Pipeline 
 
Creating Source
Creating H264Parser
Creating Decoder
Creating NvStreamMux
Creating Nvinferserver
2021-03-26 08:24:46.734910: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.2
Creating Nvvidconv
Creating OSD (nvosd)
Creating Queue
Creating Converter 2 (nvvidconv2)
Creating capsfilter
Creating Encoder
Creating Code Parser
Creating Container
Creating Sink
Playing file /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4 
Adding elements to Pipeline 

Linking elements in the Pipeline 

Starting pipeline 

Opening in BLOCKING MODE 
I0326 12:24:47.006803 26285 server.cc:120] Initializing Triton Inference Server
I0326 12:24:47.013040 26285 server_status.cc:55] New status tracking for model 'ssd_inception_v2_coco_2018_01_28'
I0326 12:24:47.013175 26285 model_repository_manager.cc:680] loading: ssd_inception_v2_coco_2018_01_28:1
I0326 12:24:47.013740 26285 base_backend.cc:176] Creating instance ssd_inception_v2_coco_2018_01_28_0_0_gpu0 on GPU 0 (7.2) using model.graphdef
2021-03-26 08:24:47.059738: W tensorflow/core/platform/profile_utils/cpu_utils.cc:98] Failed to find bogomips in /proc/cpuinfo; cannot determine CPU frequency
2021-03-26 08:24:47.060703: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x38f15a00 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2021-03-26 08:24:47.060777: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2021-03-26 08:24:47.060990: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1
2021-03-26 08:24:47.061149: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:950] ARM64 does not support NUMA - returning NUMA node zero
2021-03-26 08:24:47.061305: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: 
name: Xavier major: 7 minor: 2 memoryClockRate(GHz): 1.377
pciBusID: 0000:00:00.0
2021-03-26 08:24:47.061374: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.2
2021-03-26 08:24:47.061510: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
2021-03-26 08:24:47.064035: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcufft.so.10
2021-03-26 08:24:47.064686: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcurand.so.10
2021-03-26 08:24:47.067568: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusolver.so.10
2021-03-26 08:24:47.069854: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcusparse.so.10
2021-03-26 08:24:47.069981: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.8
2021-03-26 08:24:47.070119: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:950] ARM64 does not support NUMA - returning NUMA node zero
2021-03-26 08:24:47.070299: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:950] ARM64 does not support NUMA - returning NUMA node zero
2021-03-26 08:24:47.070356: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0
2021-03-26 08:24:48.976955: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-03-26 08:24:48.977041: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186]      0 
2021-03-26 08:24:48.977068: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0:   N 
2021-03-26 08:24:48.977230: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:950] ARM64 does not support NUMA - returning NUMA node zero
2021-03-26 08:24:48.977434: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:950] ARM64 does not support NUMA - returning NUMA node zero
2021-03-26 08:24:48.977566: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:950] ARM64 does not support NUMA - returning NUMA node zero
2021-03-26 08:24:48.977678: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6329 MB memory) -> physical GPU (device: 0, name: Xavier, pci bus id: 0000:00:00.0, compute capability: 7.2)
2021-03-26 08:24:48.981699: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7ecd4d3f10 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2021-03-26 08:24:48.981769: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Xavier, Compute Capability 7.2
I0326 12:24:49.426215 26285 model_repository_manager.cc:837] successfully loaded 'ssd_inception_v2_coco_2018_01_28' version 1
INFO: TrtISBackend id:5 initialized model: ssd_inception_v2_coco_2018_01_28
2021-03-26 08:24:57.918151: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudnn.so.8
2021-03-26 08:25:00.640879: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcublas.so.10
Error: gst-stream-error-quark: Internal data stream error. (1): gstbaseparse.c(3611): gst_base_parse_loop (): /GstPipeline:pipeline0/GstH264Parse:h264-parser:
streaming stopped, reason not-negotiated (-4)
I0326 12:25:06.400027 26285 model_repository_manager.cc:708] unloading: ssd_inception_v2_coco_2018_01_28:1
I0326 12:25:06.510468 26285 model_repository_manager.cc:816] successfully unloaded 'ssd_inception_v2_coco_2018_01_28' version 1
I0326 12:25:06.512438 26285 server.cc:179] Waiting for in-flight inferences to complete.
I0326 12:25:06.512544 26285 server.cc:194] Timeout 30: Found 0 live models and 0 in-flight requests

The REAME file for deepstream-ssd-parser has told you the correct command line

To run the test app:
$ python3 deepstream_ssd_parser.py <h264_elementary_stream>

mp4 file is not h264 element stream.

@Fiona.Chen
Thank you for following up!
While certain steps in the instruction above seem generalized thus lacking detail, I tried to follow the steps.
However is there a file that is suplied wth the default deepstream sdkmanager installation that can be played with the script?
As you can see I tried processing the supplied with the Deepstream file named

sample_1080p_h264.mp4

the file is at the location deepstream-5.0/samples/streams/sample_1080p_h264.mp4
are you trying to say that the file is not h264 file despite been labeled so? could you provide as attachment the file that could be pprocessed with the script if so? Otherwise do you imply that the python script can not play h264 video files at all?
if so how do you interpret the phrase"h264 elementary stream" if you decline that a h264 video file couldn’t be such a stream than what is it?

H264 elementary stream mean raw H264 stream without any container(please consult any multimedia engineer or resources what raw h264 data is).
You can use deepstream-5.0/samples/streams/sample_720p.h264

@Fiona.Chen
Thank you. It seems that elementary h264 meant raw 264 that wasn’t obvious.
Thank you for the clarification. It seem worked.