Help - Search - Members - Calendar
Full Version: Linux API Needed - on the fly compression
Hydrogenaudio Forums > Lossy Audio Compression > MPC
thudmeister
I have looked at many of the compression products and they are all based on compressing files. Here is what I need, can anyone suggest something?

Platform:
Linux/Fedora Core 2
Intel based PC
ALSA
Soundblaster 128 PCI

I am reading audio data from the sound card. I need to compress the data and put it in a message queue. There is another piece of software that reads the compressed audio data from the queue and sends that comressed data to a server. The server stores the compressed audio data for playback at a later time. When playback occurs, the data is uncompressed if the player does not understand the compressed data.

So you see, using disk files is a large waste of time and resources and I would like to avoid having to write the raw data to a file, convert the file to a comressed file, then reading the file so I can send it (or sending the filename) to another program.

Any products available for me? You can contact me directly - jerry.craft@titan.com
Compholio
QUOTE(thudmeister @ Jul 8 2004, 09:12 AM)
So you see, using disk files is a large waste of time and resources and I would like to avoid having to write the raw data to a file, convert the file to a comressed file, then reading the file so I can send it (or sending the filename) to another program.


How about you just create a folder that's a ramdisk (stores the files in RAM instead of on the hard-drive) and put your files there?
cabbagerat
It would be easy to write a GStreamer program to stream sound from the sound card, compress it and write it out to file. As far as I know, GStreamer currently has encoding support for LAME, Vorbis, FLAC and maybe some others.
gstreamer.net

QUOTE
You can contact me directly - jerry.craft@titan.com

This sort of thing is generally considered rude on boards like this one, as it makes the thread useless for future visitors.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.