what can I replace nHiddenFinalFrames with in new VideoReader?

3 vues (au cours des 30 derniers jours)
Doris
Doris le 20 Août 2012
I have a script I need to run on R2012a which reads a video and edits it. It contains a lot of code with methods from VideoReader like get(video, 'numFrames') and it searches properties like 'fps', 'height', 'nHiddenFinalFrames' and so on.
I get a lot of errors because I think Matlab newer versions do not have such properties, but instead has "NumberOfFrames", "Height" (capital H!), "FrameRate" etc. Now I started correcting those, but can't find any correspondence for the nHiddenFinalFrames property.
What can I replace that with?
The part of the code I'm talking about looks something like this:
video.nrFramesTotal = info.NumberOfFrames;
if info.nHiddenFinalFrames > 0
video.nrFramesTotal = video.nrFramesTotal * (-1);
end

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by