Reply
Thread Tools
Posts: 450 | Thanked: 16 times | Joined on Mar 2006
#61
I strongly support Sachin's query. I have successfully been using his excellent method for listening to internet radio music with Bluetooth headphones, through incorporating Kagu and Xterm. While I certainly share with him his appreciation for Kagu, it would be nice not to have to go through that additional step of bringing-up Kagu solely to be able in this regard to utilize a2dp for the Bluetooth headphone internet radio reception.
 
Posts: 13 | Thanked: 1 time | Joined on Sep 2007
#62
Originally Posted by sachin007 View Post
hey serge,

Is it possible to setup a2dp without the use of kaju? If someone can seperate kaju and a2dp giving the a2dp function as a seperate function it would reduce the cpu load and allow us to do something else like browsing etc while listening to a2dp via streaming radio. I am not saying that kaju is bad infact it is great but we dont need the kaju interface when we are listening to internet radio via mplayer and a2dp. For the regular songs in the memory cards kaju works like a charm..... just wanted to ask

thanks
i have a player almost ready for this. It works with libmad, so decoding mp3s on n770 takes 10-15% processor, and uses alsa for the output - so it should work with a2dp. It's done in C and it's very fast, takes max 20% cpu, but has some skipping whenever another app takes too much cpu.
I'm working on it, problem is the alsa buffer is very small - 4KB, so I need a lot of pooling to keep it full.

It will have visualizations and EQ support later, now i try to make the playlist usable, and lower the cpu as much as possible.

I could post the n770 mplayer with alsa and mp3 support if there is demand, but it's not very usefull with Kagu just yet on n770.

cheers
 
Posts: 450 | Thanked: 16 times | Joined on Mar 2006
#63
Dabuplayer: I'm not certain I understand. I (we) want to use Bluetooth headphones to listen to internet radio WITHOUT going through Kagu. Will your hack enable us to do that?
 
Posts: 18 | Thanked: 0 times | Joined on Jul 2007
#64
I don't know if this has happened to anybody else but i found that i had to unpair my logitec freepulse II headphones from the n800 after setting his up. Up until this point i could get it to link up to the n800 but magically the moment i unpaired it work flawlessly (breaks up occasionally but far less than it did with my Sony Ericson Walkman phone).
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#65
Originally Posted by sachin007 View Post
hey serge,

Is it possible to setup a2dp without the use of kaju?
I'm not the best person to answer this question (as I already said, I don't have bluetooth headset myself, so can't test A2DP stuff). I only suggested that if any extra options are required in garage mplayer package to make it more useful, it can be done Earlier we evaluated the possibility for ALSA enabled mplayer build for Nokia 770, but nobody was interested at that time.

Also if optimizations to MP3 decoder running on ARM core are needed to lower cpu load and save battery, they could be done too. Alternatively we can investigate the possibility of running MP3 decoder on DSP, but that's probably harder and the result is not guaranteed.
 
Posts: 6 | Thanked: 0 times | Joined on Mar 2006
#66
FYI, the latest bluez-utils (3.20) has some optimization work I did on the encoder. At least on paper, it has 35% (8 subbands) to 50% (4 subbands) fewer multiplies inside the inner loop. If the compiler hadn't already figured out these optimizations itself then the encoder should be much easier on the cpu and battery life.
 
Posts: 81 | Thanked: 3 times | Joined on Jul 2007
#67
Originally Posted by dabuplayer View Post
i have a player almost ready for this. It works with libmad, so decoding mp3s on n770 takes 10-15% processor, and uses alsa for the output - so it should work with a2dp. It's done in C and it's very fast, takes max 20% cpu, but has some skipping whenever another app takes too much cpu.
I'm working on it, problem is the alsa buffer is very small - 4KB, so I need a lot of pooling to keep it full.

It will have visualizations and EQ support later, now i try to make the playlist usable, and lower the cpu as much as possible.

I could post the n770 mplayer with alsa and mp3 support if there is demand, but it's not very usefull with Kagu just yet on n770.

cheers
MORE INFO PLEASE! It sounds great. I have a 770 with the latest 2007 HE. I'm thinking this would work for me?
 
Posts: 13 | Thanked: 1 time | Joined on Sep 2007
#68
Originally Posted by ascherjim View Post
Dabuplayer: I'm not certain I understand. I (we) want to use Bluetooth headphones to listen to internet radio WITHOUT going through Kagu. Will your hack enable us to do that?
I misread what you said about radio.
So what I do basically is a mp3 player that will take very few resources, will know about a2dp, have some basic playlist and eq, and will enable 770 users to use bt headsets while doing some other stuff.
The player is coded in C and so far it's pretty fast.
I'm quite busy at work so it's going sloow, and there are a lot of distractions in barcelona :P

But it will be out, cause I need it
 
Posts: 13 | Thanked: 1 time | Joined on Sep 2007
#69
Originally Posted by Serge View Post
I'm not the best person to answer this question (as I already said, I don't have bluetooth headset myself, so can't test A2DP stuff). I only suggested that if any extra options are required in garage mplayer package to make it more useful, it can be done Earlier we evaluated the possibility for ALSA enabled mplayer build for Nokia 770, but nobody was interested at that time.

Also if optimizations to MP3 decoder running on ARM core are needed to lower cpu load and save battery, they could be done too. Alternatively we can investigate the possibility of running MP3 decoder on DSP, but that's probably harder and the result is not guaranteed.
it would be great to release mplayer with alsa and mp3 (preferably libmad) support. I don't think it increases the size too much, and it's quite useful for a lot of people
 
Posts: 503 | Thanked: 267 times | Joined on Jul 2006 @ Helsinki
#70
Originally Posted by dabuplayer View Post
it would be great to release mplayer with alsa and mp3 (preferably libmad) support. I don't think it increases the size too much, and it's quite useful for a lot of people
Alternatives are good, so probably libmad will be enabled in the next build of garage mplayer. But libmad has problems with audio/video sync on playing some video files, so it is not very useful for video. And also ffmp3 is potentially a lot faster than libmad if optimized for armv5te (right now it does not have any assembly optimizations except for a few minor macros vs. extensive armv4 assembly optimization of libmad). On x86 desktop PC, ffmp3 can run circles around libmad I initially evaluated the possibility of doing some armv5te optimizations for ffmp3, but getting nokia dsp mp3 decoder to work with mplayer made it less important at that time. So what we have now is that unoptimized ffmp3 decoder is about 20% slower than libmad on Nokia 770 (at least my benchmarks showed this difference).

ALSA support is a bit more difficult as OS2006 does not have ALSA preinstalled.

Last edited by Serge; 2007-10-09 at 07:24.
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:58.