我正在尝试从文件中删除静音mp3
,并解析进度详细信息:
G:\testing\test>sox -S trim.mp3 trim2.mp3 reverse silence 1 0.1 0.1% reverse
Input File : 'trim.mp3'
Channels : 2
Sample Rate : 44100
Precision : 16-bit
Duration : 00:04:24.06 = 11644870 samples = 19804.2 CDDA sectors
Sample Encoding: MPEG audio (layer I, II or III)
In:100% 00:04:23.96 [00:00:00.09] Out:11.6M [ | ] Hd:0.0 Clip:400
sox sox: trim2.mp3: output clipped 400 samples; decrease volume?
Done.
G:\testing\test>
我应该能够解析这些数据,同时将Out:11.6M
数据作为我的进度,但是这个文件的文件大小实际上是4.03MB
. 也许这些数据与输出文件大小无关?
如何正确总结编码任务的进度?