ffmpeg:从mp3中删除lame replaygain标签

时间:2017-08-09 14:21:38

标签: ffmpeg lame replaygain

如果没有设置选项--noreplaygain

lame正在写一个replaygain标签:

ffmpeg -i testgain_0.mp3
Input #0, mp3, from 'testgain_0.mp3':
Duration: 00:01:00.42, start: 0.025057, bitrate: 192 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
Metadata:
  encoder         : LAME3.99r
Side data:
  replaygain: track gain - -12.500000, track peak - unknown, album gain - unknown, album peak - unknown, 

我可以使用ffmpeg删除“边数据”吗?在我使用map metadata的版本中,我无法访问此“边数据”以将其删除:-map 0:0 -map_metadata -1

1 个答案:

答案 0 :(得分:0)

如果您通过MP4往返,它似乎会被移除。

ffmpeg -i testgain_0.mp3 -c copy testgain_0.mp4

ffmpeg -i testgain_0.mp4 -c copy nogain_0.mp3

或者使用管道进行单步法:

ffmpeg -i testgain_0.mp3 -c copy -f avi - | ffmpeg -i - -c copy nogain_0.mp3