[FFmpeg-devel] [PATCH 0/5] Pass Xing gapless metadata to users during mp3 parsing

Jon Toohill jtoohill at google.com
Wed Jul 13 02:19:51 EEST 2016

These patches expose the encoder delay/padding parsed from an mp3's Xing header to users of lavc/lavf, and show gapless info in the stream summary string. They also change ffmpeg to pass Xing gapless metadata from input to output when using -acodec copy.

trailing_padding is still not set properly when encoding with libmp3lame, causing an encode/decode round trip to add trailing silence. This is not a regression from current behavior, and will be addressed in a separate patch set.

Jon Toohill (5):
  lavf/mp3dec: pass Xing gapless metadata to AVCodecParameters
  libmp3lame + mp3enc: removes decoder delay compensation
  lavc: show gapless info in stream summary
  ffmpeg: copy trailing_padding when using -acodec copy
  lavf/mp3enc: write trailing_padding in Xing header

 doc/APIchanges          |  8 ++++++++
 ffmpeg.c                |  1 +
 libavcodec/avcodec.h    | 11 +++++++++++
 libavcodec/libmp3lame.c |  2 +-
 libavcodec/utils.c      | 40 +++++++++++++++++++++++-----------------
 libavcodec/version.h    |  2 +-
 libavformat/mp3dec.c    |  2 ++
 libavformat/mp3enc.c    |  9 ++++++---
 8 files changed, 53 insertions(+), 22 deletions(-)


More information about the ffmpeg-devel mailing list