background.
I have a am/fm stereo receiver connected to my line in on my PC. I used to be able to use the following command to record audio from the line in. It worked fine on my Slackware box. Long story short I am trying the same command using a Slax 5.1.8rc CD.
command
supposed to be a one line command)
sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s - /path/to/mp3.mp3
I have the path to mp3 going to a harddrive thats in the PC formatted with ext2
Ive tried playing it back with mplayer and kplayer
Problem is when I play it back it plays the audio but it has a "thumping" sound and I can't figure out why.
any ideas?
sox: Version 12.18.1
LAME version 3.96.1
I also posted this on the slax forum but figured someone here could help.
UPDATE:
sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s - test.wav
Assuming raw pcm input file : Forcing byte-swapping
LAME version 3.96.1 (
http://lame.sourceforge.net/)
Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
Encoding <stdin> to test.wav
Encoding as 44.1 kHz 128 kbps stereo MPEG-1 Layer III (11x) qval=3
mplayer test.wav
MPlayer 1.0pre8-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Family: 6, Model: 5, Stepping: 2)
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
Playing test.wav.
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
mcop warning: user defined signal handler found for SIG_PIPE, overriding
[AO ARTS] Connected to sound server.
[AO ARTS] Stream opened.
[AO ARTS] buffer size: 20480
[AO ARTS] buffer size: 2048
AO: [arts] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 1.5 (01.5) of 25.0 (25.0) 4.7%