
Tengo dos archivos de audio, uno tiene formato .mp3 (la extensión es .wav pero el archivo es .mp3) y el otro tiene formato .wav real. Estoy intentando convertir el formato .wav real igual que el primer archivo .mp3.
General
Complete name : count.wav
Format : MPEG Audio
File size : 183 KiB
Duration : 9 s 360 ms
Overall bit rate mode : Constant
Overall bit rate : 160 kb/s
Writing library : LAME3.99.5
FileExtension_Invalid : m1a mpa mpa1 mp1 m2a mpa2 mp2 mp3
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Duration : 9 s 360 ms
Bit rate mode : Constant
Bit rate : 160 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 183 KiB (100%)
Writing library : LAME3.99.5
General
Complete name : second_file.wav
Format : Wave
File size : 1.41 MiB
Duration : 15 s 445 ms
Overall bit rate mode : Constant
Overall bit rate : 768 kb/s
Audio
Format : PCM
Format settings : Little / Signed
Codec ID : 1
Duration : 15 s 445 ms
Bit rate mode : Constant
Bit rate : 768 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 1.41 MiB (100%)
Estoy intentando convertir el segundo archivo al primer formato con toda la codificación, bits y otras características de audio iguales que el primer audio.
Mi versión LAME era 3.100, alguien sugirió que deberías obtener LAME3.99.5 ya que el primer audio se escribió usando esa. Instalé LAME3.99.5 en mis macos y probé este comando:
lame -b 160 -h second_file.wav converted.mp3
información del archivo de salida:
General
Complete name : converted.mp3
Format : MPEG Audio
File size : 303 KiB
Duration : 15 s 480 ms
Overall bit rate mode : Constant
Overall bit rate : 160 kb/s
Writing library : LAME3.99r
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Duration : 15 s 480 ms
Bit rate mode : Constant
Bit rate : 160 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 302 KiB (100%)
Writing library : LAME3.99r
Encoding settings : -m m -V 4 -q 2 -lowpass 20.5 -b 160
¿Es exactamente igual que el primer archivo o estoy perdiendo información y cometiendo algún error?
También intenté convertir ambos archivos en .mp3 usando ffmpeg.
General
Complete name : s1.mp3
Format : MPEG Audio
File size : 147 KiB
Duration : 9 s 384 ms
Overall bit rate mode : Variable
Overall bit rate : 128 kb/s
Writing library : LAME3.100
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Format settings : Joint stereo / MS Stereo
Duration : 9 s 384 ms
Bit rate mode : Variable
Bit rate : 128 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 147 KiB (100%)
Writing library : LAME3.100
Segundo archivo después de la conversión usando ffmpeg
General
Complete name : s2.mp3
Format : MPEG Audio
File size : 121 KiB
Duration : 15 s 480 ms
Overall bit rate mode : Variable
Overall bit rate : 64.0 kb/s
Writing library : Lavf58.29.100
Audio
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Duration : 15 s 480 ms
Bit rate mode : Variable
Bit rate : 64.0 kb/s
Channel(s) : 1 channel
Sampling rate : 48.0 kHz
Frame rate : 41.667 FPS (1152 SPF)
Compression mode : Lossy
Stream size : 121 KiB (100%)
Como puedes ver hay pocas diferencias en ambos audios. La forma de escalar ambos formatos de audio en un formato con todas las características (velocidad de bits, muestreo, etc.) debe ser la misma en ambos.