LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-25-2006, 05:05 PM   #1
slothpuck
Member
 
Registered: Jul 2003
Distribution: Slackware 10.2 / Slamd 64
Posts: 86

Rep: Reputation: 15
Live recording to mp3 problem


Hi all,

A While back - actually about 6 months ago, I used to use Mandrake 10.2. I could use it on my system in command line mode and in X to record audio from my soundcard to an mp3. I used this at the commnad line;

Code:
sox -t ossdsp -w -s -r 44050 -c 1 /dev/dsp -t raw - | lame -x -m m -b 256 - test.mp3
Which used to work fine. Since then, I have changed over to Slackware 10.2 current (and installed the current versions of the linux modules, alsa, etc). However the line above once sox and lame are installed dosen't seem to work -- using that at the command line gives me a file 0 bytes long.

Also, typing this at a command line;
Code:
cat /dev/dsp
Shows almost nothing -- on very rare occasions I will see some sort of output from that command but it only works for a brief moment -- /dev/dsp seems to return nothing at all mainly.

The odd thing is that recording with a program like audacity works just fine - it is just at the command line that nothing works. Playing back audio also has no problems either.

I also tried this;

Code:
rec -c 2 -r 44100 -s w my_file.wav
Which did produce a result, but the audio was very broken up.

Does anyone have any ideas what could be wrong? The KDE mixer and alsamixer at the command line both seem to agree.

I get the same problems either running within or outside of X . Oddly, only command line programs are affected.

SP

Last edited by slothpuck; 07-25-2006 at 05:34 PM.
 
Old 08-05-2006, 09:05 AM   #2
slothpuck
Member
 
Registered: Jul 2003
Distribution: Slackware 10.2 / Slamd 64
Posts: 86

Original Poster
Rep: Reputation: 15
After looking into this (and turning off the on-board sound for an old PCI card) it appears the problem is that sound recording seems to be 'slow'. I used the above command line sox command and monitored the file at another command line. For about 5 to 10 seconds the file is 0 bytes long, but then suddenly starts to grow (the next time I looked, it was 256K, then 500K, etc). Maybe something somewhere is buffering something?

SP
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
recording using sb live! and audacity jdavid02 Linux - Hardware 1 11-14-2005 05:14 PM
K3B - MP3 recording on x86_64 cyram Linux - Software 0 01-29-2005 04:36 PM
MP3 Recording Distro pnh73 Linux - General 8 09-22-2003 04:51 PM
Recording a Live Video Feed sonikntails Linux - Software 1 10-22-2002 05:41 PM
Recording in stereo with SB Live! ramme Linux - Hardware 0 07-23-2002 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration