finding the compression ratio

3 次查看(过去 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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by