Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

MythTV AirPlay noob

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


glen.hawksworth at bigpond

Jun 23, 2012, 4:26 AM

Post #1 of 14 (1413 views)
Permalink
MythTV AirPlay noob

Hi Guys,
I just upgraded to 0.25 in the last few weeks. One of the features I'd
like to play with is the AirPlay feature...
http://www.mythtv.org/wiki/AirTunes/AirPlay
I had already read about this in anticipation of upgrading to .25 and
knew there was some configuring to change but when I went to add the
"key" both of the links in the wiki page are broken.
Can anyone help me or at least point me in the right direction to find
the key? The closest my google-fu has got me so far is to find out that
it was 'Jon Lech Johansen' that extracted it.
http://en.wikipedia.org/wiki/Remote_Audio_Output_Protocol
Thanks in advance,
Glen

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


jyavenard at gmail

Jun 23, 2012, 5:55 AM

Post #2 of 14 (1407 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On 23 June 2012 21:26, Glen <glen.hawksworth [at] bigpond> wrote:
> Hi Guys,
> I just upgraded to 0.25 in the last few weeks. One of the features I'd
> like to play with is the AirPlay feature...
> http://www.mythtv.org/wiki/AirTunes/AirPlay
> I had already read about this in anticipation of upgrading to .25 and
> knew there was some configuring to change but when I went to add the
> "key" both of the links in the wiki page are broken.
> Can anyone help me or at least point me in the right direction to find
> the key? The closest my google-fu has got me so far is to find out that
> it was 'Jon Lech Johansen' that extracted it.
> http://en.wikipedia.org/wiki/Remote_Audio_Output_Protocol
> Thanks in advance,

They probably got a take down notice from Apple and removed it...

Check the shairport project..
https://github.com/albertz/shairport/blob/master/shairport.c
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


glen.hawksworth at bigpond

Jun 24, 2012, 2:13 AM

Post #3 of 14 (1390 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

> They probably got a take down notice from Apple and removed it...
>
> Check the shairport project..
> https://github.com/albertz/shairport/blob/master/shairport.c

Thanks, but I am still a tad confused.
I found the key at the bottom of the page but in the code it appears to
be being inserted into a variable (all the "" and the \n and \).
I have tried copying and pasting it into an RAOPKey.rsa file and
removing the end of line (\n) and "" characters but when I...

shasum ~/.mythtv/RAOPKey.rsa

...I don't get 35a168eaecec4d3c31424bba54de5ca0a058c24a.
I checked the file and the first time I had left a " right at the end
but when I removed it I got yet another different sum.
What am I doing wrong?
Thanks again,
Glen

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


rongblor at googlemail

Jun 24, 2012, 6:11 AM

Post #4 of 14 (1387 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On 24/06/2012 10:13, Glen wrote:
>> They probably got a take down notice from Apple and removed it...
>>
>> Check the shairport project..
>> https://github.com/albertz/shairport/blob/master/shairport.c
>
> Thanks, but I am still a tad confused.
> I found the key at the bottom of the page but in the code it appears to
> be being inserted into a variable (all the "" and the \n and \).
> I have tried copying and pasting it into an RAOPKey.rsa file and
> removing the end of line (\n) and "" characters but when I...
>
> shasum ~/.mythtv/RAOPKey.rsa
>
> ...I don't get 35a168eaecec4d3c31424bba54de5ca0a058c24a.
> I checked the file and the first time I had left a " right at the end
> but when I removed it I got yet another different sum.
> What am I doing wrong?
> Thanks again,
> Glen

Yeah, you need to remove the "" and the \n at the end of the lines

Wierdly the last line of the key looks wrong on that link. Well
different to mine which works and I'm sure I also got from the Shairport
project.

try changing the final line of the key to:

2gG0N5hvJpzwwhbhXqFKA4zaaSrw622wDniAK5MlIE0tIAKKP4yxNGjoD2QYjhBGuhvkWKaXTyY=

Robert.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


jyavenard at gmail

Jun 24, 2012, 6:19 AM

Post #5 of 14 (1384 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On 24 June 2012 23:11, Robert Longbottom <rongblor [at] googlemail> wrote:
>
> try changing the final line of the key to:
>
> 2gG0N5hvJpzwwhbhXqFKA4zaaSrw622wDniAK5MlIE0tIAKKP4yxNGjoD2QYjhBGuhvkWKaXTyY=
>

That key works just fine as-is...

As if anyone should ever go and modify partial bits of a 2048 bits RSA key !
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


steve at x2

Jun 24, 2012, 7:20 AM

Post #6 of 14 (1382 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On Jun 24, 2012, at 6:19 AM, Jean-Yves Avenard wrote:

> On 24 June 2012 23:11, Robert Longbottom <rongblor [at] googlemail> wrote:
>>
>> try changing the final line of the key to:
>>
>> 2gG0N5hvJpzwwhbhXqFKA4zaaSrw622wDniAK5MlIE0tIAKKP4yxNGjoD2QYjhBGuhvkWKaXTyY=
>>
>
> That key works just fine as-is...
>
> As if anyone should ever go and modify partial bits of a 2048 bits RSA key !

The AirTunes wiki gives bad advice to verify the key with "sha1sum privkey.txt". The text representation can vary greatly in ways that affect the SHA1 digest of the text file but do not affect the underlying key (e.g. extra spaces at the end of the line, DOS-vs-Unix linefeeds, and various ASN1 encoding issues).

A much better way is to verify the SHA1 digest of the DER encoding of the key:

$ openssl rsa -in privkey.txt -outform der | sha1sum
writing RSA key
7a07afcdf4cbb5653318a329906afe5367cb8b13 -

which does not vary according to the various text encoding issues, and interestingly enough, gives the exact same result with or without the modification proposed above. Since the modification does not affect the DER, it must not affect the resulting key and is therefore unnecessary. But the modification does yield a text file which matches the SHA1 sum given on the AirTunes wiki.

-Steve


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


jyavenard at gmail

Jun 24, 2012, 3:53 PM

Post #7 of 14 (1379 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

Hi

On Monday, 25 June 2012, Steven Ihde wrote:

>
>
> The AirTunes wiki gives bad advice to verify the key with "sha1sum
> privkey.txt". The text representation can vary greatly in ways that affect
> the SHA1 digest of the text file but do not affect the underlying key (e.g.
> extra spaces at the end of the line, DOS-vs-Unix linefeeds, and various
> ASN1 encoding issues).
>
> A much better way is to verify the SHA1 digest of the DER encoding of the
> key:
>
> $ openssl rsa -in privkey.txt -outform der | sha1sum
> writing RSA key
> 7a07afcdf4cbb5653318a329906afe5367cb8b13 -
>
>
Hence why it's a wiki and is designed in a way so that user can update it
accordingly

Why don't you update the wiki instead?


glen.hawksworth at bigpond

Jun 26, 2012, 3:40 AM

Post #8 of 14 (1342 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

Thanks all.
I am on track now. I have just put the key in and tried to play a video
my wife took on her iphone. It brought up a "please wait" screen but
caused the frontend to crash. I am going to try with my ipod, it
actually has music and movies on it... unfortunately it is flat.
Fingers crossed.

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


davebrown099 at gmail

Jun 26, 2012, 3:56 AM

Post #9 of 14 (1338 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On Tue, Jun 26, 2012 at 11:40 AM, Glen <glen.hawksworth [at] bigpond> wrote:

> Thanks all.
> I am on track now. I have just put the key in and tried to play a video
> my wife took on her iphone. It brought up a "please wait" screen but
> caused the frontend to crash. I am going to try with my ipod, it
> actually has music and movies on it... unfortunately it is flat.
> Fingers crossed.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>

if you get any probs just check frontend logs for clues. I couldnt get it
to work initially but updating to the latest solved my problems.
Airplays awesome, Ive got it working off my andriod phone with third party
app.
Does anyone know if there are plans to include images too?


jyavenard at gmail

Jun 26, 2012, 4:11 AM

Post #10 of 14 (1342 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On 26 June 2012 20:40, Glen <glen.hawksworth [at] bigpond> wrote:
> Thanks all.
> I am on track now. I have just put the key in and tried to play a video
> my wife took on her iphone. It brought up a "please wait" screen but
> caused the frontend to crash. I am going to try with my ipod, it
> actually has music and movies on it... unfortunately it is flat.
> Fingers crossed.

you only need the RSA key for playing audio.
You do not need a key to play video+audio However, you do need to
start mythfrontend with MYTHTV_AIRPLAY=1 env variable set

Read the wiiki entry: you can't play DRMed video. So any videos you
have on your iPhone that you downloaded for the iTunes store: you
can't play them
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


glen.hawksworth at bigpond

Jun 26, 2012, 4:13 AM

Post #11 of 14 (1344 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

> On Tue, Jun 26, 2012 at 11:40 AM, Glen <glen.hawksworth [at] bigpond>
> wrote:
> Thanks all.
> I am on track now. I have just put the key in and tried to
> play a video
> my wife took on her iphone. It brought up a "please wait"
> screen but
> caused the frontend to crash. I am going to try with my ipod,
> it
> actually has music and movies on it... unfortunately it is
> flat.
> Fingers crossed.


> if you get any probs just check frontend logs for clues. I couldnt
> get it to work initially but updating to the latest solved my
> problems.
> Airplays awesome, Ive got it working off my andriod phone with third
> party app.
> Does anyone know if there are plans to include images too?

Just successfully played music from my ipod, AWESOME! Cheers Dave, can
you give me the name of the Android App you use, I am an Android man
myself, just bought the ipod to test ipod/iphone integration with CCTV
systems.

I agree, images would be a plus, I tried playing a slideshow from my
ipod and it didn't work. It would be a huge WAF boost she takes lots of
photos on her phone.

I tried a movie from my ipod and it failed (a couple of frames appeared
with "seeking" up the top and then it locked up), just realised I only
have one movie on there and I'm pretty sure it is DRM because it came as
a free digital copy with my blu-ray. I may test more later but music is
a huge plus, I'll possibly forget mythmusic now.

Thanks again,
Glen


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


glen.hawksworth at bigpond

Jun 26, 2012, 4:36 AM

Post #12 of 14 (1336 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

> you only need the RSA key for playing audio.
> You do not need a key to play video+audio However, you do need to
> start mythfrontend with MYTHTV_AIRPLAY=1 env variable set
>
> Read the wiiki entry: you can't play DRMed video. So any videos you
> have on your iPhone that you downloaded for the iTunes store: you
> can't play them

Yep, got that. Do you need to set that variable every time? Can I put
MYTHTV_AIRPLAY="1" into /etc/mythtv/session-settings?

Is the wiki section "Permanently Enabling in OSX Finder" to do with
permanently setting MYTHTV_AIRPLAY in a frontend? What is OSX Finder?
Isn't it a browser?

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users


davebrown099 at gmail

Jun 26, 2012, 5:03 AM

Post #13 of 14 (1341 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

On Tue, Jun 26, 2012 at 12:36 PM, Glen <glen.hawksworth [at] bigpond> wrote:

> > you only need the RSA key for playing audio.
> > You do not need a key to play video+audio However, you do need to
> > start mythfrontend with MYTHTV_AIRPLAY=1 env variable set
> >
> > Read the wiiki entry: you can't play DRMed video. So any videos you
> > have on your iPhone that you downloaded for the iTunes store: you
> > can't play them
>
> Yep, got that. Do you need to set that variable every time? Can I put
> MYTHTV_AIRPLAY="1" into /etc/mythtv/session-settings?
>
> Is the wiki section "Permanently Enabling in OSX Finder" to do with
> permanently setting MYTHTV_AIRPLAY in a frontend? What is OSX Finder?
> Isn't it a browser?
>
>
> Im using mythbuntu and put MYTHTV_AIRPLAY="1" in /etc/enviroment

Im using imediashare lite which is free. There are couple of others which
you can pay for.


nigel at ind

Jun 26, 2012, 8:06 PM

Post #14 of 14 (1347 views)
Permalink
Re: MythTV AirPlay noob [In reply to]

> Message: 2
> Date: Tue, 26 Jun 2012 21:36:51 +1000
> From: Glen <glen.hawksworth [at] bigpond>
> To: Discussion about MythTV <mythtv-users [at] mythtv>
> Subject: Re: [mythtv-users] MythTV AirPlay noob
> Message-ID: <1340710611.1980.25.camel [at] glen-HP-Mini-210-400>
> Content-Type: text/plain; charset="UTF-8"
>
>> you only need the RSA key for playing audio.
>> You do not need a key to play video+audio However, you do need to
>> start mythfrontend with MYTHTV_AIRPLAY=1 env variable set
>>
>> Read the wiiki entry: you can't play DRMed video. So any videos you
>> have on your iPhone that you downloaded for the iTunes store: you
>> can't play them
>
> Yep, got that. Do you need to set that variable every time? Can I put
> MYTHTV_AIRPLAY="1" into /etc/mythtv/session-settings?
>

Glan asked:

> Is the wiki section "Permanently Enabling in OSX Finder" to do with
> permanently setting MYTHTV_AIRPLAY in a frontend?

A Mac OS X frontend machine
(i.e. a Mac that is running the frontend by double-clicking the binary),
instead of a Linux machine (from a XTerm).

Should probably be instructions for various Linux window managers, too.


> What is OSX Finder?
> Isn't it a browser?

A file manager. Like Windows Explorer, GNOME, KDE, Fluxbox, et c.


--
Nigel Pearson, nigel [at] ind| All science is |
Telstra Net. Eng., Sydney, Australia | either Physics |
Office: 8576 5449 Fax: 9298 9033 | or stamp collecting! |
Mobile: 0408 664435 Home: 9792 6998 | - Rutherford |




_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://www.mythtv.org/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.