espes / Slave-in-the-Magic-Mirror

Open source implementation of AirPlay Mirroring. WIP.
610 stars 122 forks source link

really slow #9

Open wilsonlmh opened 8 years ago

wilsonlmh commented 8 years ago

It's really hard to install dependencies but I did it! However, it incredibly slow! init Fairplay SAP usually took 30seconds and almost 3minutes for whole negotiation. My iphone just stop streaming! Actually I had never see the mirroring video but the VLC did appear.(maybe it works but my iphone cant wait) I don't know python I can't modify. But I realize lots of lazy load mechanism in runtime. So are there something cacheable/preloadable/reuseable? My linux box is a bit slow but the airplay mirroring on windows working well. So I think improvement can be done :)

Share how I get it works, it needs: (install by apt-get) libssl-dev libffi-dev python-dev

download pypy 2.6+ manually(maybe you need to create symlink) and install pip by following way:

curl -O http://python-distribute.org/distribute_setup.py
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
pypy distribute_setup.py
pypy get-pip.py

now you meet the requirement for what readme.md says:"pypy with pip" so you can install other things described in readme(don't forget vlc). Oh, about airtunesd, it locate in /usr/libexec/airtunesd of the root dmg. You maybe need the key:

https://ipsw.me/keys/AppleTV2,1/9A334v

And, decrypt with (second method with ./dmg):

http://www.ifans.com/forums/threads/how-to-decrypt-and-extract-ios-files-from-firmware-files.379262/

what?all done but not using Mac? ok just run get-airtunesd.py. I provide the method just in case you got error while using get-airtunesd.py

I'm not a big fan of gcc/python or *nix style compiling. It's not recommended for normal user to try. maybe espes you can copy some of my text above into readme.md to make it more detail?