Opened 2 hours ago

Last modified 16 minutes ago

#11411 open enhancement

VVC support in Matroska

Reported by: MasterQuestionable Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: vvc matroska
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description

͏    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 (3)

comment:1 by Frank Plowman, 64 minutes ago

Component: avcodecavformat
Keywords: matroska added; libvvenc removed

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

in reply to:  1 comment:2 by Frank Plowman, 60 minutes 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 James, 16 minutes ago

Priority: importantwish
Status: newopen
Summary: VVC generated by FFmpeg not playing by same-bundled FFplay?VVC support in Matroska
Type: defectenhancement
Note: See TracTickets for help on using tickets.