v = VideoReader(path); vidHeight = v.Height; vidWidth = v.Width; mov=struct('cdata',zeros(vidHeight,vidWidth,3,'uint8'),'colormap',[]); numFrames = get(v,'NumberOfFrames'); for k=1:numFrames mov(k).cdata = read(v,k); end
Then I will apply some change to the mov, but I cannot output a video using VideoWriter or VideoFileWriter, as it says something like the input does not correct
Is that mean I cant use any of them to convert a struct to a video? What else can I do? Thanks
Best Answer