Matlab ignores my videoReader command
古いコメントを表示
I am trying to read a video from 4 seconds in. I use this:
v = VideoReader('IMG_3557.MOV','CurrentTime',4); % read video file
But when I do ths:
numbframes = v.NumFrames;
I get the same number of frames as the entire video from the beginning. I'm not sure what I'm doing wrong. Thanks
3 件のコメント
Geoff Hayes
2021 年 5 月 18 日
Chidiebere - since the number of frames are the same, does that mean the duration is the same too? For example, what is
duration = v.Duration;
for the full video and the full video less the four seconds?
Chidiebere Brendan Obiechefu
2021 年 5 月 18 日
編集済み: Chidiebere Brendan Obiechefu
2021 年 5 月 18 日
Steven Lord
2021 年 5 月 18 日
Just because you're skipping over the frames doesn't mean the file has fewer frames.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!