Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-23-2004, 06:35 PM   #1
Registered: Feb 2004
Posts: 31

Rep: Reputation: 15
Smile can ogg-files be created during recording?


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.

Old 08-24-2004, 12:40 AM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
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

Last edited by foo_bar_foo; 08-24-2004 at 12:46 AM.
Old 08-25-2004, 04:52 PM   #3
Registered: Feb 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Icon Previews for Ogg Files? guitarfella Slackware 1 05-21-2005 01:01 PM
How can I FLAC/Ogg files from their CDDA disc-id? orangejon Linux - Software 1 05-20-2005 03:14 AM
opening ogg files in nautilus geniarse Linux - Software 2 09-04-2004 10:57 AM
Changing Ogg to Mp3 files Joe47 Fedora 1 06-27-2004 05:21 AM
Convert ogg to mp3 files? m0rl0ck Linux - Software 5 12-11-2003 02:04 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration