linux関連/自動録音
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(linux関連);
*For ubuntu [#yd4fd396]
-sudo apt-get update
-sudo aptitude install alsa sox sqlite3~
-sudo vi /etc/group
audio: に使用するユーザを追加する
*memo [#q0a1394e]
echo "arecord -t wav -d 4200 -r 24000 today_oita.wav && y...
*lame [#n9331e24]
http://lame.cvs.sourceforge.net/*checkout*/lame/lame/USAGE
*alsamixer [#cfa3ce61]
#ref(alsamixer.png);
*amixer [#h0137b78]
*hint [#we9af47b]
-http://academic.meganebu.com/~debug_ito/index.php?Ubuntu...
-http://www2h.biglobe.ne.jp/~hnakamur/technolab/linux/sou...
-http://www.e-obs.com/Pro/Radio/Sv1/index.htm
-http://q.hatena.ne.jp/1192345628
-http://www.yolinux.com/TUTORIALS/LinuxTutorialMP3.html
-http://blog.goo.ne.jp/nobody123/e/cb86aa95ebf15eddda01b5...
-http://www.atmarkit.co.jp/flinux/rensai/linuxtips/153mak...
-http://flowernet.jp/blog/masm/?date=20080622
*arecord --h [#dde9b000]
Usage: arecord [OPTION]... [FILE]...
-h, --help help
--version print current version
-l, --list-devices list all soundcards and digital ...
-L, --list-pcms list device names
-D, --device=NAME select PCM by name
-q, --quiet quiet mode
-t, --file-type TYPE file type (voc, wav, raw or au)
-c, --channels=# channels
-f, --format=FORMAT sample format (case insensitive)
-r, --rate=# sample rate
-d, --duration=# interrupt after # seconds
-s, --sleep-min=# min ticks to sleep
-M, --mmap mmap stream
-N, --nonblock nonblocking mode
-F, --period-time=# distance between interrupts is #...
-B, --buffer-time=# buffer duration is # microseconds
--period-size=# distance between interrupts is #...
--buffer-size=# buffer duration is # frames
-A, --avail-min=# min available space for wakeup i...
-R, --start-delay=# delay for automatic PCM start is...
(relative to buffer size if <= 0)
-T, --stop-delay=# delay for automatic PCM stop is ...
-v, --verbose show PCM structure and setup (ac...
-I, --separate-channels one file for each channel
: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE...
:
-f cd (16 44100)
-f cdr (16 44100)
-f dat (16 48000)
sox: SoX v14.0.0
Failed: Not enough input filenames specified
Usage summary: [gopts] [[fopts] infile]... [fopts] outfi...
SPECIAL FILENAMES:
- stdin (infile) or stdout (outfile)
-n use the null file handler; for use with ...
GLOBAL OPTIONS (gopts) (can be specified at any point be...
--buffer BYTES set the buffer size (default 8192)
--combine concatenate concatenate multiple input files ...
--combine sequence sequence multiple input files (defau...
-h, --help display version number and usage informa...
--help-effect NAME display usage of specified effect; u...
--interactive prompt to overwrite output file
-m, --combine mix mix multiple input files (instead of ...
-M, --combine merge merge multiple input files (instead...
--plot gnuplot|octave generate script to plot response ...
-q, --no-show-progress run in quiet mode; opposite of -S
--replay-gain track|album|off default: off (sox, rec), ...
-R use default random numbers (same on each...
-S, --show-progress display progress while processing a...
--version display version number of SoX and exit
-V[LEVEL] increment or set verbosity level (defaul...
1: failure messages
2: warnings
3: details of processing
4-6: increasing levels of debug messages
FORMAT OPTIONS (fopts):
Format options only need to be supplied for input files ...
otherwise they are obtained automatically. Output files...
same format options as the input file unless otherwise s...
-c, --channels CHANNELS number of channels in audio data
-C, --compression FACTOR compression factor for output ...
--comment TEXT Specify comment text for the output file
--comment-file FILENAME file containing comment text fo...
--endian little|big|swap set endianness; swap means opp...
-r, --rate RATE sample rate of audio
-t, --type FILETYPE file type of audio
-x invert auto-detected endianness
-N, --reverse-nibbles nibble-order
-X, --reverse-bits bit-order of data
-B/-L force endianness to big/little
-s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A...
-a/-i/-g/-f ADPCM/IMA_ADPCM/GSM/floating point
-1/-2/-3/-4/-8 sample size in bytes
-v, --volume FACTOR volume input file volume adjustment...
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa...
SUPPORTED EFFECTS: allpass band bandpass bandreject bass...
effopts: depends on effect
#!/bin/bash
rectime=`date +%Y%m%d_%H%M_$1min`
rec=$rectime.wav
rec_mp3=$rectime.mp3
rec_s=s_$rectime.wav
rec_smp3=s_$rectime.mp3
rec_duration=$[$1*60]
form=S16
chan=2
log_a=`date +%m%d`
arecord -t wav -d $rec_duration -f $form -c $chan -r 480...
lame -V2 $rec $rec_mp3
log_d=`ls -lh $rec | sed "s/ /,/g" | cut -d , -f5`
sox $rec $rec_s speed 1.5
lame -V2 $rec_s $rec_smp3
yes y | rm $rec $rec_s
mv $rectime.* /var/www/sound/$2
mv $rec_smp3 /var/www/sound/$2
log_char="insert into log values (1,2,3 , \"$log_d\" , $...
echo $log_char |sqlite3 reclog
/root/sqltohtml.sh > /var/www/sound/list.html
終了行:
#navi(linux関連);
*For ubuntu [#yd4fd396]
-sudo apt-get update
-sudo aptitude install alsa sox sqlite3~
-sudo vi /etc/group
audio: に使用するユーザを追加する
*memo [#q0a1394e]
echo "arecord -t wav -d 4200 -r 24000 today_oita.wav && y...
*lame [#n9331e24]
http://lame.cvs.sourceforge.net/*checkout*/lame/lame/USAGE
*alsamixer [#cfa3ce61]
#ref(alsamixer.png);
*amixer [#h0137b78]
*hint [#we9af47b]
-http://academic.meganebu.com/~debug_ito/index.php?Ubuntu...
-http://www2h.biglobe.ne.jp/~hnakamur/technolab/linux/sou...
-http://www.e-obs.com/Pro/Radio/Sv1/index.htm
-http://q.hatena.ne.jp/1192345628
-http://www.yolinux.com/TUTORIALS/LinuxTutorialMP3.html
-http://blog.goo.ne.jp/nobody123/e/cb86aa95ebf15eddda01b5...
-http://www.atmarkit.co.jp/flinux/rensai/linuxtips/153mak...
-http://flowernet.jp/blog/masm/?date=20080622
*arecord --h [#dde9b000]
Usage: arecord [OPTION]... [FILE]...
-h, --help help
--version print current version
-l, --list-devices list all soundcards and digital ...
-L, --list-pcms list device names
-D, --device=NAME select PCM by name
-q, --quiet quiet mode
-t, --file-type TYPE file type (voc, wav, raw or au)
-c, --channels=# channels
-f, --format=FORMAT sample format (case insensitive)
-r, --rate=# sample rate
-d, --duration=# interrupt after # seconds
-s, --sleep-min=# min ticks to sleep
-M, --mmap mmap stream
-N, --nonblock nonblocking mode
-F, --period-time=# distance between interrupts is #...
-B, --buffer-time=# buffer duration is # microseconds
--period-size=# distance between interrupts is #...
--buffer-size=# buffer duration is # frames
-A, --avail-min=# min available space for wakeup i...
-R, --start-delay=# delay for automatic PCM start is...
(relative to buffer size if <= 0)
-T, --stop-delay=# delay for automatic PCM stop is ...
-v, --verbose show PCM structure and setup (ac...
-I, --separate-channels one file for each channel
: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE...
:
-f cd (16 44100)
-f cdr (16 44100)
-f dat (16 48000)
sox: SoX v14.0.0
Failed: Not enough input filenames specified
Usage summary: [gopts] [[fopts] infile]... [fopts] outfi...
SPECIAL FILENAMES:
- stdin (infile) or stdout (outfile)
-n use the null file handler; for use with ...
GLOBAL OPTIONS (gopts) (can be specified at any point be...
--buffer BYTES set the buffer size (default 8192)
--combine concatenate concatenate multiple input files ...
--combine sequence sequence multiple input files (defau...
-h, --help display version number and usage informa...
--help-effect NAME display usage of specified effect; u...
--interactive prompt to overwrite output file
-m, --combine mix mix multiple input files (instead of ...
-M, --combine merge merge multiple input files (instead...
--plot gnuplot|octave generate script to plot response ...
-q, --no-show-progress run in quiet mode; opposite of -S
--replay-gain track|album|off default: off (sox, rec), ...
-R use default random numbers (same on each...
-S, --show-progress display progress while processing a...
--version display version number of SoX and exit
-V[LEVEL] increment or set verbosity level (defaul...
1: failure messages
2: warnings
3: details of processing
4-6: increasing levels of debug messages
FORMAT OPTIONS (fopts):
Format options only need to be supplied for input files ...
otherwise they are obtained automatically. Output files...
same format options as the input file unless otherwise s...
-c, --channels CHANNELS number of channels in audio data
-C, --compression FACTOR compression factor for output ...
--comment TEXT Specify comment text for the output file
--comment-file FILENAME file containing comment text fo...
--endian little|big|swap set endianness; swap means opp...
-r, --rate RATE sample rate of audio
-t, --type FILETYPE file type of audio
-x invert auto-detected endianness
-N, --reverse-nibbles nibble-order
-X, --reverse-bits bit-order of data
-B/-L force endianness to big/little
-s/-u/-U/-A/ sample encoding: signed/unsigned/u-law/A...
-a/-i/-g/-f ADPCM/IMA_ADPCM/GSM/floating point
-1/-2/-3/-4/-8 sample size in bytes
-v, --volume FACTOR volume input file volume adjustment...
SUPPORTED FILE FORMATS: 8svx aif aifc aiff aiffc al alsa...
SUPPORTED EFFECTS: allpass band bandpass bandreject bass...
effopts: depends on effect
#!/bin/bash
rectime=`date +%Y%m%d_%H%M_$1min`
rec=$rectime.wav
rec_mp3=$rectime.mp3
rec_s=s_$rectime.wav
rec_smp3=s_$rectime.mp3
rec_duration=$[$1*60]
form=S16
chan=2
log_a=`date +%m%d`
arecord -t wav -d $rec_duration -f $form -c $chan -r 480...
lame -V2 $rec $rec_mp3
log_d=`ls -lh $rec | sed "s/ /,/g" | cut -d , -f5`
sox $rec $rec_s speed 1.5
lame -V2 $rec_s $rec_smp3
yes y | rm $rec $rec_s
mv $rectime.* /var/www/sound/$2
mv $rec_smp3 /var/www/sound/$2
log_char="insert into log values (1,2,3 , \"$log_d\" , $...
echo $log_char |sqlite3 reclog
/root/sqltohtml.sh > /var/www/sound/list.html
ページ名: