Prev: problem on the result of maximum likelihood estimation (mle) in matlab
Next: Error executing mcc, return status = 1 | mcc do not work
From: Pat Finder on 4 Nov 2009 09:42 Does anyone have any experimental evidence which video format is fastest to read in? I'm using mmreader( ) on OsX, and this call is by far the slowest call in my program -- two or three orders of magnitude slower than the rest of the processing I'm doing. What is the fastest compression format to decompress? I am currently using *.mov files, but they are wrappers for other compression schemes under the covers. I could re-compress off-line if necessary. Is it fastest to read in MP4 files or Motion JPEG files, or what? Does anyone have any data on this? Does 2009b use hardware acceleration? I am using 2009a, and I speculate that mmreader( ) is doing all the decompression in software, even though there is a handy-dandy NVidea card installed. What's the best batch size? I have managed to speed it up a bit by reading in batches of 32 or 64 frames. However, the best batch size would be to read in a multiple of key-frames, so that the each batch starts on a key frame. Is there a hidden call to get the number of frames between key frames? (Perhaps even outside of Matlab?)
From: Pat Finder on 7 Nov 2009 20:35
"Pat Finder" <pfinder(a)netacc.net> wrote in message <hcs3rr$bpf$1(a)fred.mathworks.com>... > Does anyone have any experimental evidence which video format is fastest to read in? > > I'm using mmreader( ) on OsX, and this call is by far the slowest call in my program -- two or three orders of magnitude slower than the rest of the processing I'm doing. > > What is the fastest compression format to decompress? > I am currently using *.mov files, but they are wrappers for other compression schemes under the covers. I could re-compress off-line if necessary. Is it fastest to read in MP4 files or Motion JPEG files, or what? Does anyone have any data on this? Stumped you all eh? I'm surprised. There ought to be a prize for raising an issue that isn't commonly known... - Pat |