ffmpeg:从 mp3 中删除 lame replaygain 标签
ffmpeg: remove lame replaygain tag from mp3
如果选项 --noreplaygain
未设置,lame 正在编写重播增益标签:
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 删除 "Side data" 吗?在我尝试使用 map metadata
时,我无法访问此 "Side data" 以将其删除:-map 0:0 -map_metadata -1
如果您通过 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
如果选项 --noreplaygain
未设置,lame 正在编写重播增益标签:
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 删除 "Side data" 吗?在我尝试使用 map metadata
时,我无法访问此 "Side data" 以将其删除:-map 0:0 -map_metadata -1
如果您通过 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