From: Portia on 19 Jul 2010 13:54 Hello, Hopefully someone can help me with this since I've tried everything. I have a lot of video files that are all between 150 and 160 MB large (.avi). I need to be able to play these files within a GUI that I am building. I have tried aviread, mmreader, etc. and I continue to get an "out of memory" error. I have used MPEG StreamClip to try and decrease the size of the files. They play fine when opened outside of Matlab but inside matlab the implay/mplay commands result in a video with lines going through it (from interleaving i think). Is there any way to make this work? As stated I have tried reading in each frame with mmreader per the example in the Matlab help and have tried aviread. thank you, Portia
From: Sean on 19 Jul 2010 15:32 "Portia " <portiaerin(a)yahoo.com> wrote in message <i223ft$dd8$1(a)fred.mathworks.com>... > Hello, > > Hopefully someone can help me with this since I've tried everything. I have a lot of video files that are all between 150 and 160 MB large (.avi). I need to be able to play these files within a GUI that I am building. > > I have tried aviread, mmreader, etc. and I continue to get an "out of memory" error. I have used MPEG StreamClip to try and decrease the size of the files. They play fine when opened outside of Matlab but inside matlab the implay/mplay commands result in a video with lines going through it (from interleaving i think). > > Is there any way to make this work? As stated I have tried reading in each frame with mmreader per the example in the Matlab help and have tried aviread. > > thank you, > > Portia One way would be to use the second input to aviread(file_name,INDEX) to read in smaller chunks at a time. You could then convert data types to ones that use a smaller memory footprint or downsample your movie.
|
Pages: 1 Prev: checking/setting part of an array. Next: skip bad files in batch processing loop? |