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!