two files with different size
1 次查看(过去 30 天)
显示 更早的评论
hi every one the attached matlab code is used for create a new file from input file. unfrtunatelly, the size of the
output file is different from the input. so, how to make them with the same size
regard,
Majid
0 个评论
采纳的回答
Walter Roberson
2017-2-13
Enhanced code is attached. I upgraded it to use VideoReader and VideoWriter as the routines you used are no longer available in MATLAB.
This turns on Motion JPEG AVI compression. If you want uncompressed changed to 'Uncompressed AVI' in the line marked.
Uncompressed AVI is expected to be larger than the original AVI as the original is likely compressed. Motion JPEG might be smaller than the original AVI: with one or more channels zeroed out, there is less change in the data and that means it can be compressed more efficiently.
Check out the code... I made some improvements.
3 个评论
Walter Roberson
2017-2-13
I marked a line in the code. Change the line to use 'Uncompressed AVI' instead of 'Motion JPEG AVI'.
更多回答(1 个)
Jan
2017-2-12
If the original file is compressed, it is the expected result, that saving it as uncompressed AVI file changes the file size. Could you provide more details about what you get and what you want?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!