2

lame is writing a replaygain tag if the option --noreplaygain is not set:

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, 

Can I use ffmpeg to remove the "Side data"? In my trys with map metadata I cannot access this "Side data" to remove it: -map 0:0 -map_metadata -1

fexplorer
  • 43
  • 1
  • 7
  • There's a [filter](https://ffmpeg.org/ffmpeg-filters.html#sidedata_002c-asidedata) to remove side data but it doesn't seem to work. – aergistal Aug 09 '17 at 15:05

1 Answers1

0

It appears to get removed if you roundtrip it via MP4.

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

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

Or use a pipe for a single-step method:

ffmpeg -i testgain_0.mp3 -c copy -f avi - | ffmpeg -i - -c copy nogain_0.mp3
Gyan
  • 85,394
  • 9
  • 169
  • 201