public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] a2dpd and mplayer - any chance to get it working? [resent]
@ 2007-01-15 19:10 Robert Huitl
  2007-01-15 19:50 ` Brad Midgley
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Huitl @ 2007-01-15 19:10 UTC (permalink / raw)
  To: bluez-devel

Hi,

I was wondering whether it is possible to make the a2dp alsa plugin supply 
correct audio timing to applications like MPlayer. Right now, MPlayer does 
not work with a2dpd because it relies on the audio driver to report accurate 
audio timing information (or something like that).

If a2dpd could measure the delay introduced on the wireless transport, it 
might be possible to supply timing information to media players. The player 
could then sync the video to the audio data, so there should be no delay at 
all between audio and video playback.

Is there something I am missing?
What changes to the alsa plugin would be necessary?

Even if the delay can't be determined exactly, we could just fake that 
information MPlayer is missing, so that a2dpd at least worked together with 
MPlayer (with a small delay, maybe)?

Regards,
  Robert

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] a2dpd and mplayer - any chance to get it working? [resent]
  2007-01-15 19:10 [Bluez-devel] a2dpd and mplayer - any chance to get it working? [resent] Robert Huitl
@ 2007-01-15 19:50 ` Brad Midgley
  0 siblings, 0 replies; 2+ messages in thread
From: Brad Midgley @ 2007-01-15 19:50 UTC (permalink / raw)
  To: BlueZ development

Robert

> I was wondering whether it is possible to make the a2dp alsa plugin supply 
> correct audio timing to applications like MPlayer. Right now, MPlayer does 
> not work with a2dpd because it relies on the audio driver to report accurate 
> audio timing information (or something like that).
> 
> If a2dpd could measure the delay introduced on the wireless transport, it 
> might be possible to supply timing information to media players. The player 
> could then sync the video to the audio data, so there should be no delay at 
> all between audio and video playback.
> 
> Is there something I am missing?
> What changes to the alsa plugin would be necessary?
> 
> Even if the delay can't be determined exactly, we could just fake that 
> information MPlayer is missing, so that a2dpd at least worked together with 
> MPlayer (with a small delay, maybe)?

we have a couple of things to address here.

For one, the delay can change over time. It might be 250ms on startup
but if I walk out of range and come back then all the transmission
problems have caused it to go up to 400ms.

Another is the delay likely varies from set to set.

We could start with a guess like 300ms and see how that covers it. If
lib alsa provides what we need, it's probably a snd_pcm_hw_params_set_*
function to be invoked in a2dpd_output_alsa.c.

Brad

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-15 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 19:10 [Bluez-devel] a2dpd and mplayer - any chance to get it working? [resent] Robert Huitl
2007-01-15 19:50 ` Brad Midgley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox