[FFmpeg-devel] [RFC 00/13] flvdec/flvenc: add support for enhanced rtmp codecs and multitrack/multichannel

Timo Rothenpieler timo at rothenpieler.org
Tue May 21 12:02:09 EEST 2024


This is based on the preliminary spec for enhanced rtmp v2:
https://veovera.org/docs/enhanced/enhanced-rtmp-v2

The spec is not final, and can still undergo breaking changes, hence this set is purely for comments and review, and not ready to be merged until the final v2 spec is published.

There are no samples out in the wild yet, so testing interoperability with other software has not happened yet either.
Specially the two other multitrack modes, where multiple tracks are in the same packet, have not been tested at all, since no software can write such files.

The set can also be found on GitHub, where ignoring whitespaces makes specially the last patch a lot more readable:
https://github.com/BtbN/FFmpeg/tree/enhanced-flv


Dennis Sädtler via ffmpeg-devel (2):
  avformat/flvenc: Implement support for multi-track video
  avformat/flvdec: Add support for demuxing multi-track FLV

Timo Rothenpieler (11):
  avformat/flvenc: add enhanced audio codecs
  avformat/flvenc: remove !size check for audio packets
  avformat/flvdec: add enhanced audio codecs
  avformat/flvenc: refactor fourcc writing
  avformat/flvenc: write enhanced rtmp multichannel info for audio with
    more than two channels
  avformat/flvdec: parse enhanced rtmp multichannel info
  avformat/flvenc: add support for writing multi track audio
  avformat/flvdec: add support for reading multi track audio
  avformat/rtmpproto: add more enhanced rtmp codecs
  avformat/flvdec: stop shadowing local variables
  avformat/flvdec: support all multi-track modes

 libavformat/flv.h       |  21 ++
 libavformat/flvdec.c    | 654 +++++++++++++++++++++++++++-------------
 libavformat/flvenc.c    | 443 +++++++++++++++++++++------
 libavformat/rtmpproto.c |  11 +-
 4 files changed, 819 insertions(+), 310 deletions(-)

-- 
2.43.2



More information about the ffmpeg-devel mailing list