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 Wed 01 Oct 2014, 04:48
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 [2 Posts]  
Author Message
Lobster
Official Crustacean


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

PostPosted: Tue 03 Jun 2008, 09:59    Post subject:  Precord (wreckedleg mp3 recorder for Puppy 4 Dingo)
Subject description: 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

Code:
#!/bin/sh

#/***************************************************************************/
#/* 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\">
  <hbox>
   <frame Lock:>
    <checkbox>
      <label>\"\" </label>
      <variable>LOCKCHOICE</variable>
      <action>if true disable:DIRFILE</action>
      <action>if false enable:DIRFILE</action>
    </checkbox>
   </frame>
   <frame output directory and filename                                     >\
      <entry>
      <default>\"/root/my-documents/out.mp3\"</default>
      <variable>DIRFILE</variable>
      </entry>
   </frame>
   <frame dir>
      <button>
       <input file stock=\"gtk-open\"></input>
       <variable>PATHTOFILE</variable>
       <action type=\"fileselect\">DIRFILE</action>
      </button>
   </frame>
   <button>
    <input file stock=\"gtk-media-record\"></input>
    <label>REC</label>
    <action>\"arecord -f cd -t raw | lame -x - \$DIRFILE &\"</action>
   </button>
   <button>
    <input file stock=\"gtk-media-stop\"></input>
    <label>STOP</label>
    <action>sleep 2;killall lame</action>
   </button>
   <button>
    <input file stock=\"gtk-quit\"></input>
    <label>QUIT</label>
    <action>killall lame</action>
    <action type=\"exit\">EXIT-QUIT</action>
   </button>
     </hbox>
 </window>
"

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


This is the critical command line addition
Code:
 <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)
http://linuxcommand.org/man_pages/arecord1.html
precord.tar.gz
Description 
gz

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

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
pupmate

Joined: 12 Oct 2007
Posts: 17

PostPosted: Mon 03 Nov 2008, 07:24    Post subject: Precord
Subject description: 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 :-
http://www.murga-linux.com/puppy/viewtopic.php?search_id=1464003006&t=29335

Terry
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0579s ][ Queries: 12 (0.0104s) ][ GZIP on ]