videowriter mpeg-4 vs avi file size
이전 댓글 표시
Im using videowriter to display some medical images which are typically about 10mb per frame
The orignal movie was made in AVI and are about 200mb each
vs.
path = ['C:\Users\**\image sets\Jim\03 - Non Clinical 3D Cases\0\']
y = VideoWriter("newfile2.avi","Uncompressed AVI");
y.FrameRate = 3
open(y)
I found out the person doing the presentation has a MAC and the codec is not working
I am thus trying to change it over to MPEG4
Each time I do this the same dataset for the movie comes out less than 1mb
I am using the quality variable
path = ['C:\Users\**\image sets\3D images\ImageData-Reconstructed slices DICOM\mini1\mini1\0\']
y = VideoWriter("newfile4.mp4", 'MPEG-4');
y.FrameRate = 3
y.Quality=100
any help?
thanks
댓글 수: 2
JM
2024년 9월 30일
이동: Walter Roberson
2024년 9월 30일
Walter Roberson
2024년 9월 30일
The file sizes differ, but what problem are you encountering?
You would expect MPEG4 to be smaller than uncompressed AVI.
답변 (1개)
Arjun
2024년 10월 1일
0 개 추천
I understand that you have generated videos using “videowriter” in MATLAB and you want to understand why the size of videos generated in AVI and MPEG-4 formats so different.
Video formats like AVI are uncompressed formats focussed mainly on the quality aspect of the vide and storage requirements are more for them but video formats like MPEG-4 are more efficient to store and the quality of generated video takes a hit. To enhance the quality of the MPEG-4 video you can set the quality to higher values and if still not satisfied then consider changing the video format.
Hence the behaviour you see is expected and there will be considerable size difference between uncompressed AVI and MPEG-4 format.
I hope the explanation helps!
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!