public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: Colin Guthrie <gmane@colin.guthr.ie>
To: alsa-devel@alsa-project.org
Subject: Re: ALSA and MP3
Date: Thu, 13 Aug 2009 10:23:49 +0100	[thread overview]
Message-ID: <h60m38$hkk$1@ger.gmane.org> (raw)
In-Reply-To: <8aaaf9230908130118hec83f4awe28fb5e53b5e02a6@mail.gmail.com>

'Twas brillig, and gammay at 13/08/09 09:18 did gyre and gimble:
> Hello,
> I am looking at making this product use case possible:
> Audio samples are streamed over wire/wireless from a source device to a sink
> device. The streaming format is in mp3. On the source device I need to
> capture locally played mp3 samples and stream to the sink device. The sink
> device takes care of uncompressing and playback.
> 
> Can we capture compressed mp3 streams directly using ALSA? It is possible to
> capture uncompressed PCM samples using file plug or by other means in
> ALSA. While it is possible to directly read from the mp3 file, I would
> rather grap the samples that a media player sends out because a) it takes
> care of timing b) I can control the media player to play/pause the stream
> and for playlist management. For the user it is transperent - he/she will
> use only the local media player to control the streaming.
> 
> I am not sure if this lies in the domain of ALSA at all - as I understand
> once we are in ALSA we are dealing with only PCM. In such case, please give
> me some pointers where I can look at to make this possible. I am using
> mplayer, but can also look at other types (non-GUI, command-line based). Can
> we do this in a non-media player specific way?

Sounds like something that is much more in the gstreamer domain I think.

For general purpose interaction with network devices generally for 
desktop audio systems, pulseaudio is more appropriate (it already 
interacts with UPnP devices, native pulseaudio servers and Apple RAOP 
Airtunes devices over the network). It does not deal with codecs at 
present however, but some kind of work in that area will probably have 
to be done eventually (tho' it wont do any encoding/decoding by itself - 
it would always hand over to e.g. gstreamer for this job).

Jump on IRC and have a chat over at #gstreamer or #pulseaudio for 
inspiration.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
   Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
   Mandriva Linux Contributor [http://www.mandriva.com/]
   PulseAudio Hacker [http://www.pulseaudio.org/]
   Trac Hacker [http://trac.edgewall.org/]

      reply	other threads:[~2009-08-13  9:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-13  8:18 ALSA and MP3 gammay
2009-08-13  9:23 ` Colin Guthrie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h60m38$hkk$1@ger.gmane.org' \
    --to=gmane@colin.guthr.ie \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox