Info

This question is closed. Reopen it to edit or answer.

Video file generation - compression

1 view (last 30 days)
Bezglupog Spama
Bezglupog Spama on 14 Jun 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello,
I am using the VideoWriter function to create video files from a set of jpg images. The code works and I can make a video of interest. However, I do not undestand the details of the video quality, and I would like to gain a better control over it. My goal is to generate a video wich would have the exact jpg files for its frames.
I was using a few profiles of the VideoWriter ('Archival', 'Uncompressed AVI' etc), but none of them was giving me the expected video size.
Let's say each of my images have 10 MB. So each frame of the generated video should ideally have 10 MB. 'Uncompressed AVI' would generate 6 times larger video file than would I would expect. In this case, each frame would have 60 MB. 'Archival' was giving 15 MB for each frame.
Could anyone clarify why would the generated frames have so much more data than the original jpg files?
Also, what would you suggest in using as settings for the VideoWriter in order to get as authentic as possilbe video file from the given jpg images? (I would expect that this authentic solution should have the same size as the total size of the jpg files used).
Thank you very much

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!