[vlc-devel] Public API : Is there a way to access to the sound data

Rémi Denis-Courmont rem at videolan.org
Sat Mar 27 23:16:44 CET 2010


On Saturday 27 March 2010 21:42:58 Antonin Delpeuch, you wrote:
> Hi all,
> 
> I'm using libvlc to play a MP3 stream : it works fine, and I've been
> surprised by the quality of this API. Now, I'd like to access to the
> stream data (decoded sound) in real time, in order to compute some
> results with it. But I didn't found any function in the documentation
> that would allow me to do this : I think the API is too high level to
> provide this kind of features.
> 
> A few questions :
> - Is there a way to create a new virtual audio output that would capture
> the sound for me, and then register it into VLC instances in order to
> use it like any other interface ?

transcode:smem in a stream output chain could do that. Another option is to 
configure the file audio output and direct it to a named pipe.

> - Can I keep a classic audio output when using such an interface ? In
> other words, is it possible to play simultaneously on two interfaces ?

transcode:duplicate{dst=display,dst=smem} then but I would expect slight 
synchronization issues.

> - Or can I use a lower level interface to VLC's features ?
> - Or do you know another library or toolkit that would enable me to do
> all this ?

Nope.

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list