LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-24-2002, 10:53 AM   #1
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 63
Audio input compressed 'on-the-fly'?


Is there a way to compress audio input directly into mp3/ogg files? I want to record some stuff from the radio late at night (using mix/aux in - no radio card in my box ) but don't want 2 or 3 hours of WAV file on my hd, hence was wondering about ogg compression 'on-the-fly' as it were.

Any ideas?

Cheers muchly.
 
Old 03-24-2002, 01:35 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
ok ok... i've been fiddling with this for what.. 2 hours now i guess... and the only thing i've defintelly sussed out is that if you get sox from source, it can record to ogg from line-in. i've tried it, and it's absolutely crap quality, but i presume there's prolly a way to make it nicer.

there's record, part of xawtv, which record REALLY nicely with ncurses console gui to wav.

lame, which can encode FROM stdin, BUT i cna't find ANYTHING that will play from linein to stdout, as i guess it's a bit of a lame thing to want to do, even tho play, which IS the same program as rec DOES play to stdout... NRRG!

that doesn't do justice to my hours of research but hey... erm.. sod it.
 
Old 03-24-2002, 02:25 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
This might take the thread way OT but doesn't voice over IP compress on the fly? OK so the quality is bad...

What do streaming servers (ie: RA) use for audio compression?
 
Old 03-24-2002, 04:28 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
oh, knew i'd find the reason.. knackered sound cable! DOH!
 
Old 03-24-2002, 07:13 PM   #5
nikhiljosh
Member
 
Registered: Jun 2001
Posts: 126

Rep: Reputation: 16
Tried MusicMatch for Linux?

In windows it has a facility to perform on the fly Mp3 encoding with really good quality
 
Old 03-25-2002, 05:51 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Original Poster
Rep: Reputation: 63
Cheers guys. I tried using sox before, but it's the one that comes with Mandy. Will d/l the source later and try it. Might give that MusicMatch thing a go as well but... I've never been one of those people that is happy with a program that 'does it for you' - for example, I don't like (Windows) programs that rip cds and automagically give you the mp3 file - invariably they have the copy-protection bit set so although you can convert them back to wav, you can't burn them as audio cds. Sorry, bit of a ramble there, hey ho!
 
Old 03-25-2002, 07:09 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
yeah, even the md82 version of sox doesn't have ogg support, i compiled from source, and it's all there, just make sure you specify -r 44101 on the rec cmd line, as that's all ogg can handle and it'll crash otherwise.

mmjb, yuck. i've only ever had hideous problems with that, it even uses it's own version of wine integrated into it.. yucky.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial port data to audio on the fly floydes Programming 0 10-14-2004 01:35 AM
Audio Input on Audigy2 and Xawtv mchrusto Linux - Newbie 0 10-06-2003 01:23 PM
audio, video, and input issues error403 Slackware 3 09-13-2003 11:35 AM
a program to record audio input matt_w_lambert Linux - Software 4 04-27-2003 03:46 PM
Video/audio input Stephanie General 1 03-23-2002 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:08 PM.

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