Sunday 23 February 2014

How to fix MATLAB and mex version incompatibilities

1. In the MATLAB Command Window, execute the following commands:
cd(matlabroot)
cd bin
edit mexopts.sh
2. Save a backup copy of this file somewhere in case you make a mistake and you need to revert your changes.
3. Scroll down to the Mac (“maci64”) section of this file, beginning around line 120.
4. Replace all instances of 10.7 with 10.8; there are four of these in all (a fifth may be found in comments only)
5. Save the file, then execute the following command in the MATLAB Command Window:
mex -setup


Source: http://www.mathworks.com/matlabcentral/answers/103904-can-i-use-xcode-5-as-my-c-or-c-compiler-in-matlab-8-1-r2013a-or-matlab-8-2-r2013b

Tuesday 18 February 2014

Acquiring data via FFMPEG

Only one connection can exist at a time when reading video data from FFMPEG, otherwise the program will freeze while attempting to pick up the data. Once one connection has been established, you can use:

ffmpeg -i tcp://[ip:port] [outputfile]

In addition, there seem to be some errors with the Jan 14 2014 version of FFMPEG where the recorded data is either sampled or slowed. I updated to the Jan 16 2014 and no longer had this issue.

Monday 17 February 2014

Installing ffplay on OSX

Download the most recent static FFplay binaries for Mac OS X Intel 64bit at http://www.evermeet.cx/ffplay/. (If this gets disabled, leave a message and I can mirror my copy from this date.)

Use something that can unzip 7z files, like The Unarchiver for Mac (h/t: Ren). Move the ffplay binary into /usr/bin/ or some other folder on your $PATH.

Now it should be accessible from terminal!

Decibel

'Decibel' can also be used to denote when some value is 1/10 of some other value.

Checking FFMPEG version

ffmpeg -version

Checking file paths on OSX

$PATH to check what is included in your path.