Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: command line mp3 recorder for Windows (Read 5563 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

command line mp3 recorder for Windows

Hi - I have just tried out a very neat little command-line program called mp3recorder.exe.  It was written in 2010 by an apparently anonymous micro-ISV called Audio Software.  I am not sure whether anyone is currently "owning" it or looking after it?  It is a free download.

It always records at a bitrate of 128 which is too high for my purpose.  I want to record at only 32 kbps.

Can anyone help me to adjust the bitrate - or perhaps to recommend an alternative command-line recorder program that I could use?  I don't mind paying a bit for suitable software.  But I don't want a fancy GUI.  In fact I don't want a GUI at all!  I need to be able to set it going from a batch file.

Looking forward to hearing any suggestions...
enthusiastic amateur

command line mp3 recorder for Windows

Reply #1
ffmpeg or mplayer (mpv maybe) or sox.
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung

command line mp3 recorder for Windows

Reply #2
LineInCode seems to do what it's supposed to. Noted the program is no longer under development but still seems to work.

The package is a self-extracting 7z. The LINCO.EXE program is the command-line component. I tried it with LAME adding -r to the familiar parameters.

For that low of a bitrate I would let LAME do the resampling and set the LINCO input to the native sound card sample rate. An example for a monaural input from a mic would be:
Code: [Select]
linco -B 16 -C 1 -R 44100 | lame -b 32 -r - out.mp3
...where 44100 might be 48000 instead depending on the hardware.

I also noticed that at this low bitrate there were a few seconds of audio discarded at the end of the file (I suspect some minimum chunk size but can not explain myself).

Hope this helps.
"Something bothering you, Mister Spock?"

command line mp3 recorder for Windows

Reply #3
LineInCode seems to do what it's supposed to. Noted the program is no longer under development but still seems to work.

The package is a self-extracting 7z. The LINCO.EXE program is the command-line component. I tried it with LAME adding -r to the familiar parameters.

For that low of a bitrate I would let LAME do the resampling and set the LINCO input to the native sound card sample rate. An example for a monaural input from a mic would be:
Code: [Select]
linco -B 16 -C 1 -R 44100 | lame -b 32 -r - out.mp3
...where 44100 might be 48000 instead depending on the hardware.

I also noticed that at this low bitrate there were a few seconds of audio discarded at the end of the file (I suspect some minimum chunk size but can not explain myself).

Hope this helps.


Very many thanks, Destroid.  I had previously been trying to LINCO with variations on the following command-line code:

linco -B 16 -C 1 -R 44100 | lame -r -x -s 44.1 --bitwidth 16 -m m -strictly-enforce-ISO - out.mp3

... but I was getting the error message "mp3 buffer is not big enough".

I wonder whether you could explain this error message?

Your code, however, seems to work nicely, so I am most grateful!
enthusiastic amateur

Re: command line mp3 recorder for Windows

Reply #4
To record audio from command line into MP3 you can use fmedia:

Code: [Select]
fmedia --record --out=rec.mp3 --mpeg-quality=9

This command will record sound in MPEG Layer3 VBR (V9 quality, which is ~64kbit for CD audio).

However, OGG Vorbis usually has better compression and sound quality than MP3.  You can record in MP3 and OGG Vorbis and then compare them and choose what is best for your type of audio.  This command will record sound in OGG Vorbis q-1.0 (~45kbit for CD audio):

Code: [Select]
fmedia --record --out=rec.ogg --ogg-quality=-1.0

By default, fmedia will continue recording until stopped by pressing Ctrl+C.