Linux에 음원 파일 Merge(병합)

Tool and Util/sox 2015. 10. 30. 14:07
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

SOX(Sound File Conversion Tool) 설치 및 설치시 발생가능한 문제 해결방법


--- 아래 진행에 대한 리눅스 쉘 파일 첨부  ---


SOX 설치시 에러 발생 해결 방법.docx


sox-14.4.1.tar.gz


sox_unix.sh

sox 설치.txt



*  수동 소스 설치 진행


--- 소스설치로 진행 ---



SOX 설치 소스를 다운 받는다 (본 문에서 버전은 14.4.1 )


설치파일 준비 ....  sox-14.4.1.tar.gz




1. tar 명령으로 압축 해제


tar xvzf sox-14.4.1.tar.gz


2. 압축 해제 된 디렉토리로 이동


cd sox-14.4.1


3. configure 실행


   ./configure


4. make menuselect 실행


  ./make menuselect


5. make 실행


6. make install 실행




-- 실행이 완료 되면 sox 를 실행하여 설치 확인 -- 


[ippbx@localhost ~]$ sox

sox: SoX v14.3.1


sox FAIL sox: Not enough input filenames specified


Usage summary: [gopts] [[fopts] infile]... [fopts] outfile [effect [effopt]]...


SPECIAL FILENAMES (infile, outfile):

-                        Pipe/redirect input/output (stdin/stdout); may need -t

-d, --default-device     Use the default audio device (where available)

-n, --null               Use the `null' file handler; e.g. with synth effect

-p, --sox-pipe           Alias for `-t sox -'


SPECIAL FILENAMES (infile only):

"|program [options] ..." Pipe input from external program (where supported)

http://server/file       Use the given URL as input file (where supported)


GLOBAL OPTIONS (gopts) (can be specified at any point before the first effect):

--buffer BYTES           Set the size of all processing buffers (default 8192)

--clobber                Don't prompt to overwrite output file (default)

--combine concatenate    Concatenate all input files (default for sox, rec)

--combine sequence       Sequence all input files (default for play)

-D, --no-dither          Don't dither automatically

--effects-file FILENAME  File containing effects and options

-G, --guard              Use temporary files to guard against clipping

-h, --help               Display version number and usage information

--help-effect NAME       Show usage of effect NAME, or NAME=all for all

--help-format NAME       Show info on format NAME, or NAME=all for all

--i, --info              Behave as soxi(1)

--input-buffer BYTES     Override the input buffer size (default: as --buffer)

--no-clobber             Prompt to overwrite output file

-m, --combine mix        Mix multiple input files (instead of concatenating)

-M, --combine merge      Merge multiple input files (instead of concatenating)

--magic                  Use `magic' file-type detection

--multi-threaded         Enable parallel effects channels processing (where

                         available)

--norm                   Guard (see --guard) & normalise

--play-rate-arg ARG      Default `rate' argument for auto-resample with `play'

--plot gnuplot|octave    Generate script to plot response of filter effect

-q, --no-show-progress   Run in quiet mode; opposite of -S

--replay-gain track|album|off  Default: off (sox, rec), track (play)

-R                       Use default random numbers (same on each run of SoX)

-S, --show-progress      Display progress while processing audio data

--single-threaded        Disable parallel effects channels processing

--temp DIRECTORY         Specify the directory to use for temporary files

--version                Display version number of SoX and exit

-V[LEVEL]                Increment or set verbosity level (default 2); levels:

                           1: failure messages

                           2: warnings

                           3: details of processing

                           4-6: increasing levels of debug messages

FORMAT OPTIONS (fopts):

Input file format options need only be supplied for files that are headerless.

Output files will have the same format as the input file where possible and not

overriden by any of various means including providing output format options.


-v|--volume FACTOR       Input file volume adjustment factor (real number)

--ignore-length          Ignore input file length given in header; read to EOF

-t|--type FILETYPE       File type of audio

-s/-u/-f/-U/-A/-i/-a/-g  Encoding type=signed-integer/unsigned-integer/floating

                         point/mu-law/a-law/ima-adpcm/ms-adpcm/gsm-full-rate

-e|--encoding ENCODING   Set encoding (ENCODING in above list)

-b|--bits BITS           Encoded sample size in bits

-1/-2/-3/-4/-8           Encoded sample size in bytes

-N|--reverse-nibbles     Encoded nibble-order

-X|--reverse-bits        Encoded bit-order

--endian little|big|swap Encoded byte-order; swap means opposite to default

-L/-B/-x                 Short options for the above

-c|--channels CHANNELS   Number of channels of audio data; e.g. 2 = stereo

-r|--rate RATE           Sample rate of audio

-C|--compression FACTOR  Compression factor for output format

--add-comment TEXT       Append output file comment

--comment TEXT           Specify comment text for the output file

--comment-file FILENAME  File containing comment text for the output file

--no-glob                Don't `glob' wildcard match the following filename


AUDIO FILE FORMATS: 8svx aif aifc aiff aiffc al amb au avr cdda cdr cvs cvsd cvu dat dvms f32 f4 f64 f8 fssd gsm gsrt hcom htk ima ircam la lpc lpc10 lu maud mp2 mp3 nist ogg prc raw s1 s16 s2 s24 s3 s32 s4 s8 sb sf sl smp snd sndr sndt sou sox sph sw txw u1 u16 u2 u24 u3 u32 u4 u8 ub ul uw vms voc vorbis vox wav wavpcm wve xa

PLAYLIST FORMATS: m3u pls

AUDIO DEVICE DRIVERS: alsa oss ossdsp


EFFECTS: allpass band bandpass bandreject bass bend biquad chorus channels compand contrast crop+ dcshift deemph delay dither divide+ earwax echo echos equalizer fade filter* fir firfit+ flanger gain highpass input# key* loudness lowpass mcompand mixer noiseprof noisered norm oops output# overdrive pad pan* phaser pitch polyphase* rabbit* rate remix repeat resample* reverb reverse riaa silence sinc spectrogram speed splice stat stats stretch swap synth tempo treble tremolo trim vad vol

  * Deprecated effect    + Experimental effect    # LibSoX-only effect

EFFECT OPTIONS (effopts): effect dependent; see --help-effect





************* 설치 문제 발생 시 해결 방법 *************




PKG ( Install Package ) 설치 시 Util (SOX) 설치 단계에서

오류 발생으로 설치가 안되는 경우가 있다

 

이때, sox root 권한으로 수동 설치 후 /etc/ld.so.conf 파일을

열어 lib의 중복 부분을 제거 후

 

$> ldconfig  명령을 실행해 library를 재 로딩 한다.