[FFmpeg-devel] [PATCH v2 0/5] avformat/movenc: btrt box support

Jan Ekström jeebjp at gmail.com
Mon Sep 21 20:29:43 EEST 2020


Version 2:
- Only writes the btrt box if at least value is nonzero.
- Other smaller changes based on Martin's comments. 

Various media ingest servers read the incoming stream's advertised bit
rate from this box.

As it is only defined for timed metadata tracks in QTFF, limit it to
just MODE_MP4 (ISOBMFF) for now.

Unifies the MPEG-4 bit rate value calculation, and attempts to utilize
it wherever applicable.

Jan Ekström (5):
  avformat/movenc: split MPEG-4 bit rate value calculation
  avformat/movenc: utilize bit rate helper function in ISML writing
  avformat/movenc: implement writing of the btrt box
  avformat/movenc: use more fall-back values for average bit rate fields
  avformat/movenc: simplify ISML manifest bit rate logic

 libavformat/movenc.c               | 112 +++++++++++++++++++++++------
 tests/fate/mov.mak                 |   2 +-
 tests/ref/fate/copy-trac3074       |   4 +-
 tests/ref/fate/movenc              |  12 ++--
 tests/ref/lavf-fate/av1.mp4        |   4 +-
 tests/ref/lavf-fate/h264.mp4       |   4 +-
 tests/ref/lavf/ismv                |   6 +-
 tests/ref/lavf/mp4                 |  12 ++--
 tests/ref/vsynth/vsynth1-mpeg4     |   4 +-
 tests/ref/vsynth/vsynth2-mpeg4     |   4 +-
 tests/ref/vsynth/vsynth3-mpeg4     |   4 +-
 tests/ref/vsynth/vsynth_lena-mpeg4 |   4 +-
 12 files changed, 119 insertions(+), 53 deletions(-)

-- 
2.26.2



More information about the ffmpeg-devel mailing list