Rank: 113 based on 389 downloads (last 30 days) and 3 files submitted
photo

Micah Richert

E-mail
Company/University
Salk Institute, UCI

Personal Profile:

I am a Neuroscientist and I program for fun.

Professional Interests:

 

Watch this Author's files

 

Files Posted by Micah View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 May 2010 mmwrite write AVI/ASF/WMV/WMA file from movies read by mmread Author: Micah Richert write avi asf wmv wma..., graphics import, graphics export, movie 102 52
  • 4.83333
4.8 | 15 ratings
12 Nov 2009 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert hi have you tried to ..., mmreadffgrabmacox, data import, ffgrad unable open th... 265 300
  • 4.77895
4.8 | 100 ratings
29 Apr 2008 mmplay replacement for the movie command and play movies read by mmread Author: Micah Richert graphics import, graphics export, play movies mmread mo... 22 4
  • 3.0
3.0 | 2 ratings
Comments and Ratings by Micah View all
Updated File Comments Rating
23 Nov 2011 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

Hi Kevin,,

Sorry for the delayed reply. I'm not sure why struct returned by mmread doesn't work for you, specifically v.nrFramesTotal. if nrFramesTotal is positive it is the number of frames in the video, if it is negative then the video doesn't report the total number of frames and nrFramesTotal is estimated from the frame rate and duration of the video. So, the following code should work for you:

v = mmread('somevideo.mpg',1);
if v.nrFramesTotal > 0
vlast = mmread('somevideo.mpg',v.nrFramesTotal);
else
% estimated last frame, try reading past the end of the video, after which nrFramesTotal will be accurate.
vlast = mmread('somevideo.mpg',-v.nrFramesTotal*1.01);
vlast = mmread('somevideo.mpg',v.nrFramesTotal);
end

Hope this helps,
Micah

23 Nov 2011 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

Hi Jennifer,

You have a few options. One is to use 64 bit Matlab (on a 64 bit machine with lots of memory). Another option is to read the video in small chunks and down sample the images so that they take up less memory. The final option is to use the processFrame.m interface, type "help processFrame" for more information.

Best,
Micah

17 Mar 2011 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert

Hi Chris,

640x480 uncompressed video requires 640*480*3 bytes per frame or just under 1Mb of memory. If you capture for 2 minutes at 20fps that is 640*480*3*20*120 or 2.2Gb of memory. So, it is of no wonder that you are getting out of memory errors; also 2Gb is the most memory 32-bit Matlab can allocate.

To get around these issues, either read the video in smaller chucks or use the processFrame interface. Or use mmreader since you are using a newer version of Matlab.

Best,
Micah

24 Nov 2010 mmwrite write AVI/ASF/WMV/WMA file from movies read by mmread Author: Micah Richert

Hi Huang,

Wow, that is a huge amount of data (about 3.5G of memory). I'll have to research that problem more. But as a work around, why not use the 'continue' option with mmwrite to process smaller blocks, maybe 1 minute long segments?

I hope that helps,
Micah

23 Nov 2010 mmwrite write AVI/ASF/WMV/WMA file from movies read by mmread Author: Micah Richert

Hi Huang,

Can you include the actual error message when it crashes? Also, are you using 32 or 64 bit Matlab?

Best,
Micah

Comments and Ratings on Micah's Files View all
Updated File Comment by Comments Rating
28 May 2013 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Maxim

Hello, Micah!
I love your mmread.
However recently I started to use Image Acquisition Toolbox, for which the suggested save format is motion jpeg 2000 (.mj2).
For some reason mmread crashes on them.
I would be happy if you could suggest something. (except saving it in avi =) )

23 May 2013 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Fu, Yanwei

Hi Micah,
Your excellent MMREAD is really good, and even better than the MATLAB built-in version. It seems that there is no support for video/x-h264 decoding format, which will make our programs crushed. Could you help add the support it?

19 Apr 2013 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Giannakopoulos, Theodoros

Really nice work! Though, I have the following problem. When reading frames from a large video file and the function seems to be rather slow for large frame indeces. E.g
video = mmread('/home/tyiannak/Desktop/05-10-19.avi', [10000]);
runs for several seconds. I suppose this is due to some type of file seeking. Can I avoide this?
Regards,
Theodore

17 Apr 2013 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Abdul Halin, Alfian

Hi there. I tried to type mmread (without any arguments)... then my Matlab (R2009b) shut down. Is there something in the code that causes this? Thanks!

02 Apr 2013 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert Zhou, Mingyuan

Top Tags Applied by Micah
graphics export, graphics import, data import, hi have you tried to execute the mex file in mac snow leopard, play movies mmread movie
Files Tagged by Micah View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 May 2010 mmwrite write AVI/ASF/WMV/WMA file from movies read by mmread Author: Micah Richert write avi asf wmv wma..., graphics import, graphics export, movie 102 52
  • 4.83333
4.8 | 15 ratings
12 Nov 2009 mmread Read virtually any media file in Windows, Linux, or Mac. Author: Micah Richert hi have you tried to ..., mmreadffgrabmacox, data import, ffgrad unable open th... 265 300
  • 4.77895
4.8 | 100 ratings
29 Apr 2008 mmplay replacement for the movie command and play movies read by mmread Author: Micah Richert graphics import, graphics export, play movies mmread mo... 22 4
  • 3.0
3.0 | 2 ratings

Contact us