ERROR from element h264-parser

I am testing DeepStream Human Pose Estimation.

./deepstream-pose-estimation-app /opt/nvidia/deepstream/deepstream-5.0/samples/streams/S21604.mp4 out.mp4

I have error from h264 parser.
The error is

ERROR from element h264-parser: Failed to parse stream
Error details: gstbaseparse.c(2954): gst_base_parse_check_sync (): /GstPipeline:deepstream-tensorrt-openpose-pipeline/GstH264Parse:h264-parser

When I test deepstream-test1, I have error as

./deepstream-test1-app /opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4

ERROR from element h264-parser: Internal data stream error.
Error details: gstbaseparse.c(3611): gst_base_parse_loop (): /GstPipeline:dstest1-pipeline/GstH264Parse:h264-parser:

Please read the code of deepstream_pose_estimation/deepstream_pose_estimation_app.cpp at master · NVIDIA-AI-IOT/deepstream_pose_estimation (, the deepstream-pose-estimation-app only supports H264 raw video stream.

There is README file in /opt/nvidia/deepstream/deepstream-5.0/sources/apps/sample-apps/deepstream-test1/, it has mentioned the command line should be " $ ./deepstream-test1-app <h264_elementary_stream>", it only supports raw H264 video stream too.

Please read the README file for every deepstream sample app.

Is it possible to convert mp4 to raw h264 in deepstream ? Do I need to use ffmpeg for conversion?
If I use ip camera, what should do?

DeepStream is a SDK. Some deepstream apps can parse mp4 to h264 raw data but some are not, it depends on the implementation in application but not deepstream.

All sample apps are just samples, you can develop the function you want based on the sample or just refer to the sample.

deepstream-app sample can support mp4 sources and rtsp sources. You can refer to this sample.

BTW, it is a must to have basic GStreamer basic knowledge and development skills before you start with deepstream.

Deepstream-app is hard to understand. Which example can accept mp4 and convert h264 raw, deepstream-test3?

Yes. deepstream-test3 can handle mp4 video sources.