Create a video from frames after compression
古いコメントを表示
i'm doing video compression. Firstly i convert the video to frames and compress each frame individually and store the compressed file in a folder.
Now i want to create a video from the compressed file. i did so using
writerObj = VideoWriter('out.avi');
writerObj.FrameRate = reader.FrameRate;
open(writerObj);
for i = 1 : 10
thisimage = imread(['comp_out/' num2str(i) '.jpg']);
writeVideo(writerObj, thisimage);
end
close(writerObj);
but the fileSize of first 10 frames before compression was 2.19MB and after compression is 122KB but when i create a video the size of video before compression is 191KB after compression is 186KB. The videoSize of the full video with 141 frames is just 204KB.
How to make the compression effective when creating a video also, so that the fileSize difference is noticeable as in frames.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Video Formats and Interfaces についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!