.MP4 or .H264 is not supporting in deepstream nvanalytics module

Hi, I am suing Deepstream 5.1. I am trying to run deepstream_nvdsanalytics.py for a video file which is in .MP4 format but it showed error. Then I converted from >MP4 to .H264 format and again run it. same error I got. below is the error.
**Error: gst-resource-error-quark: Invalid URI “dir.h264”. (3): gsturidecodebin.c(1384): gen_source_element (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin
Exiting app
When I tried to run the same .py file for a rtsp it was working fine.
P.S- I have run the same .py file for .MP4 format may be 5-6 months ago with no issues. But now I facing the above error. Could you please help me here.

Hi @shaw.hari. Welcome to the forums. This forum is for NVIDIA Omniverse questions.

@ [mati-nvidia] Thanks for the reply. I got the solution for this.

Hi, could you post your solution here? I got the same error.

@ayoubu The error I was getting because I was not using the full path of the video file though it was present in the same folder. Now I tried with full path of the video file and it worked. like this
python3 deepstream_nvdsanalytics.py file:///home/ubuntu/video1.mp4

@shaw.hari Thanks a lot. It’s right now.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.