Video Reader sequence start and end
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
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.
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.
Yes, indeed this is one of the functionalities that miss the parity compared to the old reader.