Hi,
jetson-containers run $(autotag nano_llm)
python3 -m nano_llm.vision.video
–model Efficient-Large-Model/VILA1.5-3b
–max-images 8
–max-new-tokens 48
–video-input /data/my_video.mp4
–video-output /data/my_output.mp4
–prompt ‘What changes occurred in the video?’
When running the above command on the Jetson AGX Orin, I received the following errors:
[gstreamer] initialized gstreamer, version 1.20.3.0
[gstreamer] gstDecoder – couldn’t find file ‘/data/gun_detection_sample_3.mp4’
[gstreamer] gstDecoder – failed to create decoder for file:///data/gun_detection_sample_3.mp4
Traceback (most recent call last):
File “/usr/lib/python3.10/runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “/usr/lib/python3.10/runpy.py”, line 86, in _run_code
exec(code, run_globals)
File “/opt/NanoLLM/nano_llm/vision/video.py”, line 77, in
video_source = VideoSource(**vars(args), cuda_stream=0)
File “/opt/NanoLLM/nano_llm/plugins/video/video_source.py”, line 67, in init
self.stream = videoSource(video_input, options=options)
Exception: jetson.utils – failed to create videoSource device
Could you please help me resolve this issue?
Hi,
According to this:
[gstreamer] gstDecoder – couldn’t find file ‘/data/gun_detection_sample_3.mp4’
Could you check if the video exists?
Thanks.
Hi,
Could you move the video to another folder that is owned by the $USER account?
To check if a file exists, jetson-utils will execute the “stat” command to the file.
This experiment can help us to verify if this issue is related to the permission or not.
Thanks.
File Location: /home/jetson/gun_detection_sample_3.mp4
File exists.
File Size: 6012915 bytes
Owner UID: 1000
Permissions: 0o100664
File is readable
File is writable
Hi,
Since you run the command inside the container, could you verify if the file exists within the container?
For example:
jetson-containers run $(autotag nano_llm) bash
Then check if /data/gun_detection_sample_3.mp4 is there.
Thanks.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.