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 Sun 21 Dec 2014, 10:41
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
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15122
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

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  434 Time(s) 

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

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 :-
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:   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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