Opened 17 months ago
Closed 17 months ago
#11411 closed enhancement (fixed)
VVC support in Matroska
| Reported by: | MasterQuestionable | Owned by: | |
|---|---|---|---|
| Priority: | wish | Component: | avformat |
| Version: | git-master | Keywords: | matroska vvc |
| Cc: | MasterQuestionable | Blocked By: | |
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | yes |
Description (last modified by )
͏= VVC generated by FFmpeg not playing by same-bundled FFplay? =
͏ 2025-01-08-git-251de1791e-full_build-www.gyan.dev
͏ ffmpeg -v debug -hide_banner -nostdin -nostats -f lavfi -i "testsrc2=1920x1080:30:d=5" -c:v libvvenc "Out.mkv"
͏ ffplay -v trace "Out.mkv"
[vvc] nal_unit_type: 14(VPS_NUT), nuh_layer_id: 36, temporal_id: 5
[vvc] nal_unit_type: 15(SPS_NUT), nuh_layer_id: 0, temporal_id: 0
[vvc] nal_unit_type: 16(PPS_NUT), nuh_layer_id: 0, temporal_id: 0
[vvc] Invalid value at vps_layer_id[i]: bitstream ended.
[vvc] Failed to read unit 0 (type 14).
[matroska,webm] Failed to open codec in avformat_find_stream_info
[NULL] Failed to parse extradata.
[NULL] nal_unit_type: 20(AUD_NUT), nuh_layer_id: 0, temporal_id: 0
[NULL] nal_unit_type: 15(SPS_NUT), nuh_layer_id: 0, temporal_id: 0
[NULL] nal_unit_type: 16(PPS_NUT), nuh_layer_id: 0, temporal_id: 0
[NULL] nal_unit_type: 17(APS_PREFIX), nuh_layer_id: 0, temporal_id: 0
[NULL] nal_unit_type: 7(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
͏ Out of curiosity I decided to test...
͏ Very-slow-broken Video Codec?
Change History (5)
follow-ups: 2 4 comment:1 by , 17 months ago
| Component: | avcodec → avformat |
|---|---|
| Keywords: | matroska added; libvvenc removed |
comment:2 by , 17 months ago
Replying to Frank Plowman:
Matroska does not support VVC. I feel like there should be an error message or warning if you try to encode a Matroska VVC file, but this is out of my ballpark.
It looks like maybe some newer versions of Matroska do support VVC (drafts?), but regardless this is a container and not a codec issue.
comment:3 by , 17 months ago
| Priority: | important → wish |
|---|---|
| Status: | new → open |
| Summary: | VVC generated by FFmpeg not playing by same-bundled FFplay? → VVC support in Matroska |
| Type: | defect → enhancement |
It is supported. See https://github.com/ietf-wg-cellar/matroska-specification/blob/master/codec_specs.md#v_mpegiisovvc
I'll send a patch to add support for it.
comment:4 by , 17 months ago
| Description: | modified (diff) |
|---|---|
| Keywords: | vvc matroska → matroska vvc |
͏ Well... much surprising.
͏ I believe Matroska is designed to support arbitrary codecs?
͏ So only MP4 support yet?
comment:5 by , 17 months ago
| Resolution: | → fixed |
|---|---|
| Status: | open → closed |
Implemented in df50370e1b10d39047fe92f7f4418094bb507eec



Matroska does not support VVC. I feel like there should be an error message or warning if you try to encode a Matroska VVC file, but this is out of my ballpark.
Without the container involved, the sample plays fine:
ffmpeg -f lavfi -i "testsrc2=1920x1080:30:d=5" -map 0 -c:v libvvenc -f data "out.vvc"ffplay out.vvc