finding the compression ratio

2 ビュー (過去 30 日間)
nkumar
nkumar 2013 年 3 月 21 日
I have a code below
writerObj = VideoWriter('ne1.mpg');
open(writerObj)
for k = 1:nFrames
image = ((imread(fullfile(path,files(k).name))));
writeVideo(writerObj,image);
end
close(writerObj);
xyloObj = VideoReader('ne1.avi');
i have some frames when i use mpg format i get error as file not found in matlab path,if i use avi it works fine,plz help
another thing how to find the compression ratio for video
original is ne.avi and compressed is ne1.avi
  1 件のコメント
Jan
Jan 2013 年 3 月 21 日
The questions are not clear. Please do not describe the error like "as file not found", but copy the error message and explain in which line it occurs. What exactly is the "compression ratio"? Would the relation between the file sizes matchs your needs already?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDenoising and Compression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by