===================================================================
PLAYVPX
===================================================================

Ahoy there.  Phil Hassey from www.philhassey.com and twitter.com/philhassey and www.galcon.com here!

If you want to use this, you should first read this:

http://www.philhassey.com/blog/2012/02/02/how-to-create-and-play-ivf-vp8-webm-libvpx-video-in-opengl/

===================================================================
OPTIONAL BUILDING STUFF
===================================================================

[DOWNLOAD] http://code.google.com/p/webm/downloads/list
Compiling requires yasm. [DOWNLOAD] http://yasm.tortall.net/Download.html

===================================================================
BUILDING LIBVPX FOR WINDOWS
===================================================================

Nah, just download the pre-built stuff :)

[DOWNLOAD] http://code.google.com/p/webm/downloads/list

===================================================================
BUILDING LIBVPX UNDER OS X LION (32-bit, compile for 32-bit)
===================================================================

./configure --target=x86-darwin8-gcc --disable-multithread

===================================================================
BUILDING LIBVPX UNDER LINUX (32-bit, compile for 32-bit)
===================================================================

./configure --disable-multithread

===================================================================
BUILDING FFMPEG UNDER LINUX 
===================================================================

[DOWNLOAD] http://ffmpeg.org/download.html

./configure --enable-encoders --enable-libvpx

===================================================================
CREATING IVF FILES UNDER LINUX
===================================================================

ffmpeg -i Untitled.mov -vcodec libvpx -b 1000k -s 1024x512 movie.ivf

ADD THIS FOR BEST QUALITY
-level 100

ADD THESE TO DO A 2-PASS ENCODE
-pass 1
-pass 2

ALL TOGETHER THIS WORKS PRETTY WELL:

ffmpeg -i ~/shared/Downloads/Untitled.mov -vcodec libvpx -b 2218k -s 1024x512 -level 100 -pass 1 movie.ivf
ffmpeg -i ~/shared/Downloads/Untitled.mov -vcodec libvpx -b 2218k -s 1024x512 -level 100 -pass 2 movie.ivf

USING A PRESET http://blog.pcode.nl/2010/10/17/encoding-webm-using-ffmpeg/

===================================================================
BUILDING PLAYVPX UNDER LINUX
===================================================================

g++ -DPLAYVPX_SDL -DPLAYVPX_MAIN -I./include -g -O3 playvpx.cpp ./linux/libvpx.a `sdl-config --cflags --libs` -lGL -lGLU -o playvpx

./playvpx movie.ivf