mbox series

[FFmpeg-devel,v6,00/11] Add support for H266/VVC

Message ID 20230210174106.44514-1-thomas.ff@spin-digital.com
Headers show
Series Add support for H266/VVC | expand

Message

Thomas Siedel Feb. 10, 2023, 5:40 p.m. UTC
This patch set adds H266/VVC support.
This includes parsing, muxing, demuxing, decoding and encoding.
Decoding is done using the external library VVdeC
(https://github.com/fraunhoferhhi/vvdec.git) and can be enabled with
--enable-libvvdec.
Encoding is done using the external library VVenC
(https://github.com/fraunhoferhhi/vvenc.git) and can be enabled with
--enable-libvvenc.


Changes since v5:

general:
- align filename to h266 pattern ( feedback zhilizhao(赵志立) )
  - mv vvc_mp4toannexb_bsf h266_mp4toannexb_bsf
  - mv vvc_paramset h266_paramset
  - mv vvc.h/.c h266.h./c 
  - mv vvcdec h266dec
  - mv vvc_parse_extradata h266_parse_extradata
  - mv vvc_parser h266_parser
- rename functions in renamed files to h266 syntax
- split patch 4 into 2 seperated patches

PATCH 2/10  ( feedback zhilizhao(赵志立) )
  - cbs_h266_syntax_template: replacing h266_ceil() with
    AV_CEIL_RSHIFT()
  - bugfix: cbs_h266_free_sei: using H266RawSEI instead of H265RawSEI

PATCH 3/10
  - bugfix: h266_parser.c parse_nal_units() parsing all frames correctly
    (before frames could be missing)

PATCH 4/10 ( feedback zhilizhao(赵志立) )
  - mv vvc_mp4toannexb_bsf h266_mp4toannexb_bsf
  - add IS_H266_SLICE in cbs_h266.h (remove duplicate macro from
    vvc_parser.c h266_metadata.bsf )
  - bitstream_filters.c sort FFBitStreamFilter
  - h266_metadata_update_fragment: check pkt!=NULL, replace else{ if() }
    by else if()

split Patch 4 into separate patches
- PATCH 4 is now h266_metadata_bsf 
- PATCH 5 is h266_mp4toannexb_bsf 

PATH 8/10
 - cleanup h266_paramset.h ( remove duplicate structs from cbs_h266.h)


Nuo Mi (4):
  avcodec: add enum types for H266/VVC
  avcodec: add cbs for H266/VVC
  avcodec: add bitstream parser for H266/VVC
  avcodec: add h266_metadata_bsf support for H266/VVC

Thomas Siedel (7):
  avcodec: add MP4 to annexb support for H266/VVC
  avformat: add demuxer and probe support for H266/VVC
  avformat: add muxer support for H266/VVC
  avcodec: add external decoder libvvdec for H266/VVC
  avcodec: add external encoder libvvenc for H266/VVC
  avformat: add ts stream types for H266/VVC
  avcodec: increase minor version for H266/VVC

 configure                             |   16 +-
 libavcodec/Makefile                   |    6 +
 libavcodec/allcodecs.c                |    2 +
 libavcodec/bitstream_filters.c        |    2 +
 libavcodec/cbs.c                      |    6 +
 libavcodec/cbs_h2645.c                |  370 ++-
 libavcodec/cbs_h266.h                 |  793 +++++++
 libavcodec/cbs_h266_syntax_template.c | 3096 +++++++++++++++++++++++++
 libavcodec/cbs_internal.h             |    1 +
 libavcodec/cbs_sei.c                  |   29 +
 libavcodec/h2645_parse.c              |   71 +-
 libavcodec/h266.h                     |  142 ++
 libavcodec/h266_metadata_bsf.c        |  147 ++
 libavcodec/h266_mp4toannexb_bsf.c     |  329 +++
 libavcodec/h266_paramset.c            | 1005 ++++++++
 libavcodec/h266_paramset.h            |  307 +++
 libavcodec/h266_parse_extradata.c     |  249 ++
 libavcodec/h266_parse_extradata.h     |   36 +
 libavcodec/h266_parser.c              |  601 +++++
 libavcodec/libvvdec.c                 |  548 +++++
 libavcodec/libvvenc.c                 |  469 ++++
 libavcodec/parsers.c                  |    1 +
 libavcodec/version.h                  |    2 +-
 libavformat/Makefile                  |    8 +-
 libavformat/allformats.c              |    2 +
 libavformat/demux.c                   |    7 +-
 libavformat/h266.c                    |  984 ++++++++
 libavformat/h266.h                    |   99 +
 libavformat/h266dec.c                 |   61 +
 libavformat/isom.c                    |    1 +
 libavformat/isom_tags.c               |    3 +
 libavformat/mov.c                     |    6 +
 libavformat/movenc.c                  |   41 +-
 libavformat/mpeg.c                    |    3 +
 libavformat/mpeg.h                    |    1 +
 libavformat/mpegts.c                  |    2 +
 libavformat/mpegts.h                  |    1 +
 libavformat/mpegtsenc.c               |   65 +
 libavformat/rawenc.c                  |   23 +
 39 files changed, 9523 insertions(+), 12 deletions(-)
 create mode 100644 libavcodec/cbs_h266.h
 create mode 100644 libavcodec/cbs_h266_syntax_template.c
 create mode 100644 libavcodec/h266.h
 create mode 100644 libavcodec/h266_metadata_bsf.c
 create mode 100644 libavcodec/h266_mp4toannexb_bsf.c
 create mode 100644 libavcodec/h266_paramset.c
 create mode 100644 libavcodec/h266_paramset.h
 create mode 100644 libavcodec/h266_parse_extradata.c
 create mode 100644 libavcodec/h266_parse_extradata.h
 create mode 100644 libavcodec/h266_parser.c
 create mode 100644 libavcodec/libvvdec.c
 create mode 100644 libavcodec/libvvenc.c
 create mode 100644 libavformat/h266.c
 create mode 100644 libavformat/h266.h
 create mode 100644 libavformat/h266dec.c