フィルターのクリア

How to extract frames from a vedio file in avi format?

2 ビュー (過去 30 日間)
krishna Chauhan
krishna Chauhan 2022 年 7 月 20 日
コメント済み: krishna Chauhan 2022 年 7 月 20 日
I tried the code below in both mp4 and avi files. The obj.NumFrames file is blank. There is not error messgae the object is created but the parameters are 0.
obj = VideoReader('k.avi');
vid = read(obj);
Can any one guide here.
Thanks

採用された回答

vishweshwar samba
vishweshwar samba 2022 年 7 月 20 日
Try this
frameNo = 10;
videoReader = VideoReader('k.avi');
for i = 1:frameNo
frame = readFrame(videoReader); % read the next video frame
end
figure;
imshow(frame);
title('Video Frame 10');
  1 件のコメント
krishna Chauhan
krishna Chauhan 2022 年 7 月 20 日
I dont know what happend previously :
It is perfectly working now, the code which I post.
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by