LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-26-2011, 10:11 AM   #1
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 654

Rep: Reputation: 7
Timed audio recording howto


Hi there,

I want to set up a scheduled audio recording from an external source, ie. FM radio, is there any app available for that purpose, or how do I do that in Ubuntu ? I want to record in MP3 and the length of few hours, thanks !
 
Old 05-26-2011, 07:08 PM   #2
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Rep: Reputation: 3
Code:
arecord -f cd -d numberofseconds -t raw | lame -x -r – out.mp3
That's from here:
http://jordilin.wordpress.com/2006/0...-command-line/ It also tells you how exactly to set that up.

To set it to start at a certain time, use Gnome Scheduler to start the program when you want.
 
Old 05-26-2011, 09:31 PM   #3
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 654

Original Poster
Rep: Reputation: 7
Oh that's look easy, will try, thanks !
 
Old 05-27-2011, 03:43 AM   #4
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 654

Original Poster
Rep: Reputation: 7
There is some problem, I want to record a 2hr. program at 3pm, so I put this script to run on Gnome Schedule at 3pm :

arecord -f cd -d 7200 -t raw | lame -x -r – program1.mp3

When I come back home I see the script disappeared on the list, there is still 30min before the recording ends, but I don't see any recording at work, and the mp3 is no where to be found, am I missing something ? when run this script straight I got this error :

Could not find "program1.mp3".
Recording raw data 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo


If I omit the "–" it said Could not find "program1.mp3...", it seems the syntax is not correct, but I just copy and paste, any idea ?

Last edited by joboy; 05-27-2011 at 04:33 AM. Reason: Incomplete info
 
Old 05-27-2011, 04:44 PM   #5
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Rep: Reputation: 3
Try this:
Code:
arecord -f cd -d 2 -t raw | lame -x -r - program1.mp3
If the problematic dash doesn't copy right, do this:
Code:
man lame
and copy the dash from "To read from stdin, use "-" for <infile>" in the Description section. It uses a certain dash/hyphen, so the one I posted (and was posted on that website) must have been formatted wrong (as might the one in the code above).

This should work now, though.
 
Old 05-27-2011, 10:24 PM   #6
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 654

Original Poster
Rep: Reputation: 7
Yes that worked, but I can't set the alsamixer according to the original page, I am using the mic input but no matter how I set it I still can't get the signal, but the build in sound recorder worked flawlessly. I also tried the Audacity there is a timer recorder option, but it is fixed to start at Monday no matter how I change it, it seems there is a bug in it, and it crashes randomly.
 
Old 05-28-2011, 09:58 AM   #7
schachwizard
Member
 
Registered: Sep 2010
Location: Philly
Distribution: OpenSuse
Posts: 67

Rep: Reputation: 3
What are you setting the alsamixer to?
 
Old 05-28-2011, 10:16 AM   #8
joboy
Member
 
Registered: Jul 2009
Distribution: Debian, Ubuntu, Puppy, Mint
Posts: 654

Original Poster
Rep: Reputation: 7
I use tab key to select the mic input, but it shows 'MM' I think it means muted ? anyway now I use Audacity, the timer record worked, there is a bug displaying the start and end date, they are locked at Monday, but I can change it on the pull down only the display is wrong, after some trial and error now I managed to create a scheduled recording, and I've everything set the recording should start as expected.
 
  


Reply



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 timed interent audio space_invader64 Linux - Software 4 01-09-2007 09:48 PM
Audio Recording. svendabassist Linux - Software 1 02-03-2005 11:08 PM
Recording Audio-in Dirk the Daring Linux - General 0 12-23-2004 10:43 AM
need help recording audio havokok Linux - Software 0 03-03-2004 07:41 PM
recording tv audio with xawtv mongke Linux - Software 0 10-06-2003 08:43 PM

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

All times are GMT -5. The time now is 11:06 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