Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Jun 2015, 15:44
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Precord (wreckedleg mp3 recorder for Puppy 4 Dingo)
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Official Crustacean

Joined: 04 May 2005
Posts: 15121
Location: Paradox Realm

PostPosted: Tue 03 Jun 2008, 09:59    Post_subject:  Precord (wreckedleg mp3 recorder for Puppy 4 Dingo)
Sub_title: Simple, easy-to-use mp3 recorder for Puppy

This is based on older code that did not work in Puppy Dingo

Below is the code which I have modified also uploaded as a tar file
It now works


#/* Program: based on wreckedleg Version: 0.5.0alpha2_bash */
#/* Creation date (YMD): 2007/09/29 */
#/* (C) Copyright 2007 William McEwan (mcewanw @ murga puppy forum) */
# mods Lobster June 2008

cd /root/my-documents

export MAIN_DIALOG="
 <window title=\"Precord \"icon-name=\"gtk-media-record\">
   <frame Lock:>
      <label>\"\" </label>
      <action>if true disable:DIRFILE</action>
      <action>if false enable:DIRFILE</action>
   <frame output directory and filename                                     >\
   <frame dir>
       <input file stock=\"gtk-open\"></input>
       <action type=\"fileselect\">DIRFILE</action>
    <input file stock=\"gtk-media-record\"></input>
    <action>\"arecord -f cd -t raw | lame -x - \$DIRFILE &\"</action>
    <input file stock=\"gtk-media-stop\"></input>
    <action>sleep 2;killall lame</action>
    <input file stock=\"gtk-quit\"></input>
    <action>killall lame</action>
    <action type=\"exit\">EXIT-QUIT</action>

MAIN_DIALOG="`gtkdialog3 --program=MAIN_DIALOG --center`"
exit 0

This is the critical command line addition
 <action>\"arecord -f cd -t raw | lame -x - \$DIRFILE &\"</action>

That will also work from the command line
use ctrl + c to finish recording . . .
It is not very efficient (produces large sound files)
but creates working mp3 files . . .

I did play with the parameters a little but it ended up sounding like chipmunks
Any ideas welcome Smile
At the moment the sound is too quiet and recorded files are too large . . .

these are the arecord parameters (also 'arecord --h' on command line)

Filename  precord.tar.gz 
Filesize  783 Bytes 
Downloaded  457 Time(s) 

Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 

Joined: 12 Oct 2007
Posts: 17

PostPosted: Mon 03 Nov 2008, 07:24    Post_subject: Precord
Sub_title: enhancements please

Can I make a plea to whoever writes an audio recording gui to incorporate facilities for external audio cards eg Sound Blaster MP3+ USB, for those who only have a mic in socket on their computer. I refer to my HOWTO for details but this is only for CLI usage. My programing skills leave a lot to be desired. Please see :-

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0535s ][ Queries: 13 (0.0080s) ][ GZIP on ]