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 Mon 25 Sep 2017, 11:34
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Using xhippo as an mp3 or wav media file RECORDER
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message

Joined: 16 Aug 2007
Posts: 3194
Location: New Zealand

PostPosted: Tue 07 Jan 2014, 00:42    Post subject:  Using xhippo as an mp3 or wav media file RECORDER
Subject description: In addition to a media player. Uses only arecord, and lame.

This howto shows how to use it as a tiny, very low resource usage, mp3 or wav recorder assuming you have arecord and lame also installed.

xhippo is usually used to play media files (audio and/or video) via commandline backend programs such as mpg123 or madplay or mplayer. However, I have previously shown how to use it to play mp3 files using only lame and aplay via a shell script here:


I provided a dotpet gtk2 version of xhippo, which included that mp3 playback capability here:


xhippo can more generally, however, using the above technique, be used to control any running process (or pipe of running processes) via a shell script. This howto is an exemplar of that, in which xhippo is used to create a media recorder.


1. Download the attached tiny shell scripts xhippo_record_mp3 and xhippo_record_wav to /usr/bin and make them executable. (Note that all the attached files are provided in tar.gz format since the murga forum doesn't accept raw files).

2. Replace your existing xhippo configuration file, xhippo.config, with the attached one. Note that in the xhippo dotpet I provided in other thread, xhippo.config is stored in the default location /usr/local/etc. Alternatively, if you have made alterations of your own to xhippo.conf and want to keep them, simply insert the following two lines into your xhippo.config:



Note that this alteration associates two new file extensions, mp3# and wav#, with the scripts xhippo_record_mp3 and xhippo_record_wav respectively. Note that I chose to add the hash to the end of mp3 and wav as a simple way of creating a unique, relevantly named new file extension, but I could have used any unique extension name in practice for this purpose.

How to record in xhippo

Using xhippo to now record media files is a bit unusual since the mechanism for telling xhippo the filename to process is generally to drag and drop the file onto the xhippo window. That is the same mechanism required here:

1. Make sure your alsa is working and configured for recording, which is briefly discussed in the Precord post:


2. In your favourite filemanager, create an empty file of the form anyname.mp3# (note the # is essential in the extension to inform xhippo you want to record and mp3 (for wav recording name the file in the form anyname.wav#).

3. Drag the empty anyname.mp3# (or anyname.wav#) file from your filemanager onto the xhippo window and click on it there and recording will begin. That's all there is to it... You can start, pause and stop the recording using the xhippo controls. Note that the original .mp3# or .wav# file extension will be replaced with the relevant .mp3 or .wav filename in the recorded filename (i.e. the # in the original filename will be automatically removed).

4. Both scripts xhippo_record_mp3 and xhippo_record_wav come with default quality settings (for example bitrate and mode mono/stereo), with hints in these scripts on what these can be changed to. These settings, and the commandline were stolen from the code used in Precord. They are all at the top of the extremely short scripts. Feel free to change these quality settings using your favourite text editor (the current scripts are simple; no fancy wizard provided, sorry).

5. Making timestamped recordings: nstead of creating files of the form anyname.mp3# or anyname.wav#, you can use the special filename date.mp3# (or date.wav#). Then the final recording will be automatically renamed in the form "timestamp.mp3" or "timestamp.wav", where timestamp will be the time (year_month_day_hour_min_secs) when the recording was made.


Bugs: xhippo can get a bit mixed up (as if frozen) if you immediately reload the recorded file; the "Play the previous song" button usually gets you out of trouble, or simply don't mix recording and playing back at the same time.

You can of course directly use the provided xhippo_record_mp3 and xhippo_record_wav scripts as commandline utilities without even needing xhippo (but then you don't have the nice pause control etc). Alternatively, it would be easy to modify them via gtkdialog, bacon, or say vala to provide an alternative gui frontend than xhippo or Precord. However, note that gtkdialog gui are not so fast as xhippo (which is itself written in C) and consume more resources in terms of runtime RAM usage.

Eventually, I'll upload a new xhippo dotpet which includes these alterations, but that may take a while... hence the attachments provided for now.
Description  Associates special file extensions .mp3# and .wav# with recording

Filename  xhippo.config.tar.gz 
Filesize  2.31 KB 
Downloaded  205 Time(s) 
Description  Script to record wav files (with timestamps if desired)

Filename  xhippo_record_wav.tar.gz 
Filesize  760 Bytes 
Downloaded  185 Time(s) 
Description  Script to record mp3 files (with timestamp if desired)

Filename  xhippo_record_mp3.tar.gz 
Filesize  803 Bytes 
Downloaded  178 Time(s) 

SomeOfMyWork with links:
weX, scrox, Precord, Premote, fokSyfEyeR, xhippo-mod, flite_hts_pet
Back to top
View user's profile Send private message Visit poster's website 

Joined: 10 Sep 2011
Posts: 12549
Location: Mer méditerrannée (1 kms°)

PostPosted: Sun 06 Aug 2017, 19:51    Post subject: newer topic about Xhippo  

Jump to newer topic about Xhippo here
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
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 » House Training » HOWTO ( Solutions )
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.0309s ][ Queries: 12 (0.0035s) ][ GZIP on ]