NVIDIA DALI : How to read the .mp4 video with readers.video , Getting issue while reading the videos

import nvidia.dali.fn as fn

batch_size=2
sequence_length=8
video_directory=“test.mp4”
shuffle=True
n_iter=6

@pipeline_def
def video_pipe(file_root):
video, labels = fn.readers.video(device=“gpu”, file_root=file_root, sequence_length=sequence_length,
random_shuffle=True, initial_fill=initial_prefetch_size)
return video, labels

pipe = video_pipe(batch_size=batch_size, num_threads=2, device_id=0, file_root=video_directory, seed=12345)
pipe.build()
for i in range(n_iter):
sequences_out, labels = pipe.run()
sequences_out = sequences_out.as_cpu().as_array()
labels = labels.as_cpu().as_array()
print(sequences_out.shape)
print(labels.shape)

Getting the following issue:

RuntimeError: Critical error when building pipeline:
Error when constructing operator: readers__Video encountered:
[/opt/dali/dali/operators/reader/loader/video_loader.cc:117] Assert on “dir != nullptr” failed: Directory test.mp4 could not be opened

Hi , UFF and Caffe Parser have been deprecated from TensorRT 7 onwards, hence request you to try ONNX parser.
Please check the below link for the same.

Thanks!