To install the Eurlerian Video Magnification software on Ubuntu 14.04, you’ll want to do the following:
First, download the associated software here:
Then move the associated zip to your preferred location and unzip.
You will also need the Matlab Runtime environment (not the actual matlab suite), which can be downloaded here:
To install the matlab runtime environment, move the zip to your preferred location and unzip. At this point, you should open your terminal (if you haven’t already) and change your directory to the unzipped location and run the following:
sudo bash install
Now, open ~/.profile in your favorite editor and add the following lines at the bottom:
export MCR="/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80" export LD_LIBRARY_PATH=".:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/sys/java/jre/glnxa64/jre/lib/amd64/client:/usr/local/MATLAB/MATLAB_Compiler_Runtime/v80/sys/java/jre/glnxa64/jre/lib/amd64"
Be sure to restart your terminal at this point.
Now, if you were to try to run the reproduce_results.sh script, you’d likely run into the following error:
The file requires the following codec(s) to be installed on your system: video/x-h264
To resolve this issue, run the following commands in your terminal:
sudo add-apt-repository ppa:mc3man/trusty-media sudo apt-get update sudo apt-get install gstreamer0.10-ffmpeg
At this point, we can process an actual file, so create a /data directory and a /results directory within your EVM_Matlab location and place a video file within the /data directory. Now run the following command to magnify the motion of your video.
./run_evm.sh $MCR data/yourfile.mp4 results/ 30 motion 0.5 10 30 butter 0 80
Be sure to review the readme file to learn more about the above arguments and additional options.
A cool TED Talk associated with this technology can be found here: See invisible motion, hear silent sounds
You can find more information, including academic papers associated with this functionality, here: Eulerian Video Magnification