two files with different size

조회 수: 1 (최근 30일)
Majid Al-Sirafi
Majid Al-Sirafi 2017년 2월 12일
댓글: Majid Al-Sirafi 2017년 2월 13일
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

채택된 답변

Walter Roberson
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
Walter Roberson 2017년 2월 13일
I marked a line in the code. Change the line to use 'Uncompressed AVI' instead of 'Motion JPEG AVI'.
Majid Al-Sirafi
Majid Al-Sirafi 2017년 2월 13일
thank you dear Walter Roberson, please keep us in contact. I need your supporting
Majid

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
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?
  댓글 수: 1
Majid Al-Sirafi
Majid Al-Sirafi 2017년 2월 13일
actually, I want to produce file from another. for example, I have file with size 359 MB but after running the code, the size of the output file is 1.64 MB. pleaes, i need your e-mail in order to send the input and output files to you
Majid

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by