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

Jon Toohill jtoohill at google.com
Thu Jun 16 20:16:04 CEST 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 (3):
  lavf/mp3dec: pass Xing gapless metadata to AVCodecParameters
  lavc: show gapless info in stream summary
  ffmpeg: copy trailing_padding when using -acodec copy

 doc/APIchanges          |  4 ++++
 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, 49 insertions(+), 22 deletions(-)


More information about the ffmpeg-devel mailing list