| 35 | |
| 36 | The following components are needed for video: |
| 37 | |
| 38 | 1. [http://www.libsdl.org/ SDL] '''version 1.3'''. |
| 39 | - Note that this is the newer and not yet released SDL library, hence most likely it won't be installed by default on your system. You can download the source snapshot or from the Mercurial repository from http://www.libsdl.org/hg.php. |
| 40 | |
| 41 | 1. [http://ffmpeg.org/ ffmpeg] development library. We tested with ffmpeg version ranging from 0.5.1 (from circa 2009) to 0.10. |
| 42 | - Note that for H.264 support, you need newer releases (October 2011 onwards), and it needs libz too. |
| 43 | - You may be able to use the binary distributions, we haven't tested them. |
| 44 | - Build with at least: |
| 45 | {{{ |
| 46 | $ ./configure --enable-shared --disable-static --enable-memalign-hack |
| 47 | # add other options if needed, e.g: optimization, install dir, search path |
| 48 | # particularly CFLAGS and LDFLAGS for x264 |
| 49 | # to enable H264, add "--enable-gpl --enable-libx264" |
| 50 | $ make && make install |
| 51 | }}} |
| 52 | |
| 53 | 1. Optional for H.264: [http://www.videolan.org/developers/x264.html libx264]. We tested with the latest from git (as of October 2011): |
| 54 | {{{ |
| 55 | $ ./configure --enable-static # add options if needed, e.g: optimization, install dir, search path |
| 56 | $ make && make install-lib-static # default install dir is /usr/local |
| 57 | }}} |
| 58 | 1. Optional: [http://qt.nokia.com/downloads/ Qt development SDK] for building the [#vidgui video GUI sample]. We tested with version 4.6 or later. |
| 59 | - without this you can still enjoy video with pjsua console application |