Dec 15, 2013
1 min read
May 27, 2023 11:35 EEST
  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
  1. 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
  1. After the ffmpeg build is complete (adjust ffmpeg path, symlink to /usr/local/bin if required)

  2. 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
  1. Install diablo-JDK16 from ports (manually copy the file into /usr/ports/distfile)

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

  3. Enjoy!

Original Version

Related Posts