I use the excellent Air Video software to stream non-MP4 video (including DivX) to my iPad and iPhone (I then sometimes use Air Sharing to stream the video from the iPad or iPhone to my AppleTV). The one problem I have with this set-up is that the Air Video Server software is only released for Macs (which I don't have) and Windows (which I do have, but don't like to leave running 24x7).
Luckily InMethod have released an alpha Air Video Server for Linux. Unfortunately, getting this installed and running on Fedora 16 (my distribution of choice) isn't entirely straight forward. The rest of this post is a guide to installing Air Video Server Linux alpha 6 on Fedora 16.
- Download the software:
- From InMethod: AirVideoServerLinux.jar, ffmpeg-for-2.4.5-beta6.tar.bz2, test.properties
- From me: mpeg4ip-1.6.1.tar.gz (no longer available from original website), mpeg4ip-1.6.1-pd.patch, airvideo.service, airvideo
The patch is required to make mpeg4ip build on Fedora 16. This patch is the minimum change to get mpeg4ip to build, and has only been tested in the context of getting Air Video Server Linux alpha 6 to work. - Make sure you have installed the RPM Fusion repos. You should also consider using yum priorities to protect the integrity of your machine - that is, make sure that when the same package is in the Fedora repos and RPM Fusion repos you do not break your machine by installing the RPM Fusion version.
- Install the dependencies that are available as RPMs:
[sudo] yum install esound-devel faac gcc gcc-c++ \
glib2-devel gtk2-devel java-1.7.0-openjdk lame-devel \
SDL-devel x264-devel - Build FFMpeg:
tar jxvf ffmpeg-for-2.4.5-beta6.tar.bz2
cd ffmpeg
./configure --enable-pthreads --disable-shared --enable-static \
--enable-gpl --enable-libx264 --enable-libmp3lame
make all
[sudo] make install
cd .. - Build mpeg4ip:
tar zxvf mpeg4ip-1.6.1.tar.gz
patch -p0 < mpeg4ip-1.6.1-pd.patch
cd mpeg4ip-1.6.1
./configure
make all
[sudo] make install
cd .. - Install Air Video Server for Linux:
[sudo] mkdir /usr/local/share/AirVideoServer
[sudo] cp airvideo /usr/local/share/AirVideoServer
[sudo] cp AirVideoServer.jar /usr/local/share/AirVideoServer
[sudo] cp test.properties /usr/local/share/airvideo.properties - Update /usr/local/share/AirVideoServer/airvideo.properties to match your system:
path.ffmeg = /usr/local/bin/ffmpeg
path.mp4creator = /usr/local/bin/mp4creator
path.faac = /usr/bin/faac
folders = <the location of your video files> - Configure Avahi (Bonjour/mDNS):
[sudo] cp airvideo.service /etc/avahi/services
[sudo] service avahi-daemon restart - Configure the firewall:
Use system-config-firewall or system-config-firewall-tui and:
- add Multicast DNS (mDNS) to the trusted services
- add 45631:tcp in "Other Ports" - Auto start/stop on system startup/shutdown:
[sudo] ln -s /usr/local/share/AirVideoServer/airvideo \
/etc/init.d/airvideo
[sudo] chkconfig airvideo on - Start Air Video Server for Linux:
[sudo] service airvideo start
Updated Sun 10 Jun 2012 00:13
I upgraded my machines to Fedora 17 today and Air Video Server for Linux stopped working.
ReplyDeleteI will post an update to the procedure soon...
Hi Peter,
ReplyDeletein step #5 do you ./configure? If so with what options? Thank you!
I've updated the procedure.
DeleteIn step #5 ./bootstrap seems to be working better (instead of ./configure)
ReplyDeleteIn step #6 last line: there is unfortunate typo (should be /usr/local/share/AirVideoServer/airvideo.properties)
The bitch happened to be mpeg4ip, would not compile.
Ended up skipping on step #3, adding slowly what it was asking for.
Installed (yum) faac after compiled everything.
Everything works great, thanks again!!!
Followed the steps and it worked like a charm, AMAZING work
ReplyDeleteRPM Fusion doesn't seem to offer any rpms for the ARM-arch. anymore?
ReplyDeleteI have no idea. I have never done this on an ARM system. These instructions are for a 32/64 -bit PC.
ReplyDeleteI have no idea. I have never done this on an ARM system. These instructions are for a 32/64 -bit PC.
ReplyDeletePeter, will this possibly work on Fedora 14?
ReplyDeleteHello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. small portable sandblaster
ReplyDelete