maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [HOW TO] record music from FM Radio (https://talk.maemo.org/showthread.php?t=60630)

TorstenT 2010-08-18 21:01

[HOW TO] record music from FM Radio
 
5 Attachment(s)
This is a little how to record music from the FM Radio Player from Martin Grimme.

Edit: Changed to Recaller 2010-08-22

Thanks to Tom Wälti there is the program Recaller to record from FM Radio.

Recaller can encode the recorded sound on the fly to the AAC audio format with 128 kbit/s.

Install Recaller and FM Radio:
Attachment 13196

Configure Recaller by tapping on the desktop.
Attachment 13197
Tap on the lower left symbol on the red Recaller icon.

Set the Audio Source to System:
Attachment 13198

Tap the red button to start recording. It changes to green.
Attachment 13199

Start the FM Radio.
Attachment 13200

The recorded sound is in:
Code:

/home/user/MyDocs/Rec_<date>.aac

This was my first suggestion. A command line way but it is not recommended. I leave it here for historical reasons.

First you need to configure a virtual pulse sound device to record from.

Code:

echo "pcm.pulse { type pulse }" > ~/.asoundrc
Set the recording volume with the alsa utilities:
Code:

amixer
# or
alsamixer

Start FM Radio Player and record with alsa record (arecord):

Code:

filename=/home/user/MyDocs/`date +"%F_%H-%M-%S_radio"`.wav
arecord -f cd -t wav -D pulse "$filename"

Press Ctrl + C to stop recording.

The wav-format has a limit of the file size ! (2 GB)

Install an MP3 encoder to shrink the recorded file.

Code:

sudo gainroot
apt-get install lame
exit

Convert the wav file to mp3 and delete the wav file:

Code:

lame -h --cbr -b 192 -m j "$filename" "$filename".mp3
rm -f "$filename"

lame seems to be compiled without optimisation - it seems to be slow.

Patola 2010-08-18 21:09

Re: [HOW TO] record music from FM Radio
 
Thank you very much, but in the end your post will be lost amongst million others here on TMO. You might get more public if you add it to the wiki...

Dousan 2010-08-18 21:17

Re: [HOW TO] record music from FM Radio
 
@TorstenT thanks for that one, did just think about that the other day how to record from the radio app. Will try this tomorrow :D

TorstenT 2010-08-18 21:31

Re: [HOW TO] record music from FM Radio
 
Quote:

Originally Posted by Patola (Post 791031)
You might get more public if you add it to the wiki...

Thanks for the suggestion.

Someone has already written a wiki:

http://wiki.maemo.org/Recording_phonecalls

But there the pulseaudio-utils are used. Not sure what the raw file format is. But I'm sure this can also be converted to mp3.

puiradu 2010-08-18 21:40

Re: [HOW TO] record music from FM Radio
 
maybe using all that stuff to create an application will be more user friendly!

TorstenT 2010-08-18 22:13

Re: [HOW TO] record music from FM Radio
 
Quote:

Originally Posted by puiradu (Post 791082)
maybe using all that stuff to create an application will be more user friendly!

I agree, but I don't have the time to develop a GUI.

Maybe the program "recaller" can record from FM Radio.

Until now I did not have much luck with Recaller in PR 1.2.

Dousan 2010-08-21 08:42

Re: [HOW TO] record music from FM Radio
 
5he recording works fine but when trying to convert to .mp3 it says '.mp3 not found'? I have Lame installed. Anybody know why i get that error?

twaelti 2010-08-21 09:37

Re: [HOW TO] record music from FM Radio
 
Quote:

Originally Posted by TorstenT (Post 791119)
Until now I did not have much luck with Recaller in PR 1.2.

It works well to record FM radio. Go into settings, change "Audio Source" to "System". Then launch FM radio, begin to listen, switch back to the desktop, start the recording by tapping the red recording button (will switch to green to indicate recording).

Just make sure you don't have a space in your save-folder name - this would trigger a bug that makes recaller fail.

twaelti 2010-08-21 09:39

Re: [HOW TO] record music from FM Radio
 
Quote:

Originally Posted by TorstenT (Post 791016)
This is a little how to record music from the FM Radio Player from Martin Grimme.

For everybody else: just use Recaller :D

maxximuscool 2010-08-21 10:10

Re: [HOW TO] record music from FM Radio
 
This could be nice if someone package this into an easy application :)


All times are GMT. The time now is 02:07.

vBulletin® Version 3.8.8