[Logo] Air Video Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
linux support?  XML
Forum Index » Air Video General
Author Message
Ultim8Fury



Joined: 02/13/2010 19:09:39
Messages: 4
Offline

You sir, are an absolute star. I bought Air Video just after the iPad was announced to see if it would meet my future needs. I love it, but my MBP (Core Duo) is finding it hard going keeping up and the years have taken their toll on the poor thing. However my Linux server is more than man enough and I'm very much looking forward to trying it out.


Your efforts a greatly appreciated.

Many thanks
wolf_bluejay



Joined: 02/12/2010 23:18:40
Messages: 4
Offline

Admin wrote:I'm not saying compiling FFMpeg is difficult, it just needs bunch of dependencies. Also Air Video needs custom FFMpeg version available here. The configure parameters for mac version (should be pretty close to the linux one) were
--enable-pthreads --disable-shared --enable-static --enable-gpl --enable-libx264 --enable-libmp3lame --enable-libfaad --disable-decoder=aac

faac and mp4creator are only necessary for offline conversion. FAAC is standalone audio encoder, can be downloaded here. mp4creator is tricky. I'm not sure where to find source code that can be used to build linux version. It seems like only the windows port is maintained. I'll take a look at it though.

The CLI version of AVS should not take long to create. However keep in mind it will require Java and it will not be open source. However it should be quite easy to use (just one simple config file). I'll try to put something together over the weekend.






The custom ffmpeg build just fine out of the box -- is ther any particular patches applied to ffmpeg, or just the x264, etc stuff. As my regular system build does support all that and can enocde for the ipod already. IE: any patches build by you or just the usual patch set?
Do you have any encodes that you would like me to test against (CLI options?)

I already have faac, etc built for other things and that is a normal package in linux systems. mp4creator was a pain to build, but has been superseded by libmp4v2 which is the direct replacement for it. Any plans of moving that way, or can I just replace the whole offline encoding with existing offline encoding setups?

I don't need it to be opensource, Java is not a problem on linux -- Is the main program written in JAVA? But running java as a server really does suck as java is slow and crash prone, I do code in JAVA as well.

Personally I'd love to look at the code, as I do have a few ideas that I think would work very well from some of my other work. If you'd let me work from the source I'd be happy to pass anything I do back to you to do whatever you wish. Most of them would be improvements that would help with my particular system, but should be a benefit overall with the online conversion.
I'd rather not post the ideas for improvements in a public forum just yet, but would be happy to discus in a PM

If all goes well I might build a quick GUI config editor. I see this running as a system service rather than running at the user level.

This message was edited 1 time. Last update was at 02/14/2010 07:55:46

Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

There are no patches for the FFMpeg. The tar on page that I linked has everything applied.

I think mp4creator is part of MP4IP package http://www.mpeg4ip.net/ . That should build on linux

I really don't want to get into java performance flamewar. Apart from same extremely specific cases I haven't seen java crash. You can write bad performing code in any language. There are ways to write very performant java applications (and in 1.6 the JIT compiler does pretty decent job). The only possible issues are longer startup time (it takes a while for the JVM to load) and increased memory overhead (which really shouldn't be a big deal in 2010). Anyway, while the server is idle it really doesn't do anything. While it's streaming videos the CPU consumption is rather irrelevant compared to actual transcoding (by FFMpeg).

The first alpha build of the server is available here. Sample property file is available here.

Usage:
java -jar AirVideoServer.jar <path-to-property-file>
i.e.
java -jar AirVideoServer.jar test.properties

Bonjour and remote access are disabled in this release. The only way to access server is by specifying the IP address (and port 45631).

Disclaimer: I haven't actually tested this on a linux machine, it's likely that there are issues to be resolved (apart from missing features).
wolf_bluejay



Joined: 02/12/2010 23:18:40
Messages: 4
Offline

Admin wrote:There are no patches for the FFMpeg. The tar on page that I linked has everything applied.

I think mp4creator is part of MP4IP package http://www.mpeg4ip.net/ . That should build on linux
It does build -- just with the system that I have it complains that faac is built against libmp4v2. I test on one of my non-gentoo based system (ubuntu/debian) to see if it builds nicley


I really don't want to get into java performance flamewar. Apart from same extremely specific cases I haven't seen java crash. You can write bad performing code in any language. There are ways to write very performant java applications (and in 1.6 the JIT compiler does pretty decent job). The only possible issues are longer startup time (it takes a while for the JVM to load) and increased memory overhead (which really shouldn't be a big deal in 2010). Anyway, while the server is idle it really doesn't do anything. While it's streaming videos the CPU consumption is rather irrelevant compared to actual transcoding (by FFMpeg).

Granted, most the CPU power is used here.

The first alpha build of the server is available here. Sample property file is available here.

Usage:
java -jar AirVideoServer.jar <path-to-property-file>
i.e.
java -jar AirVideoServer.jar test.properties

Bonjour and remote access are disabled in this release. The only way to access server is by specifying the IP address (and port 45631).

Disclaimer: I haven't actually tested this on a linux machine, it's likely that there are issues to be resolved (apart from missing features).



Well, I wasn't expecting a fully polished version at all -- for those of us running a linux media server, the CLI and manual config works just fine.

Add the good news -- it works beatifically with sun java, If I get time I'll test against a few other java versions.

I did have to use the ffmpeg for you, rather than my default build with gentoo (It didn't agree with the segmenter), but it really does perform MUCH better CPU wise than inside a VM on WinXP (MUCH, MUCH better).

One of the ideas That I'd love to see is a "cache of segments". IE hash based on filename/segment#/bitrate and store in a simple cache folder, and process more segments ahead of time using a bitrate prediction.

The other option that I would love to have is the ability to tell the server to gather all thumbnails as a one-shot to pre-seed.



Anyways -- working wonderfully, I'm a happy man, now the silly question -- As air video was cheaper than what I expected and it does seem to get better -- can I pay extra for this lovely extra linux server, fair is fair after all
mbirth



Joined: 02/06/2010 12:45:23
Messages: 5
Location: DE, Berlin
Offline

Just wanted to mention that Ubuntu/Debian users find the mp4creator in the mpeg4ip-server package: http://packages.ubuntu.com/karmic/mpeg4ip-server . No need to compile it yourself.
[WWW]
hapylestat



Joined: 11/24/2009 23:16:36
Messages: 5
Offline

Admin wrote:There are no patches for the FFMpeg. The tar on page that I linked has everything applied.

which patches are used for ffmpeg?



I think ffmpeg not understand conversion-id and port params. I build ffmpeg from SVN, attached here version of ffmpeg failed during configure.
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

The patched version of ffmpeg can be downloaded here:

http://www.inmethod.com/air-video/licenses.html
mbirth



Joined: 02/06/2010 12:45:23
Messages: 5
Location: DE, Berlin
Offline

I made a small howto for compiling the FFmpeg on Ubuntu Karmic: http://wiki.birth-online.de/know-how/hardware/apple-iphone/airvideo-server-linux .
[WWW]
irv



Joined: 02/17/2010 10:30:10
Messages: 1
Offline

Would love to see this available for linux - I've got all my media on ReadyNAS NVX

http://www.readynas.com/forum/viewtopic.php?f=61&t=38893&start=0
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

Your NAS will hardly be powerful enough to do live conversion.
AngryChad



Joined: 02/17/2010 15:21:59
Messages: 9
Offline

Admin, I registered just to thank you for acknowledging the linux users. I'm going to try it out tonight. Thanks!
nkrumm



Joined: 02/19/2010 01:12:22
Messages: 1
Offline

This works for me on ubuntu 9.04! Thank you!
(I haven't tried offline encoding)

Some notes that helped:
- Had to update my x264 library, and i used these instructions: http://ubuntuforums.org/showthread.php?t=786095 (requires git and yasm)
- Used the ffmpeg source linked by admin (http://www.inmethod.com/air-video/licenses.html, ver 2.2.5)
(note: this seems key-- i was getting the "--conversion-id" error before i did this)
- ./configure options for ffmpeg:

- remember to update your path in test.properties to the new ffmpeg you built.


looking forward to updates on this!
AngryChad



Joined: 02/17/2010 15:21:59
Messages: 9
Offline

Bah. FFMpeg install instructions aren't working for me. Looks like I'm passing until there's an official Linux server. Glad I didn't shell out for the paid version of this app yet.
Admin



Joined: 08/23/2009 08:49:34
Messages: 8705
Offline

If anyone can provide a working static x86 build of ffmpeg, mp4creator and faac for linux please contact me using PM. Thanks.
hack



Joined: 02/19/2010 12:23:46
Messages: 1
Offline

oh yes! thanks so much for even thinking about it! So much better than running it in a virtual machine!
I'm gonna try it out.
let you know when I can.
puss.
 
Forum Index » Air Video General
Go to:   
Powered by JForum 2.1.8 © JForum Team