Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

different size of files

조회 수: 1(최근 30일)
Majid Al-Sirafi
Majid Al-Sirafi 2017년 2월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi every one
I want to make copy for AVI file by using the following code
close all
clear all
[filename pathname] = uigetfile('*.avi','File Selector');
vid = strcat(pathname, filename);
obj = mmreader(vid);
vid = read(obj);
frames = obj.NumberOfFrames;
new10=avifile('outputvideo\one_colour_video.avi','compression','None');
for x = 1 : frames
a=vid(:,:,:,x);
a(:,:,1)=0;
a(:,:,2)=0;
blocks{x}=a;
end
for f=1:frames
new10=addframe(new10,blocks{f}); % the result is noisy movie
end
new10=close(new10);
msgbox('end of operation','Message','warn');
unfortunatelly, the size of the output file is different from the input file
so, how to make them in the same size,
regards
Majid
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2017년 2월 11일
Majid - is the new file smaller or larger? If you are expecting the files to be the same size, then are you expecting the files to be identical? If so, why not use copyfile?

답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by