LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can ogg-files be created during recording? (https://www.linuxquestions.org/questions/linux-software-2/can-ogg-files-be-created-during-recording-221475/)

Li... 08-23-2004 05:35 PM

can ogg-files be created during recording?
 
Hi,

is a programm out there which can do the follwing for me:
I want to record music from a digital satelite receiver via on-board sound-card (c-media).
The sound comes analogue in and the recording programm shold be able to encode it directly into OGG-format without creating a temporary (huge) uncompressed wav-file or similar. The reason for that is, that I"m not sure that there's enough disk space left to save audio-data uncompresed on my hard disk and I prefer OGG format.

Any hints welcome.

Li

foo_bar_foo 08-23-2004 11:40 PM

i haven't done this so this is just theoretical (meaning it won't work without experimenting with the switches
if it will work at all)

seems like you could use a command line .wav recorder and pipe the results to SoX
this is just a wild guess on the command (arecord is if you are using ALSA sound driver)



possibly :
arecord -f cd -t wav file.wav | sox -t wav -r 44100 -s -w -c 2 file.ogg

-f cd in arecord is 16bit little endian[-f S16_LE -c2 -r44100]
-w in sox if for 16bit
-s in sox is signed linear

also posibly sound-recorder ???

sound-recorder -c 2 -b 16 -P file.wav | sox -t wav -r 44100 -s -w -c 2 file.ogg


this shouldn't actually make the wav file

good luck

Li... 08-25-2004 03:52 PM

Thanks for your tip.

I would try it out in the next few days. Currently I haven't a analogue cable for line-in. Yesterday I've build a S/PDIF cable but I've checked out that the S/PDIF port is only for outgoing signals. So I can't use the digital way, normally analogue with noises more or less.....

The redirection could be the solution but I think only when the system is currently not very busy.
I'll try it the next days.

Li


All times are GMT -5. The time now is 12:18 PM.