[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
cydine



Joined: 03/09/2010 11:37:56
Messages: 1
Offline

Hi,

Been trying for a few days to compile ffmpeg on my x86 Karmic Ubuntu server.

It keeps crapping out with undefined reference to `x264_encoder_encode' and I can find no way around it.

Anyone got a static build that they could post?

Thanks.

This message was edited 1 time. Last update was at 03/09/2010 11:45:45

edwardl



Joined: 03/12/2010 04:31:07
Messages: 1
Offline

Hello,

I also want to try AirVideo in my NAS but I don't know how to compile the files in the server. Can anyone share the static x86 build files of ffmpeg, mp4creator and faac with me for a trial?

I am using QNAP TS239Pro (with Atom 1.6GHz CPU).

Thanks,
Edward
WesSabi



Joined: 03/12/2010 04:38:00
Messages: 2
Offline

nkrumm wrote: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!


I'm getting an error when trying to convert and I used the source linked by admin to compile ffmpeg.

DEBUG: Encoder: /usr/bin/ffmpeg: unrecognized option '--conversion-id'

Any suggestions?

Admin



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

It doesn't look like you are running the right ffmpeg. The modified ffmpeg (that I've linked to) adds the --conversion-id argument.
ahhams



Joined: 03/13/2010 10:57:29
Messages: 1
Offline

Hi,

I got it working on Ubuntu 9.10 AMD64 after quite some (as it turned out unnecessary) tinkering.

I followed instuctions from here: http://wiki.birth-online.de/know-how/hardware/apple-iphone/airvideo-server-linux

I got stuck building the FFmpeg package on the missing a missing 'x264_encoder_encode' function, thinking it had to do with the x264 lib. I wasted quite some time on that. It turned out however, that the error had nothing to do with the x264 lib, but that the error was related to a missing "pkg-config" install. After fixing this using "sudo apt-get install pkg-config" everything worked fine after that.

As to running on NAS'es: My linux server is based on the new Intel Atom D510 on the D510mo motherboard, which is already used in some of-the-shelve NAS'es (for instance the Tranquil PC SQA-5H, see http://www.tranquilpc.co.uk/). Probably we will see this CPU start to appear in more new NAS'es. Good news is that live conversion works excellent! I have not seen any dropped frames yet. I am very happy with the setup!

Thanks for supporting people running Linux!



gwynnebaer



Joined: 03/13/2010 23:18:55
Messages: 1
Offline

I've followed the steps mentioned by ahhams above with great success on Karmic x86_64.

Works like a charm.

Thank you all who have pioneered this!
WesSabi



Joined: 03/12/2010 04:38:00
Messages: 2
Offline

Admin wrote:It doesn't look like you are running the right ffmpeg. The modified ffmpeg (that I've linked to) adds the --conversion-id argument.


Turns out I had a spelling mistake in the test.properties file so it was using my original ffmpeg, not the newly compiled one. Works like a charm now, thanks!
burnot



Joined: 11/07/2009 00:58:56
Messages: 5
Offline

thanks for this linux version. It works great for the most part but I can’t seem to prevent it from spamming stdout with debug messages… how do I disable this?

Or rather, what do you guys use to run this in the background on your server?
Admin



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

> /dev/null doesn't help?
burnot



Joined: 11/07/2009 00:58:56
Messages: 5
Offline

Admin wrote:> /dev/null doesn't help?


nope, that was the first thing I’ve tried.
Admin



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

2> /dev/null ? I really don't see why redirect the output (either stderr or stdout) wouldn't work.
burnot



Joined: 11/07/2009 00:58:56
Messages: 5
Offline

Admin wrote:2> /dev/null ? I really don't see why redirect the output (either stderr or stdout) wouldn't work.


It didn’t make sense to me either — maybe the debug messages are created by a different process? I’m not at all familiar with java/jre so I’m of no help here.




Do you plan to release a new version of this linux version anytime soon? It seems to work well enough so maybe you could disable debugging and even create a daemon that runs backgrounded.
Admin



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

You need to redirect both streams. java -jar AirVideoServerLinux.jar air-video-server.properties > /dev/null 2> /dev/null
nowhereman



Joined: 03/18/2010 20:43:51
Messages: 1
Offline


Hi,

I just signed up to also thank you for the Linux support!

I'm super happy to hear about the linux support, I have a Linux NAS setup and Airvideo serving from a quad core OS-X machine. It works perfect with live encoding, even HD moives that have been cropped for example 1920x800. But If I'm trying to live stream a full 1920x1080p movie it does stutter.

I have a Home Theatre PC using Ubuntu Linux configured with an Nvidia GT240 and a Dual Core CPU. I use XBMC on it to playback movies which takes full use of the Nvidia GPU to decode the movie in real time.

I've read on the net that FFMPEG can easily (if you know what you are doing) be made to use the nvidia GPU to decode x264 streams using VDPAU. This might be a solution for me playing back all of my HD movies if I can stream from the HTPC... and actually turn my Mac off. In fact my NAS is running Linux and I could throw in a cheap GT210 card ($50) and have my NAS stream the video to my iphone, if this works...

Do you think this is a possibility? I'll have to play with it and see what happens. Thanks for opening the door to this possibility.

Thanks again,

ps
Awesome app!
sassafras



Joined: 03/23/2010 04:35:06
Messages: 3
Offline

I am yet another user who has registered to thank you for the linux support. I run a Debian linux server that contains all of my music and video and naturally I welcomed the linux port you have built. Thanks so much!

I want to add my unique experience to help anyone else trying to build this on their own computer. First off, you have to custom build and use the ffmpeg that the admin has linked to in his post. Since it's a static build and it doesn't have linked libraries, it's probably a good idea to keep it out of your /usr/bin or /usr/local/bin folders. I added the --prefix=/home/"user"/binary/ (where "user" is my user name) to the configure script so I could have the static build of ffmpeg not interfering or getting confused with my other (already installed) ffmpeg build. In my case, getting a hold of libx264 was a little difficult because the Debian Lenny stable version is something like 0.75, the ffmpeg will only build with 0.83. In my case that meant going straight to the source and grabbing the daily build from the VLC team--http://www.videolan.org/developers/x264.html and building that myself.

More importantly, the GNU version of Java will NOT correctly work with the Jar server file. You MUST use the Sun JRE otherwise the server will not work. Getting the Sun JRE onto a Debian Linux install means adding the 'non-free' packages to your /etc/apt/sources.list file and then updating the default java runtime by running update-alternatives as root.

Hope this helps someone who might need it.

Thanks again for a fantastic product and for making the decision to build a linux version for us nerds out there

sassafras
 
Forum Index » Air Video General
Go to:   
Powered by JForum 2.1.8 © JForum Team