mirror of https://github.com/FFmpeg/FFmpeg.git
Tags in the Matroska file format can be summarized as follows: There is a level 1-element called Tags containing one or many Tag elements each of which in turn contain a Targets element and one or many SimpleTags. Each SimpleTag roughly corresponds to a single key-value pair similar to an AVDictionaryEntry. The Targets meanwhile contains information to what the metadata contained in the SimpleTags contained in the containing Tag applies (i.e. to the file as a whole or to an individual track). The Matroska muxer writes such metadata. It puts the metadata of every stream into a Tag whose Targets makes it point to the corresponding track. And if the output is seekable, then it also adds another Tag for each track whose Targets corresponds to the track and where it reserves space in a SimpleTag to write the duration at the end of the muxing process into. Yet there is no reason to write two Tag elements for a track and a few bytes (typically 24 bytes per track) can be saved by adding the duration SimpleTag to the other Tag of the same track (if it exists). FATE has been updated because the output files changed. (Tests that write to unseekable output (pipes) needn't be updated (no duration tag has ever been written for them) and the same applies to tests without further metadata.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>pull/336/head
parent
3c3ad1deb0
commit
bd7dea3f4f
7 changed files with 53 additions and 59 deletions
@ -1,3 +1,3 @@ |
||||
58936d3ad4eb1372bd2e5845963fe17c *tests/data/lavf/lavf.mka |
||||
43563 tests/data/lavf/lavf.mka |
||||
9bd06ae5291de75c19a60c3f39db4c09 *tests/data/lavf/lavf.mka |
||||
43538 tests/data/lavf/lavf.mka |
||||
tests/data/lavf/lavf.mka CRC=0x3a1da17e |
||||
|
@ -1,3 +1,3 @@ |
||||
6ec6d6a058a85bf616e0b981bb8e383f *tests/data/lavf/lavf.mkv |
||||
320466 tests/data/lavf/lavf.mkv |
||||
85ef0666b3ad642221793b1c4f985011 *tests/data/lavf/lavf.mkv |
||||
320418 tests/data/lavf/lavf.mkv |
||||
tests/data/lavf/lavf.mkv CRC=0xec6c3c68 |
||||
|
@ -1,3 +1,3 @@ |
||||
41b4f132ada6e0faedf92e909526a899 *tests/data/lavf/lavf.mkv_attachment |
||||
472617 tests/data/lavf/lavf.mkv_attachment |
||||
c339e42793d2a3cb1b8e99fc7a60de31 *tests/data/lavf/lavf.mkv_attachment |
||||
472569 tests/data/lavf/lavf.mkv_attachment |
||||
tests/data/lavf/lavf.mkv_attachment CRC=0xec6c3c68 |
||||
|
@ -1,48 +1,48 @@ |
||||
ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 714 size: 208 |
||||
ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 666 size: 208 |
||||
ret: 0 st:-1 flags:0 ts:-1.000000 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
ret: 0 st:-1 flags:1 ts: 1.894167 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292346 size: 27834 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292298 size: 27834 |
||||
ret: 0 st: 0 flags:0 ts: 0.788000 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292346 size: 27834 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292298 size: 27834 |
||||
ret: 0 st: 0 flags:1 ts:-0.317000 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
ret:-1 st: 1 flags:0 ts: 2.577000 |
||||
ret: 0 st: 1 flags:1 ts: 1.471000 |
||||
ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320187 size: 209 |
||||
ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320139 size: 209 |
||||
ret: 0 st:-1 flags:0 ts: 0.365002 |
||||
ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146898 size: 27925 |
||||
ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146850 size: 27925 |
||||
ret: 0 st:-1 flags:1 ts:-0.740831 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
ret:-1 st: 0 flags:0 ts: 2.153000 |
||||
ret: 0 st: 0 flags:1 ts: 1.048000 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292346 size: 27834 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292298 size: 27834 |
||||
ret: 0 st: 1 flags:0 ts:-0.058000 |
||||
ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 714 size: 208 |
||||
ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 666 size: 208 |
||||
ret: 0 st: 1 flags:1 ts: 2.836000 |
||||
ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320187 size: 209 |
||||
ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320139 size: 209 |
||||
ret:-1 st:-1 flags:0 ts: 1.730004 |
||||
ret: 0 st:-1 flags:1 ts: 0.624171 |
||||
ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146898 size: 27925 |
||||
ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146850 size: 27925 |
||||
ret: 0 st: 0 flags:0 ts:-0.482000 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
ret: 0 st: 0 flags:1 ts: 2.413000 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292346 size: 27834 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292298 size: 27834 |
||||
ret:-1 st: 1 flags:0 ts: 1.307000 |
||||
ret: 0 st: 1 flags:1 ts: 0.201000 |
||||
ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 714 size: 208 |
||||
ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 666 size: 208 |
||||
ret: 0 st:-1 flags:0 ts:-0.904994 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
ret: 0 st:-1 flags:1 ts: 1.989173 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292346 size: 27834 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292298 size: 27834 |
||||
ret: 0 st: 0 flags:0 ts: 0.883000 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292346 size: 27834 |
||||
ret: 0 st: 0 flags:1 dts: 0.971000 pts: 0.971000 pos: 292298 size: 27834 |
||||
ret: 0 st: 0 flags:1 ts:-0.222000 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
ret:-1 st: 1 flags:0 ts: 2.672000 |
||||
ret: 0 st: 1 flags:1 ts: 1.566000 |
||||
ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320187 size: 209 |
||||
ret: 0 st: 1 flags:1 dts: 0.993000 pts: 0.993000 pos: 320139 size: 209 |
||||
ret: 0 st:-1 flags:0 ts: 0.460008 |
||||
ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146898 size: 27925 |
||||
ret: 0 st: 0 flags:1 dts: 0.491000 pts: 0.491000 pos: 146850 size: 27925 |
||||
ret: 0 st:-1 flags:1 ts:-0.645825 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 930 size: 27837 |
||||
ret: 0 st: 0 flags:1 dts: 0.011000 pts: 0.011000 pos: 882 size: 27837 |
||||
|
Loading…
Reference in new issue