Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to record sound that is being played. I'm listening live to a streaming internet radio station with 'realplayer <some URL>'. In FC2, I had this working by executing a script that was in the crontab that used the following line :
arecord -f cd -d 10800 | lame -h - /share/blues_$date.mp3
I now have FC4 installed and am trying to set this up again, so I tried playing the stram and then doing the line above to make sure everything was working. Well, it runs without errors, but the file is just silence when I play the mp3 file.
Trying it :
[root@localhost scripts]# arecord -f cd | lame -h - junk
Recording WAVE 'stdout' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
LAME version 3.96.1
CPU features: MMX (ASM used), SSE
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
Encoding <stdin> to junk
Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=2
Aborted by signal Interrupt...
Backing up, I just ran arecord and tried to play the result back with aplay. Same story. Looking at the arecord output (a WAV file), I see all the same values :
[root@localhost scripts]# od -c junk1|more
0000000 R I F F 324 0 001 \0 W A V E f m t
0000020 020 \0 \0 \0 001 \0 001 \0 @ 037 \0 \0 @ 037 \0 \0
0000040 001 \0 \b \0 d a t a 260 0 001 \0 177 177 177 200
0000060 200 177 177 200 200 177 177 177 177 177 177 177 177 177 177 177
0000100 177 177 177 177 177 177 177 177 177 177 177 200 200 177 177 177
0000120 177 177 177 177 177 200 200 177 177 177 177 177 177 177 177 177
So, it looks like arecord is not grabbing the sound I hear. Searching with Google and LinuxQuestions forums, I reviewed many postings. None seem to help me get arecord to grab the input. Using the "Volume Control" toolbar icon, and selecting the Ensoniq AudioPCI (Alsa Mixer) selection, I made sure that the Capture selection has the voulme high and not muted (although I couldn't mute it anyway). Looks the same in command line AlsaMixer. Any thoughts on what I need to do, or can try, to get arecord to get some input? More sound/card details below. Thanks for any help.