maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   A Working Pianobar for maemo 5!! (https://talk.maemo.org/showthread.php?t=86342)

getnani 2012-08-28 07:56

A Working Pianobar for maemo 5!!
 
Since pyradio has not been working for a long time-

http://talk.maemo.org/showthread.php?t=56036

I decided to have a go at making/compiling the famous Pandora Linux CLI - pianobar work in maemo 5.

In short, it works great- to our luck, it works even better.

the good thing about this is that pianobar CLI software (linux mac desktop sw) has a bigger audience and the chance that it would be deserted is very very slim. (No offence to pyRadio. I can understand ppl have to move on. I cant blame anybody except stupid "NOKIA" who recklessly abandoned the precious maemo 5. )

I am just jotting all the procedure in a very brief way. Not sure if anybody is interested. Not sure how many n900 users out there who still use it as a daily device. But happy to help anyone who wants this installed. Even happy to detail each process if anyone interested. Just post in this thread and you will get a reply. I can even attach binaries/ lib files.Let me know.

But I do strongly suggest get this compilation done. That way you become independent and can make / compile/ install future versions on pianobar without any assistance.

we need to install following dependencies before installing pianobar:

1. build-essential
2. libao/ dev
3. libfaad2/ dev ****
4. libmad/ dev
5. pthreads
(Search for the packages using 'apt-cache search', as i dont remember the full package names.)

**** unfortunately the prepackaged libfaad2 doesn't work with pianobar. Though you can compile pianobar without it, unless u r pandora one subscriber, it doesnt support/ play mp3 format. which means we need to get this libfaad2 work inorder to support aac format..

u can compile new libfaad2 (must be compiled without DRM - check the INSTALL file in source for further instructions), getting the source from
http://www.audiocoding.com/downloads.html (use tar.gz)
one trick is that you need to uninstall/purge the prepackaged libfaad2 (if u have already installed) before compiling and installing them. If you don't, then you can expect this:
http://talk.maemo.org/showpost.php?p...&postcount=225

Make sure you "make install" the files in /usr/lib and not /usr/local/lib OR you create a symlink for /usr/local/lib/libfaad* in /usr/lib/ OR u can include this path in ldconfig, whichever is easier.


NOW, Download pianobar src from the git
https://github.com/PromyLOPh/pianobar

Compiling should be a breeze.

run the 'pianobar' binary to checkout how beautiful this thing works on ur n900.
people who use tor can/ rather should use the control_proxy option

control_proxy = http://127.0.0.1:8118/

in the config file. it is a lot faster than using 'torify pianobar'. Infact using the torify is not practicaly useable. audio is totally cluttered no matter how low the audio quality is set-to. the details regd config are in the contrib folder in pianobar src

scrobbling to lastfm works fine as well, including now playing.
use the latest pylast.py and the scrobble.py from the contrib folder in piano source.

the py files need to be modded to support 2.5 python. That is a pain. I can upload those 2 modded files if anyone interested.

I have been using this app like mad cow for the past 3 days. So far no issues at all. and happy that i got my 'one of fav apps' back in a even better way to my n900-

Frankly, so far- in the last 3 yrs, i haven't been impressed with another mobile which can outdo this maemo 5 OS!! especially when it comes to work. happy that i could get back this Pandora Radio back!!

fatalsaint 2012-08-28 14:48

Re: A Working Pianobar for maemo 5!!
 
This is what I used to do.. and pyPianobar was just a front-end for pianobar. It's possible if you got a working pianobar, the old pyPianobar might still work as a front-end.. though it was buggy.

Thanks for getting these guys Pandora again in some form. I'd honestly look at pyRadio again.. but the problem is the upkeep. Since I don't use the N900 at all anymore; theres not much reason to keep going with it.

The issue is Pandora.. they change crap every couple weeks to couple months so you'll be constantly recompiling pianobar, or in my case - fixing pyRadio again, and again. I wish there was an open API for it.

rfeese 2012-08-28 15:04

Re: A Working Pianobar for maemo 5!!
 
I've compiled pianobar for my own use as well. However, I was disappointed in the performance (seems to eat the battery).

I think that it would be good if we could hook it up to gstreamer to get hardware acceleration if possible. It would be nice if someone would figure out how do do this with libpiano so that frontends could be built against that and then we would just need to maintain libpiano. And maybe someone should try to port the "Pithos" frondend. Not sure how possible/difficult all this would be.

getnani 2012-08-28 15:14

Re: A Working Pianobar for maemo 5!!
 
u sure, pianobar is eating up battery? I actually use it via TOR-proxy / 3G connection. Mine seems to be normal. I mean u can expect battery consumption, considering that it is using 3G, plus playing audio. But not something alarming. have u used powertop and other tools to analyze battery usage??

Applesaws 2012-09-15 22:23

Re: A Working Pianobar for maemo 5!!
 
Could you guys post your compiled pianobar binaries? I tried doing it myself, but I just get lost in dependency hell:mad:...

miri 2012-09-15 22:56

Re: A Working Pianobar for maemo 5!!
 
Why do you need PyRadio when you can download
SOUNDTRACKER RADIO from Ovi Store and is for FREE.
It is way superior to Pandora NO COMMERCIALS and great DB.

getnani 2012-09-16 00:58

Re: A Working Pianobar for maemo 5!!
 
@miri, I would love a soundtracker app for n900. can u post the link which supports n900?

@Applesaws, will post it soon matey

getnani 2012-09-16 06:26

Re: A Working Pianobar for maemo 5!!
 
4 Attachment(s)
I have attached 4 zip files.

It has libfaad and pianobar.

you need to replace the existing libfaad files with this.

in case the pianobar doesn't fire up properly, try 'ldd pianobar'
this should tell us if we miss any dependencies.

by the way, what problems you have compiling.
If you can discuss the issues, i am sure we can solve it.
Believe me, that is the best solution u have matey!

klinglerware 2012-09-16 15:41

Re: A Working Pianobar for maemo 5!!
 
Quote:

Originally Posted by getnani (Post 1267158)
@miri, I would love a soundtracker app for n900. can u post the link which supports n900?

:p



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

DrKlaw 2012-10-10 01:43

Re: A Working Pianobar for maemo 5!!
 
Before diving into this I thought I might ask:

I got pianobar sort-of working through Easy Debian but the sound stutters like cazy. Has anyone tried this and fixed it? It has the advantage of a simple update process.

Thanks

getnani 2012-10-10 10:00

Re: A Working Pianobar for maemo 5!!
 
I use it almost daily for 2 hrs+ with default sound quality, since i stream it mainly over 3g. havent ever got these issues, unless poor reception when i travel in remote areas. tried doing the same with high sound quality, doesnt stutter. With wifi, which i do very rare, it has no issues, provided not using bluetooth.

NB: If you use bluetooth and wifi, it will stutter, no matter what app u use to listen music/voice. I believe you are not mentioning this issue. and I guess this is like a basic hw issue prevalent in most devices

DrKlaw 2012-10-10 13:17

Re: A Working Pianobar for maemo 5!!
 
Quote:

Originally Posted by getnani (Post 1278725)
I use it almost daily for 2 hrs+ with default sound quality, since i stream it mainly over 3g. havent ever got these issues, unless poor reception when i travel in remote areas. tried doing the same with high sound quality, doesnt stutter. With wifi, which i do very rare, it has no issues, provided not using bluetooth.

NB: If you use bluetooth and wifi, it will stutter, no matter what app u use to listen music/voice. I believe you are not mentioning this issue. and I guess this is like a basic hw issue prevalent in most devices

You are talking about the version you compiled for n900, right? The one I am talking about is pulled down via the Easy Debian chroot. It is easy to pull down and update via Synaptic.

getnani 2012-10-13 21:03

Re: A Working Pianobar for maemo 5!!
 
Yes I am talking about the one compiled for n900. I wouldnt have a clue about the easy debian on n900!! Sorry

DrKlaw 2012-11-15 12:48

Re: A Working Pianobar for maemo 5!!
 
Hello,

I got this to work! (Your way, not through EasyDebian.) I had to install a few other packages, like an update to grep, for instance, to get libfaad2 to configure and compile, but it all worked out very well. Thanks!

getnani 2012-11-15 14:04

Re: A Working Pianobar for maemo 5!!
 
Great... I am sure n900 users who are used to pandora will find it very difficult after pyRadio stopped working. We are at least very lucky to have a SW/ sourcecode that is compilable/ terminal based and that has dependencies which can be easily installed in maemo!! and most importantly widely used and constantly updated!!! Thank u pianobar!!

DfLo1913 2012-11-15 19:00

Re: A Working Pianobar for maemo 5!!
 
Any chance this is going to be available in Devel?

getnani 2012-11-15 19:08

Re: A Working Pianobar for maemo 5!!
 
I am not sure how we can do this??!!! I mean we just compiled pianobar source from their website, after compiling a dependency. I am happy if someone can maintain this!

DfLo1913 2012-11-15 19:18

Re: A Working Pianobar for maemo 5!!
 
That would be awesome and easy for everyone to get. I wish I knew how. Miss pandora on my N900.

DfLo1913 2012-11-15 19:35

Re: A Working Pianobar for maemo 5!!
 
Anyone that could help?

DfLo1913 2012-11-15 21:29

Re: A Working Pianobar for maemo 5!!
 
I guess not?

getnani 2012-11-16 13:26

Re: A Working Pianobar for maemo 5!!
 
the easiest thing I can do is, just zip the files and post. since not many n900 users are there, I guess making it a deb/ and uploading to repository may not be worth it.

Actually only once you install the libfaad files; then u only need to update one file whenever the pianobar is updated.

I suggest you download those zip files and get it working. If any issues post them. the best I can do is post the pianobar executable everytime a new version is released.

DfLo1913 2012-11-16 17:52

Re: A Working Pianobar for maemo 5!!
 
Thanks and Im going to give it a try. Only if someone had some interest in getting pandora back on the N900. Thanks again.

DfLo1913 2012-11-16 18:57

Re: A Working Pianobar for maemo 5!!
 
What gets to me is that there is someone working on the Siri Clone but we dont even have Pandora. Come on now.

klinglerware 2012-11-16 20:23

Re: A Working Pianobar for maemo 5!!
 
Quote:

Originally Posted by DfLo1913 (Post 1295035)
What gets to me is that there is someone working on the Siri Clone but we dont even have Pandora. Come on now.

To be fair, Pandora is a US-centric site. The Nokia N900 has a very limited US footprint. Naturally, one cannot expect to get people excited in something that isn't available to the majority of the user base (at least without utilizing a proxy)

DfLo1913 2012-11-16 21:03

Re: A Working Pianobar for maemo 5!!
 
Quote:

Originally Posted by klinglerware (Post 1295067)
To be fair, Pandora is a US-centric site. The Nokia N900 has a very limited US footprint. Naturally, one cannot expect to get people excited in something that isn't available to the majority of the user base (at least without utilizing a proxy)

I guess It might be time to get another device with US Support then. It would be nice to be able to watch Netflix and listen to Pandora on my phone. Why would I care for a Siri clone? Why not just get an Iphone then?

DfLo1913 2012-11-19 17:16

Re: A Working Pianobar for maemo 5!!
 
No interest by anyone?

getnani 2012-11-20 02:51

Re: A Working Pianobar for maemo 5!!
 
Does anyone know how to get around this issue:
silent mode mutes music played by pianobar...

Some guys talks about setting a symlink to FMRadio to solve it (look below):
https://bugs.maemo.org/show_bug.cgi?id=6694

However I don't seem to be able to get it done. Does anyone have any experience with this? if so how? @fatalsaint !!! please help man!

@fatalsaint, i remember you telling that it can be used with Pypianboar to get it working. If so would I be able to get over this issue. I am pretty sure I had no issues with PyRadio. How did u fix it?!

DfLo1913 2012-11-24 06:02

Re: A Working Pianobar for maemo 5!!
 
Anybody interested in helping get Pandora back on the N900 for everyone? Thanks

DfLo1913 2012-11-29 16:53

Re: A Working Pianobar for maemo 5!!
 
Any luck Getnani?


All times are GMT. The time now is 14:16.

vBulletin® Version 3.8.8