finding the compression ratio

1 Ansicht (letzte 30 Tage)
nkumar
nkumar am 21 Mär. 2013
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 Kommentar
Jan
Jan am 21 Mär. 2013
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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by