Own hands: set AirVideo server on Linux
Do It Yourself Ios / / December 19, 2019
I do not know about you, but I have a home network is heterogeneous, I think most of her dignity. This puts me interesting questions. For example, I fell in love with AirVideo program, which we use on the iPad-ah and less - on the iPhone. The emergence in the family recently Apple TV media receiver gave a new impetus to the use of the program - I can now redirect the video to your TV, not covered by the already existing cable network. Driving seems a little strange: a video server is sent to the iPhone, which, in turn, sends all the Apple TV and the connected TV. But all this is done conveniently and simply, so that there is no difficulty, there is magic.
But as the primary server on my network acts as a small box, which turns one of the latest versions of Ubuntu. This put me a question, how to use it for streaming purposes, because the official version AirVideo server only under Mac and Windows.
But it turned out that there are quite working but unsupported version for Linux. But in order to start it, you need a little poshamanit. The number of steps is small, so I suggest not to fear: it is not difficult.
- download AirVideoServer for Linux. The implication is that java on your linux-box there.
- Put it in the directory from which to start will be made. let us say /home/%username%/AirVideo
- Download the source code modified (this is important) ffmpeg.
- Unpack it into the appropriate folder, I suggest - in a subfolder of your AirVideo Server, so you will not destroy the basic version, which is used by many programs to Linux, according to my logic - /home/username/AirVideo/ffmpeg. Linux purists can choose a more suitable place, but I did not dare to carry something in the alpha stage in the main "repository" programs.
- Build the binaries .:
- Open the console
- Download all the necessary biblitoteki (run the command sudo apt-get install for the following libraries: libmp3lame-dev, libfaad-dev, libx264-dev, mpeg4ip-server, git-core, pkg-config
- Navigate to the directory with our ffmpeg. In the console, it will look like this: cd / home / username / AirVideo / ffmpeg
- Run the command ./configure -enable-pthreads -disable-shared -enable-static -enable-gpl -enable-libx264 -enable-libmp3lame -enable-libfaad -disable-decoder = aac to establish the correct configuration and
- Run the command procedure make
- Create a configuration file. I propose to put it in the directory with AirVideo Server. Call it logical AirVideoServer.propertiesBut it nepritsipialno.
The content of his copybook:
path.ffmpeg = / home / alex / AirVideo / ffmpeg / ffmpeg
path.mp4creator = / usr / bin / mp4creator
path.faac = / usr / bin / faac
password =
subtitles.encoding = windows-1251
subtitles.font = Verdana
folders = Movies: / media / Movies, Series: / media / Series
We will understand with lines.
path.ffmpeg should point to ffmpeg, which you built in the previous step. The next two lines shows where the standard program, the way to correct my version of Ubuntu, but may differ in your case. We have not set a password, but it is given as closed captioning (if you need them). Then specify the font and subtitle in the last line - a list of folders with your video collections. - Left to start your server and make sure that it works.
java -jar /home/alex/AirVideo/AirVideoServerLinux.jar /home/alex/AirVideo/AirVideoServer.properties - Due to lack of Bonjour (which is also treated, but that's not the topic) you will have to manually add the ip of your server.
Voila - iPhone see lists of files, moreover - losing them. A server "on the fly" converts virtually any video into a format understandable for iOS devices.
I leave it to your discretion games with setting the size and quality of video AirVideo the program. Another point, which I have not decided for themselves - how best to organize the auto-start and auto-stop service at startup and shutdown. Therefore, I ask to describe the best method in the comments to this post for the common good.
If you have any questions, I'll try to answer them to the best.