readObject = vision.VideoFileReader('video_001.avi', 'AudioOutputPort',true);%% Video File Writer Objekt erstellen
writeObject = vision.VideoFileWriter('video17.avi', 'FileFormat','avi', 'AudioInputPort',true, 'FrameRate',readObject.info.VideoFrameRate, 'Quality',90);writeObject.AudioInputPort=true;%% Video Frame aus .avi-Objekt holen und in .mp4-Objekt schreiben
while ~isDone(readObject) [frame, audio] = step(readObject); %[frame, audio] = avi();
end step(writeObject,frame, audio); %mp4(frame, audio);
release(readObject);release(writeObject);
I want to read the audio and frames by using vision.VideoFileReader; then do some processing on the frames, then write frames and audio in a file, but I do not want to use the 'while' used during reading
Best Answer