mbox series

[FFmpeg-devel,v5,00/10] Add support for H266/VVC

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

Message

Thomas Siedel Jan. 3, 2023, 1: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 v4:

General:
    - Add original author to patches 01-03
    - Add co-author to patches 04 and 05

PATCH 02/10 configure / cbs_h266_syntax_template
    - bugfix: add cbs_h266, cbs_h266_select (moved from patch 03/10)
    - bugfix: parsing multilayer in cbs_h265_syntax_template

PATCH 03/10 libavcodec/vvc_parser.c
    - bugfix: check startcode length (3 or 4 byte) to 
              find correct frame end position

PATCH 06/10 libavformat/movenc.c
    - merge movenc.c with upstream

PATCH 07/10 libavcodec/libvvdec.c
    - bugfix: set correct avframe pts for decoded picture
    - bugfix: print additional info if decoding fails

Nuo Mi (3):
  avcodec: add enum types for H266/VVC
  avcodec: add cbs for H266/VVC
  avcodec: add bitstream parser 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                |  373 ++-
 libavcodec/cbs_h266.h                 |  791 +++++++
 libavcodec/cbs_h266_syntax_template.c | 3096 +++++++++++++++++++++++++
 libavcodec/cbs_internal.h             |    1 +
 libavcodec/cbs_sei.c                  |   29 +
 libavcodec/h2645_parse.c              |   71 +-
 libavcodec/h266_metadata_bsf.c        |  146 ++
 libavcodec/libvvdec.c                 |  548 +++++
 libavcodec/libvvenc.c                 |  469 ++++
 libavcodec/parsers.c                  |    1 +
 libavcodec/version.h                  |    2 +-
 libavcodec/vvc.h                      |  142 ++
 libavcodec/vvc_mp4toannexb_bsf.c      |  329 +++
 libavcodec/vvc_paramset.c             | 1005 ++++++++
 libavcodec/vvc_paramset.h             |  429 ++++
 libavcodec/vvc_parse_extradata.c      |  249 ++
 libavcodec/vvc_parse_extradata.h      |   36 +
 libavcodec/vvc_parser.c               |  603 +++++
 libavformat/Makefile                  |    8 +-
 libavformat/allformats.c              |    2 +
 libavformat/demux.c                   |    7 +-
 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 +
 libavformat/vvc.c                     |  984 ++++++++
 libavformat/vvc.h                     |   99 +
 libavformat/vvcdec.c                  |   61 +
 39 files changed, 9648 insertions(+), 11 deletions(-)
 create mode 100644 libavcodec/cbs_h266.h
 create mode 100644 libavcodec/cbs_h266_syntax_template.c
 create mode 100644 libavcodec/h266_metadata_bsf.c
 create mode 100644 libavcodec/libvvdec.c
 create mode 100644 libavcodec/libvvenc.c
 create mode 100644 libavcodec/vvc.h
 create mode 100644 libavcodec/vvc_mp4toannexb_bsf.c
 create mode 100644 libavcodec/vvc_paramset.c
 create mode 100644 libavcodec/vvc_paramset.h
 create mode 100644 libavcodec/vvc_parse_extradata.c
 create mode 100644 libavcodec/vvc_parse_extradata.h
 create mode 100644 libavcodec/vvc_parser.c
 create mode 100644 libavformat/vvc.c
 create mode 100644 libavformat/vvc.h
 create mode 100644 libavformat/vvcdec.c