-
It's a long time ago since I did this, so I don't really remember the details. Anyway... there's a copy of my full videoIO folder with MACI binaries on http://ict.ewi.tudelft.nl/~lvandermaaten/videoIO.zip (46 MB).
I guess you need a working installation of ffmpegx in order for it to work, and you need to make sure that Matlab can find it. I installed ffmpegx in /usr/local/lib and I do this in...
2009-12-23 18:18:09 UTC in videoIO Toolbox for Matlab
-
On my platform (Mac OS 10.5.7 with Matlab 7.6) videoIO is actually a lot faster than mmreader. This may be very platform-specific though!
Example:
>> obj = mmreader('intersection300.orig.revel.avi');
>> tic, video = read(obj); toc
Elapsed time is 10.292934 seconds.
>> tic, video = doFullRead('intersection300.orig.revel.avi', 'ffmpegDirect'); toc
Elapsed time is...
2009-08-05 13:15:46 UTC in videoIO Toolbox for Matlab
-
I see. Debugging the ffmpegPopen2 sounds horrible indeed; I remember using pipes once to communicate between C++ and JavaScript: big mess!
Well, I can at least use the direct implementation for now (I need speed anyway)...
I did the videoIoSysInfo after the setenv. I use Matlab 7.6 (R2008a). The ffmpegDirect run outputs the following:
>> standardTestBattery('ffmpegDirect')
2009-08-05 13:10:37 UTC in videoIO Toolbox for Matlab
-
It turns out my LD_LIBRARY_PATH was empty indeed. I simply set it in Matlab: setenv('LD_LIBRARY_PATH', '/usr/local/lib');
Both standardTestBatteries now terminate with a different error. The standardTestBattery('ffmpegDirect') is actually running for quite some time, claiming it runs doFullRead and doMultiFullReadTest on all movies, but when it gets to doMultiFullReadTestOnAllLoadables it...
2009-08-05 08:37:07 UTC in videoIO Toolbox for Matlab
-
Curiously, using buildVideoIO in Matlab instead of make in the Terminal resolved that problem! Everything now compiled successfully.
However, when running testAll I get the same error as before:
??? Error using ==> feval
Unexpected Standard exception from MEX file.
What() is:basic_string::_S_construct NULL not valid
Error in ==> videoReader.videoReader at 151
vr.handle =...
2009-08-04 16:39:27 UTC in videoIO Toolbox for Matlab
-
Ok, I edited the ffmpeg-config-internal.pl to hunt for dylibs, and it works now. It was checking whether the architecture was correct in findUsrLib, and the check was only implemented for Linux. Also, it assumed folders like /usr/lib32 and /usr/lib64, which are simply called /usr/lib on OS X. Here's the results of running ffmpeg-config-internal.pl:
Macintosh-10:videoIO laurens$...
2009-08-04 16:23:40 UTC in videoIO Toolbox for Matlab
-
I'm trying to get videoIO to run on Mac OS 10.5.7 (Intel) using GCC 4.0.1 and Matlab 7.6.
I removed all old versions of ffmpeg and installed the last version from SVN as described in the installation instructions. Then, I had to make some minor code edits in order to get everything to compile: e.g., globally replaced sighandler_t into sig_t and added some missing casts from int to PointFormat.
2009-08-04 08:18:58 UTC in videoIO Toolbox for Matlab