【发布时间】:2012-09-15 17:38:45
【问题描述】:
有没有办法用 SoX 修剪文件的结尾,以毫秒为单位,我试过这个:
sox tracks\5_7.mp3 ntracks\05_7.mp3 trim 2 2.195
但是,它只是说End position is after expected end of audio,尽管文件实际上是那么长。
所以我试图让这首歌长 2.000 秒,而不是 2.195 秒,而且,我用 600 多个文件这样做,所以需要从命令行完成。
这是我的警告:
sox WARN mp3: MAD lost sync"(this always happens, means nothing)
sox WARN trim: Last 1 position(s) not reached (audio shorter than expected)
sox WARN sox: 'tracks\01_1.mp3' balancing clipped 3 samples; decrease volume?
此音频文件用于“00:00:02.19”。
在命令行中输入的行是:
sox -v3 tracks\01_1.mp3 ntracks\01_1.mp3 trim 2 0.19 pause
这是我详细的开始:
D:\Stuff\Habbo trax maker\trax maker\mp3support>sox -V3 tracks\01_1.mp3 ntracks\
01_1.mp3 trim 2 0.19
sox: SoX v14.4.0
Input File : 'tracks\01_1.mp3'
Channels : 1
Sample Rate : 44100
Precision : 16-bit
Duration : 00:00:02.19 = 96755 samples = 164.549 CDDA sectors
File Size : 17.6k
Bit Rate : 64.0k
Sample Encoding: MPEG audio (layer I, II or III)
sox INFO sox: Overwriting `ntracks\01_1.mp3'
sox INFO mp3: using MP3 encoding defaults
Output File : 'ntracks\01_1.mp3'
Channels : 1
Sample Rate : 44100
Precision : 24-bit
Sample Encoding: MPEG audio (layer I, II or III)
Comment : 'Processed by SoX'
sox INFO sox: effects chain: input 44100Hz 1 channels
sox INFO sox: effects chain: trim 44100Hz 1 channels
sox INFO sox: effects chain: output 44100Hz 1 channels
sox WARN mp3: MAD lost sync
sox WARN trim: Last 1 position(s) not reached (audio shorter than expected).
【问题讨论】:
-
好的,我做了 V 详细或逐字或任何开头:P
-
还有一个问题...当我检查音频的大小时,使用不同的程序(因为 SoX 只检查到小数点后第二位)它大约 0-99MilliSeconds 关闭,是否有可能解决这个问题?
-
是的,但是,SoX 没有显示到毫秒,所以我看不出它在 SoX 中是否准确,这就是为什么我在另一个程序中检查它:P 它是 2.036 秒长.另外,我怎样才能停止混合改变音量?
-
wav 文件非常庞大,并且在我正在做的事情中支持 ogg arnt,我的程序有超过 640 个声音文件。我可以,将其编码为 .wav,修剪,然后再将其编码回去,这行得通吗?
-
看起来我无法完成我的音乐程序.. 除非有一个 C++ 库可以更好地加入或修剪声音:P 实际上你可以在混合后让 SoX 覆盖另一个声音,所以声音 1 持续了 2.036 秒,声音 2 开始 00:00:02.000,即使另一部分还没有停止?