jueves, 23 de julio de 2020

sox to mp3 centos

[root@linuxhelp ~]# wget https://nchc.dl.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.gz
--2017-10-28 15:12:31--  https://nchc.dl.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.gz
Resolving nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1134299 (1.1M) [application/x-gzip]
Saving to: “ sox-14.4.2.tar.gz” 

100%[===================================================================================================================================================================> ] 1,134,299    318K/s   in 3.5s    

2017-10-28 15:12:36 (318 KB/s) - “ sox-14.4.2.tar.gz”  saved [1134299/1134299]
Extract the downloaded package by running the tar command.
[root@linuxhelp ~]# tar -xvzf sox-14.4.2.tar.gz
sox-14.4.2/
sox-14.4.2/config.sub
sox-14.4.2/aclocal.m4
sox-14.4.2/COPYING
sox-14.4.2/cygbuild
sox-14.4.2/src/
sox-14.4.2/src/gsrt.c
sox-14.4.2/src/tx16w.c
sox-14.4.2/src/tremolo.c
sox-14.4.2/src/vox-fmt.c
sox-14.4.2/src/compandt.c
.
.
.
.
sox-14.4.2/lpc10/dyptrk.c
sox-14.4.2/lpc10/lpcini.c
sox-14.4.2/lpc10/lpfilt.c
sox-14.4.2/lpc10/difmag.c
sox-14.4.2/lpc10/voicin.c
sox-14.4.2/lpc10/ham84.c
sox-14.4.2/lpc10/placea.c
sox-14.4.2/lpc10/CMakeLists.txt
sox-14.4.2/LICENSE.GPL
sox-14.4.2/CMakeLists.txt
sox-14.4.2/sox.txt
Move to the SoX directory and run the following script to configure the SoX in the target system.
[root@linuxhelp ~]# cd sox-14.4.2
[root@linuxhelp sox-14.4.2]# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
.
.
.
.
config.status: creating msvc9/Makefile
config.status: creating msvc10/Makefile
config.status: creating sox.pc
config.status: creating src/soxconfig.h
config.status: executing depfiles commands
config.status: executing libtool commands

After running ./configure you should see in output:
OPTIONAL FILE FORMATS
amrnb......................no
amrwb......................no
flac.......................yes
gsm........................yes (in-tree)
lpc10......................yes (in-tree)
mp2/mp3....................yes
 id3tag....................no
 lame......................yes
 lame id3tag...............yes
 dlopen lame...............no
 mad.......................yes
 dlopen mad................no
 twolame...................no
oggvorbis..................yes
opus.......................no
sndfile....................no
wavpack....................no

OTHER OPTIONS
ladspa effects.............no
magic support..............no
png support................no
OpenMP support.............yes, -fopenmp
The configuration process has been finished and now run the make -s command in the terminal.
[root@linuxhelp sox-14.4.2]# make -s
Making all in lpc10
  CC       analys.lo
  CC       bsynz.lo
  CC       chanwr.lo
  CC       dcbias.lo
  CC       decode.lo
  CC       deemp.lo
  CC       difmag.lo
  CC       dyptrk.lo
  CC       encode.lo
  CC       energy.lo
  CC       f2clib.lo
  CC       ham84.lo
  CC       hp100.lo
  CC       invert.lo
.
.
.
CC       example2.o
  CCLD     example2
  CC       example3.o
  CCLD     example3
  CC       example4.o
  CCLD     example4
  CC       example5.o
  CCLD     example5
  CC       example6.o
  CCLD     example6
Next run the make install command in the terminal.
[root@linuxhelp sox-14.4.2]# make install 
Making install in lpc10
make[1]: Entering directory `/root/sox-14.4.2/lpc10' 
make[2]: Entering directory `/root/sox-14.4.2/lpc10' 
make[2]: Nothing to be done for `install-exec-am' .
make[2]: Nothing to be done for `install-data-am' .
make[2]: Leaving directory `/root/sox-14.4.2/lpc10' 
make[1]: Leaving directory `/root/sox-14.4.2/lpc10' 
Making install in libgsm
.
.
.
.
cd /usr/local/share/man/man1 & &  rm -f play.1 & &  ln -s sox.1 play.1
cd /usr/local/share/man/man1 & &  rm -f rec.1 & &  ln -s sox.1 rec.1
cd /usr/local/share/man/man7 & &  rm -f soxeffect.7 & &  ln -s ../man1/sox.1 soxeffect.7
make[3]: Leaving directory `/root/sox-14.4.2' 
make[2]: Leaving directory `/root/sox-14.4.2' 
make[1]: Leaving directory `/root/sox-14.4.2' 
Enter into the downloaded location to list a sound file for converting into another format.

sox  YKUC-VET-GREETING-02.mp3 -c1 -r 8000  YKUC-VET-GREETING-02.wav


 wget https://nchc.dl.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.gz
 1020  yum install gcc-c++ libmad libmad-devel libid3tag libid3tag-devel lame lame-devel flac-devel libvorbis-devel
 1021   tar -xvzf sox-14.4.2.tar.gz
 1022  cd sox-14.4.2
 1023  ./configure
 1024  make -s
 1025  make install

No hay comentarios:

Publicar un comentario