如果使用 sox 进行转换,它会在元数据中添加一条注释:
$ soxi audio.wav
Input File : 'audio.wav'
Channels : 1
Sample Rate : 48000
Precision : 24-bit
Duration : 00:00:04.20 = 201600 samples ~ 315 CDDA sectors
File Size : 605k
Bit Rate : 1.15M
Sample Encoding: 24-bit Signed Integer PCM
$ sox audio.wav audio.flac
$ soxi audio.flac
Input File : 'audio.flac'
Channels : 1
Sample Rate : 48000
Precision : 24-bit
Duration : 00:00:04.20 = 201600 samples ~ 315 CDDA sectors
File Size : 414k
Bit Rate : 788k
Sample Encoding: 24-bit FLAC
Comment : 'Comment=Processed by SoX'
如何预防或者消除这种情况?
答案1
--comment ''
将阻止添加或删除现有评论
sox audio.wav -comment '' audio.flac
Channels : 1
Sample Rate : 48000
Precision : 24-bit
Duration : 00:00:04.20 = 201600 samples ~ 315 CDDA sectors
File Size : 414k
Bit Rate : 788k
Sample Encoding: 24-bit FLAC