1. download and extract the custom version of FFmpeg from: (use the 2.2.5 version!)

2. Install the following FreeBSD packages (enable lame in the config screen):

cd /usr/ports/multimedia/ffmpeg
make clean

The complicated version:

pkg_add -r faad2
pkg_add -r x264
pkg_add -r x264-devel (optional)
pkg_add -r mpeg4ip
pkg_add -r git
pkg_add -r sdl

3. Compile the custom ffmpeg with the following options:

./configure --prefix=/usr/local/AirVideo --enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 \\
--enable-libmp3lame --enable-libfaad --disable-decoder=aac --extra-cflags="-I/usr/local/src/x264-snap -I/usr/local/include \\
-D__BSD_VISIBLE -DBROKEN_RELOCATIONS" --extra-ldflags=-L/usr/local/lib
gmake install clean

4. After the ffmpeg build is complete (adjust ffmpeg path, symlink to /usr/local/bin if required)

5. Locate the „AirVideoServerLinux.jar“ and create a „“ in the same directory with the following info:

path.mp4creator = /usr/local/bin/mp4creator
path.ffmpeg = /usr/local/bin/ffmpeg
path.faac = /usr/local/bin/faac
password  ======
subtitles.encoding = windows-1250
subtitles.font = Verdana
folders = Movies:/Volumes/Data/Movies,Series:/Volumes/Data/Series

6. Install diablo-JDK16 from ports (manually copy the file into /usr/ports/distfile)

7. Run AirVideo server with: java -Djava.awt.headless=true -jar AirVideoServerLinux.jar

8. Enjoy!

[[Original Version]]

freebsd/airvideo.txt · Zuletzt geändert: 2013/12/15 15:46 von idefix