maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2007 / Maemo 3 / Bora (https://talk.maemo.org/forumdisplay.php?f=23)
-   -   A2DP: Simplified Install Instructions (https://talk.maemo.org/showthread.php?t=8435)

ascherjim 2007-09-29 20:33

Re: A2DP: Simplified Install Instructions
 
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.

dabuplayer 2007-10-01 19:14

Re: A2DP: Simplified Install Instructions
 
Quote:

Originally Posted by sachin007 (Post 78453)
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

ascherjim 2007-10-01 19:44

Re: A2DP: Simplified Install Instructions
 
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?

thesandbag 2007-10-01 20:06

Re: A2DP: Simplified Install Instructions
 
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).

Serge 2007-10-01 22:28

Re: A2DP: Simplified Install Instructions
 
Quote:

Originally Posted by sachin007 (Post 78453)
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.

bmidgley 2007-10-06 01:02

Re: A2DP: Simplified Install Instructions
 
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.

shacky4 2007-10-07 12:40

Re: A2DP: Simplified Install Instructions
 
Quote:

Originally Posted by dabuplayer (Post 78912)
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?

dabuplayer 2007-10-08 09:21

Re: A2DP: Simplified Install Instructions
 
Quote:

Originally Posted by ascherjim (Post 78924)
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

dabuplayer 2007-10-08 09:24

Re: A2DP: Simplified Install Instructions
 
Quote:

Originally Posted by Serge (Post 78964)
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

Serge 2007-10-09 07:14

Re: A2DP: Simplified Install Instructions
 
Quote:

Originally Posted by dabuplayer (Post 80513)
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.


All times are GMT. The time now is 10:07.

vBulletin® Version 3.8.8