Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

different size of files

1 Ansicht (letzte 30 Tage)
Majid Al-Sirafi
Majid Al-Sirafi am 11 Feb. 2017
Kommentiert: Stephen23 am 11 Feb. 2017
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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by