liamc
Posts: 16
Joined: Sat Dec 10, 2011 7:18 pm

Re: AirPlay

Tue Apr 17, 2012 9:12 pm

Hi guys,

Iv been looking around the site and google with regards to airplay on the raspberry pi. I understand this is possible (cow video), but cant actually work out how to do it.

Please can you point me in the right direction or tell me if this is no longer available,

Thanks for any help.

jmarcelino
Posts: 9
Joined: Mon Apr 16, 2012 11:19 am

Re: AirPlay

Tue Apr 17, 2012 9:57 pm

I don't think Airplay is very useful at this point, since we don't even have working, stable, audio output.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5380
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: AirPlay

Tue Apr 17, 2012 10:45 pm

Airplay is working in XBMC.
Someone brave could try building it from GitHub (everything you need is there, but it"s tricky, you need to install all the dependant libs on Pi, map the Pi as a shared directory on Linux, then cross compile from there).
I"m sure a prebuilt version will be published soon.

I do have some code for standalone AirPlay, but it needs a little TLC before release.

XavM
Posts: 35
Joined: Thu May 31, 2012 11:29 pm

Re: AirPlay

Thu May 31, 2012 11:37 pm

I am still looking for a way to get Video working on the RPi using the AirPlay-v2 Protocol.
No luck so fare.

If you are interested in having sound only (AirPlay-v1 aka AirTunes), I have been able to make it work easily using Shairport with the debian distro (debian6-19-04-2012).

Works fine with my iPhone, iTunes (Mac or PC), and iPad.

You will have to install git first and then clone the ShairPort repo :

apt-get install git
git clone https://github.com/albertz/shairport.git

After this step follow instructions according to : https://github.com/albertz/shairport

brucethehoon
Posts: 6
Joined: Tue Jan 10, 2012 7:01 pm

Re: AirPlay

Wed Jun 06, 2012 12:57 am

Hiya!

I installed shairport according to the post above, and am getting this result when I attempt to connect to it:

Code: Select all

[email protected]:~/shairport$ perl shairport.pl
Established under name '[email protected] 1004 on raspberrypi'
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4170:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4649:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2190:(snd_pcm_open_noupdate) Unknown PCM default
FATAL: Could not open ao device
edit: typo

XavM
Posts: 35
Joined: Thu May 31, 2012 11:29 pm

Re: AirPlay

Tue Jun 12, 2012 11:20 pm

Hi brucethehoon,

The problem is not "ShairPort" related <- You just didn't "load" the sound driver :

http://www.raspberrypi.org/phpBB3/viewt ... lsa#p98381

You should :

sudo apt-get install alsa-utils
sudo modprobe snd_bcm2835
perl shairport.pl

--------------------------------------------

Regarding AirPlay video, AirPlayer looks good for a first step : https://github.com/PascalW/Airplayer

Still need a MediaBackEnd to be written for omxplayer until some days a proper hardware acceleration gets possible with VLC : https://github.com/bbreslauer/Airplayer ... backend.py


By the way, as I was looking into the XBMC repo on GitHub, I realized that it is exactly what they are doing : They have adapted ShairPort for Audio and AirPlayer for Video
(Those Guys are excellent, aren't they ?!!)

brucethehoon
Posts: 6
Joined: Tue Jan 10, 2012 7:01 pm

Re: AirPlay

Wed Jun 13, 2012 12:14 am

so sorry! I figured this out myself, then failed to update this post. I hate when people do that! I guess I just got too excited. ;)

Of course, it segfaulted like 10 minutes later, but it was wonderland for a bit there!

Your explanation on how to get the sound drivers loaded was far better than mine would have been in any case, thank you so much!

Return to “Beginners”