DALI icon indicating copy to clipboard operation
DALI copied to clipboard

Video Reader sequence start and end

Open Pedrexus opened this issue 2 years ago • 3 comments

Describe the question.

Hello all,

The video reader has a sequence_length and stride parameters, but is there any way to identify which part of the video I am getting in a batch? It happens that I have long videos with one label for each frame, and using the get_property functions gives me repeated filepaths per batch, but no way to identify each frame.

Is there a way to retrieve this kind of info with DALI's video reader?

I found this issue using external_source, but it doesn't seem to have a solution.

Check for duplicates

  • [X] I have searched the open bugs/issues and have found no duplicates for this bug report

Pedrexus avatar Nov 27 '23 04:11 Pedrexus

Hi @Pedrexus,

Thank you for reaching out. Please check the enable_frame_num parameter so you get the frame number of the first frame in the returned sequence. Then you can write custom code to map the number to the label.

JanuszL avatar Nov 27 '23 07:11 JanuszL

Hello @JanuszL,

thank you for the help. I was trying to use the experimental video reader, which does not seem to support it.

I was able to get it working with the regular reader.

Pedrexus avatar Nov 28 '23 11:11 Pedrexus

Yes, indeed this is one of the functionalities that miss the parity compared to the old reader.

JanuszL avatar Nov 28 '23 11:11 JanuszL