|
NAMEsoundgrab - select and save sections of an audio fileSYNOPSISsoundgrab [option]... [file]DESCRIPTIONsoundgrab is a perl script which runs the aplay and sox and possibly the ogg123, ogginfo, oggenc and flac executables to let the user play back a raw audio or '.ogg' file and interactively select and export portions of the file to other files.It is also possible to save a sequence of soundgrab commands in a file and execute them later in batch mode (with the --execute option). EXAMPLES
OPTIONS AND ARGUMENTS
soundgrab --device=alsa09 --device-option=card:0
foo.ogg
Note also that a given DEVICE isn't going to be correct for both types of volumes. Finally, be warned that soundgrab has a tendency to unhelpfully eat the diagnostic output the ogg123 or aplay programs might normally generate when given a bad device specification. The default behavior is to not pass any device options to ogg123 or aplay, causing them to use their own default behavior.
The default for this option is cdr. The flac and ogg formats are only available if the appropriate encoder is present on the system.
The single optional argument file indicates the file name of the volume to be dissected. If the input file appears to be a '.ogg' file (i.e. if it has extension '.ogg' or the 'file' utility thinks its an ogg file), it is treated as such. Otherwise, in the absense of other options, the input file is assumed to contain 2 interleaved channels of signed 16 bit little endian raw audio data sampled at 44.1 kHz. A variety of output formats are available (some depend on the presence of certain encoder binaries in the user's path). INTERACTIVE COMMANDSsoundgrab acts like a tape player with almost instantaneous fast forward and rewind, the capability to jump to a particular point in the tape, and the capability to name and save sections of the tape to other files. You can also browse through large volumes of audio, playing only some number of seconds and then skipping some number of seconds. The few commands required to do all these things are all documented online, just fire up soundgrab on an appropriate audio file and type 'help'.AUDIO FORMAT DETAILSSince soundgrab allows portions of a file in one format to be exported in different formats, it is sometimes impossible or undesirable to avoid changing the bits per sample, sample format, number of channels, or sampling rate of the data. The characteristics of the input volume are preserved in the exported output files with the following exceptions:
NON-INTERACTIVE USEThe --execute (-e) option makes it possible to use soundgrab in batch mode, but for this to work, you must ensure that soundgrab doesn't end up in a situation where it wants to prompt the user for additional input to complete a command. What makes soundgrab decide it has to prompt the user? Mostly, soundgrab prompts before doing anything that destroys information. Some of the things that cause this include the redefinition of chunk names, the definition of chunk names that will cause files to be overwritten when they are exported, and the use of export commands that will overwrite files if executed. Input is also requested when soundgrab thinks that a given chunk might fill the disk when exported (and it uses a pretty conservative estimate of space requirements of compressed files to determine this).BUGSJob control with Control-Z (using signal SIGTSTP and friends) is not supported, even in batch mode.It is possible for soundgrab's notion of where it is in the volume to get out of sync with the reality of whats being played at a given instant. Any command that moves or stops the head will generally fix things. There is no mpeg3 support because mpeg has a buggy license. Perl version 5.8.0 at least sometimes seg faults when soundgrab exits. oggenc version 1.0 based on libvorbis 1.0 at least doesn't handle its --comment option correctly, resulting in a spurious warning when outputing files in ogg format. SEE ALSOamixer(1), arecord(1), aplay(1), sox(1), oggenc(1), ogginfo(1), ogg123(1), flac(1)COPYRIGHTsoundgrab is Copyright (C) 2007 Britton Leo KerinThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. AUTHORBritton Leo Kerin (soundgrab@letterboxes.org)
Visit the GSP FreeBSD Man Page Interface. |