Create a video from frames after compression
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Video Formats and Interfaces finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!