[FFmpeg-devel] fate: Add Canon XF705 demux tests

Submitted by Tomas Härdin on March 8, 2019, 1:20 p.m.

Details

Message ID 1552051244.16051.8.camel@acc.umu.se
State New
Headers show

Commit Message

Tomas Härdin March 8, 2019, 1:20 p.m.
Hi

This adds some HEVC demux tests for mxfdec.c for the Canon XF705
samples provided by Matthew McKenna. I suspect the thing that's most
valuable here is that the codec probing works correctly, which it seems
to do.

Thoughts?

/Tomas

Comments

Carl Eugen Hoyos March 8, 2019, 6:04 p.m.
2019-03-08 14:20 GMT+01:00, Tomas Härdin <tjoppen@acc.umu.se>:

> This adds some HEVC demux tests for mxfdec.c for the
> Canon XF705 samples provided by Matthew McKenna.
> I suspect the thing that's most valuable here is that the
> codec probing works correctly, which it seems to do.

This email is missing the additional size in the fate repo.

I would prefer not to be the one arguing against an additional
test but afaict this is testing one line in a static array: Is that
really useful and does it justify a large additional file?

Thank you, Carl Eugen
Tomas Härdin March 8, 2019, 6:36 p.m.
fre 2019-03-08 klockan 19:04 +0100 skrev Carl Eugen Hoyos:
> 2019-03-08 14:20 GMT+01:00, Tomas Härdin <tjoppen@acc.umu.se>:
> 
> > This adds some HEVC demux tests for mxfdec.c for the
> > Canon XF705 samples provided by Matthew McKenna.
> > I suspect the thing that's most valuable here is that the
> > codec probing works correctly, which it seems to do.
> 
> This email is missing the additional size in the fate repo.
> 
> I would prefer not to be the one arguing against an additional
> test but afaict this is testing one line in a static array: Is that
> really useful and does it justify a large additional file?

That's a fair point. Maybe if they were a single frame each.. Matthew?

/Tomas
Matthew McKenna March 8, 2019, 7:10 p.m.
On 3/8/2019 1:36 PM, Tomas Härdin wrote:
> fre 2019-03-08 klockan 19:04 +0100 skrev Carl Eugen Hoyos:
>> 2019-03-08 14:20 GMT+01:00, Tomas Härdin <tjoppen@acc.umu.se>:
>>
>>> This adds some HEVC demux tests for mxfdec.c for the
>>> Canon XF705 samples provided by Matthew McKenna.
>>> I suspect the thing that's most valuable here is that the
>>> codec probing works correctly, which it seems to do.
>> This email is missing the additional size in the fate repo.
>>
>> I would prefer not to be the one arguing against an additional
>> test but afaict this is testing one line in a static array: Is that
>> really useful and does it justify a large additional file?
> That's a fair point. Maybe if they were a single frame each.. Matthew?
>
> /Tomas


Hi-


The "verysmall" clips are as small as I can make them -- 1.3 megabytes 
-- 1 second of video + audio w/ bars+tone.  As this is coming off the 
camera there is not much editing capability, and the camera has a 
minimum record duration.


Would it suffice to test only a subset or sample of the clips?


-Matt
Carl Eugen Hoyos March 8, 2019, 7:28 p.m.
2019-03-08 20:10 GMT+01:00, Matthew McKenna <mmckenna@idsys.net>:
> On 3/8/2019 1:36 PM, Tomas Härdin wrote:
>> fre 2019-03-08 klockan 19:04 +0100 skrev Carl Eugen Hoyos:
>>> 2019-03-08 14:20 GMT+01:00, Tomas Härdin <tjoppen@acc.umu.se>:
>>>
>>>> This adds some HEVC demux tests for mxfdec.c for the
>>>> Canon XF705 samples provided by Matthew McKenna.
>>>> I suspect the thing that's most valuable here is that the
>>>> codec probing works correctly, which it seems to do.
>>> This email is missing the additional size in the fate repo.
>>>
>>> I would prefer not to be the one arguing against an additional
>>> test but afaict this is testing one line in a static array: Is that
>>> really useful and does it justify a large additional file?
>>
>> That's a fair point. Maybe if they were a single frame each.. Matthew?

>
> The "verysmall" clips are as small as I can make them -- 1.3 megabytes
> -- 1 second of video + audio w/ bars+tone.  As this is coming off the
> camera there is not much editing capability, and the camera has a
> minimum record duration.
>
> Would it suffice to test only a subset or sample of the clips?

Allow me to repeat my question:
Is this test meant to check a single entry in a static table?
If this test is necessary, we should patch the mxf muxer to
create a very low-res hevc mxf file that uses this uid.

Carl Eugen
Tomas Härdin March 8, 2019, 8:09 p.m.
fre 2019-03-08 klockan 20:28 +0100 skrev Carl Eugen Hoyos:
> > 2019-03-08 20:10 GMT+01:00, Matthew McKenna <mmckenna@idsys.net>:
> > On 3/8/2019 1:36 PM, Tomas Härdin wrote:
> > > fre 2019-03-08 klockan 19:04 +0100 skrev Carl Eugen Hoyos:
> > > > > > > > 2019-03-08 14:20 GMT+01:00, Tomas Härdin <tjoppen@acc.umu.se>:
> > > > 
> > > > > This adds some HEVC demux tests for mxfdec.c for the
> > > > > Canon XF705 samples provided by Matthew McKenna.
> > > > > I suspect the thing that's most valuable here is that the
> > > > > codec probing works correctly, which it seems to do.
> > > > 
> > > > This email is missing the additional size in the fate repo.
> > > > 
> > > > I would prefer not to be the one arguing against an additional
> > > > test but afaict this is testing one line in a static array: Is that
> > > > really useful and does it justify a large additional file?
> > > 
> > > That's a fair point. Maybe if they were a single frame each.. Matthew?
> > 
> > The "verysmall" clips are as small as I can make them -- 1.3 megabytes
> > -- 1 second of video + audio w/ bars+tone.  As this is coming off the
> > camera there is not much editing capability, and the camera has a
> > minimum record duration.
> > 
> > Would it suffice to test only a subset or sample of the clips?
> 
> Allow me to repeat my question:
> Is this test meant to check a single entry in a static table?
> If this test is necessary, we should patch the mxf muxer to
> create a very low-res hevc mxf file that uses this uid.

Well, it'd be a functional test. But more than likely the email chain
that goes with the original patch would provide enough justification
for the UL being there. And there already tests for HEVC itself. So no,
it's probably not necessary. The files are very well behaved

/Tomas

Patch hide | download patch | download mbox

From 28b47a582b7162637304bad9e37ae83b4f03caf2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <tjoppen@acc.umu.se>
Date: Wed, 6 Mar 2019 12:58:50 +0100
Subject: [PATCH] fate: Add Canon XF705 demux tests

---
 tests/fate/mxf.mak                        |  34 ++++++++
 tests/ref/fate/mxf-xf-hevc-2398p-1080-45M |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2398p-1080-60M |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2398p-4k-110M  |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2398p-4k-160M  |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2500p-1080-45M |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2500p-1080-60M |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2500p-4k-110M  |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2500p-4k-160M  |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-2997p-1080-45M |  76 ++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-2997p-1080-60M |  76 ++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-2997p-4k-110M  |  76 ++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-2997p-4k-160M  |  76 ++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5000i-1080-45M |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-5000i-1080-60M |  60 +++++++++++++
 tests/ref/fate/mxf-xf-hevc-5000p-1080-45M | 108 +++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5000p-1080-60M | 108 +++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5000p-4k-110M  | 108 +++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5000p-4k-160M  | 108 +++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5994i-1080-45M |  76 ++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5994i-1080-60M |  76 ++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5994p-1080-45M | 140 ++++++++++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5994p-1080-60M | 140 ++++++++++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5994p-4k-110M  | 140 ++++++++++++++++++++++++++++++
 tests/ref/fate/mxf-xf-hevc-5994p-4k-160M  | 140 ++++++++++++++++++++++++++++++
 25 files changed, 2082 insertions(+)
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2398p-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2398p-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2398p-4k-110M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2398p-4k-160M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2500p-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2500p-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2500p-4k-110M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2500p-4k-160M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2997p-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2997p-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2997p-4k-110M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-2997p-4k-160M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5000i-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5000i-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5000p-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5000p-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5000p-4k-110M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5000p-4k-160M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5994i-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5994i-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5994p-1080-45M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5994p-1080-60M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5994p-4k-110M
 create mode 100644 tests/ref/fate/mxf-xf-hevc-5994p-4k-160M

diff --git a/tests/fate/mxf.mak b/tests/fate/mxf.mak
index dce23d522e..6aec466ebf 100644
--- a/tests/fate/mxf.mak
+++ b/tests/fate/mxf.mak
@@ -14,6 +14,40 @@  fate-mxf-metadata-source-ref1: CMD = fmtstdout ffmetadata -i $(TARGET_SAMPLES)/m
 FATE_MXF += fate-mxf-metadata-source-ref2
 fate-mxf-metadata-source-ref2: CMD = fmtstdout ffmetadata -i $(TARGET_SAMPLES)/mxf/track_02_a01.mxf -fflags +bitexact -flags +bitexact -map 0:0 -map 0:1 -map 0:3  -map_metadata:g -1
 
+# Samples from Canon XF705 via Matthew McKenna
+MXF_XF_HEVC_SAMPLES = \
+  2398p-1080-45M  \
+  2398p-1080-60M  \
+  2398p-4k-110M   \
+  2398p-4k-160M   \
+  2500p-1080-45M  \
+  2500p-1080-60M  \
+  2500p-4k-110M   \
+  2500p-4k-160M   \
+  2997p-1080-45M  \
+  2997p-1080-60M  \
+  2997p-4k-110M   \
+  2997p-4k-160M   \
+  5000i-1080-45M  \
+  5000i-1080-60M  \
+  5000p-1080-45M  \
+  5000p-1080-60M  \
+  5000p-4k-110M   \
+  5000p-4k-160M   \
+  5994i-1080-45M  \
+  5994i-1080-60M  \
+  5994p-1080-45M  \
+  5994p-1080-60M  \
+  5994p-4k-110M   \
+  5994p-4k-160M   \
+
+define FATE_MXF_XF_HEVC_TEST
+FATE_MXF += fate-mxf-xf-hevc-$(1)
+fate-mxf-xf-hevc-$(1): CMD = framecrc -i $(TARGET_SAMPLES)/mxf/xf-hevc/$(1).mxf -c:a copy -c:v copy
+endef
+
+$(foreach N,$(MXF_XF_HEVC_SAMPLES),$(eval $(call FATE_MXF_XF_HEVC_TEST,$(N))))
+
 #
 # Tests probing MXF format and stream properties
 #
diff --git a/tests/ref/fate/mxf-xf-hevc-2398p-1080-45M b/tests/ref/fate/mxf-xf-hevc-2398p-1080-45M
new file mode 100644
index 0000000000..8b0f497ccd
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2398p-1080-45M
@@ -0,0 +1,60 @@ 
+#extradata 0:      557, 0x203cde1d
+#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2544, 0xf7de7f4a
+0,         -2,          3,        1,     2384, 0x72c77f40, F=0x0
+0,         -1,          1,        1,      678, 0x402041f4, F=0x0
+0,          0,          0,        1,       87, 0x96e1101c, F=0x0
+1,          0,          0,     2002,     6006, 0xc2ceb878
+0,          1,          2,        1,       84, 0xa23010a2, F=0x0
+1,       2002,       2002,     2002,     6006, 0x4b8ab64a
+0,          2,          5,        1,      184, 0xd9d85382, F=0x0
+1,       4004,       4004,     2002,     6006, 0x44d0af28
+0,          3,          4,        1,      197, 0x094b5108, F=0x0
+1,       6006,       6006,     2002,     6006, 0xc31cb388
+0,          4,          6,        1,      820, 0xc43c8880, F=0x0
+1,       8008,       8008,     2002,     6006, 0x43fbb989
+0,          5,         15,        1,    12822, 0x8b68f363, F=0x0
+1,      10010,      10010,     2002,     6006, 0x5cbeafa2
+0,          6,         11,        1,      226, 0x28715654, F=0x0
+1,      12012,      12012,     2002,     6006, 0xeea7aec2
+0,          7,          9,        1,      137, 0xa2962e2e, F=0x0
+1,      14014,      14014,     2002,     6006, 0xecffb922
+0,          8,          8,        1,       80, 0x16330f4c, F=0x0
+1,      16016,      16016,     2002,     6006, 0xf7e8b38f
+0,          9,         10,        1,       83, 0x380a11ca, F=0x0
+1,      18018,      18018,     2002,     6006, 0x2a32aebe
+0,         10,         13,        1,      171, 0x1cb83af6, F=0x0
+1,      20020,      20020,     2002,     6006, 0x3a9ab617
+0,         11,         12,        1,      145, 0x28952f2c, F=0x0
+1,      22022,      22022,     2002,     6006, 0x94e8b91b
+0,         12,         14,        1,      101, 0x08fb188e, F=0x0
+1,      24024,      24024,     2002,     6006, 0x049eae86
+0,         13,         23,        1,     1232, 0x3a5f6107, F=0x0
+1,      26026,      26026,     2002,     6006, 0x9715b0b5
+0,         14,         19,        1,      140, 0x15f82ba7, F=0x0
+1,      28028,      28028,     2002,     6006, 0xa1ecb7d8
+0,         15,         17,        1,      101, 0x30201a00, F=0x0
+1,      30030,      30030,     2002,     6006, 0x0ff3b375
+0,         16,         16,        1,       87, 0x310d10e7, F=0x0
+1,      32032,      32032,     2002,     6006, 0xc1f3ad78
+0,         17,         18,        1,       86, 0x7951129c, F=0x0
+1,      34034,      34034,     2002,     6006, 0x7e3ab75d
+0,         18,         21,        1,      105, 0x91901c59, F=0x0
+1,      36036,      36036,     2002,     6006, 0xf005b83e
+0,         19,         20,        1,       85, 0x45421125, F=0x0
+1,      38038,      38038,     2002,     6006, 0xde4baddd
+0,         20,         22,        1,       91, 0x431e1432, F=0x0
+1,      40040,      40040,     2002,     6006, 0xd722b36d
+1,      42042,      42042,     2002,     6006, 0xef57b844
+1,      44044,      44044,     2002,     6006, 0x9c6bb0e6
+1,      46046,      46046,     2002,     6006, 0x74e4ade7
diff --git a/tests/ref/fate/mxf-xf-hevc-2398p-1080-60M b/tests/ref/fate/mxf-xf-hevc-2398p-1080-60M
new file mode 100644
index 0000000000..7db382217a
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2398p-1080-60M
@@ -0,0 +1,60 @@ 
+#extradata 0:      557, 0x70b0ddc0
+#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2463, 0xf0256296
+0,         -2,          3,        1,     3346, 0x90a08f66, F=0x0
+0,         -1,          1,        1,     1811, 0x95fd8e11, F=0x0
+0,          0,          0,        1,     1062, 0xf207dcdf, F=0x0
+1,          0,          0,     2002,     6006, 0x4b8ab64a
+0,          1,          2,        1,      132, 0x4fe52b49, F=0x0
+1,       2002,       2002,     2002,     6006, 0x44d0af28
+0,          2,          5,        1,      336, 0x32709fea, F=0x0
+1,       4004,       4004,     2002,     6006, 0xc31cb388
+0,          3,          4,        1,       88, 0x829014b0, F=0x0
+1,       6006,       6006,     2002,     6006, 0x43fbb989
+0,          4,          6,        1,      117, 0x3d2b2c4d, F=0x0
+1,       8008,       8008,     2002,     6006, 0x5cbeafa2
+0,          5,         15,        1,    11605, 0x57437a16, F=0x0
+1,      10010,      10010,     2002,     6006, 0xeea7aec2
+0,          6,         11,        1,      375, 0x007aac1f, F=0x0
+1,      12012,      12012,     2002,     6006, 0xecffb922
+0,          7,          9,        1,      345, 0x363dab61, F=0x0
+1,      14014,      14014,     2002,     6006, 0xf7e8b38f
+0,          8,          8,        1,       77, 0x9abe0ae0, F=0x0
+1,      16016,      16016,     2002,     6006, 0x2a32aebe
+0,          9,         10,        1,       75, 0x531608cb, F=0x0
+1,      18018,      18018,     2002,     6006, 0x3a9ab617
+0,         10,         13,        1,      345, 0xa91799ef, F=0x0
+1,      20020,      20020,     2002,     6006, 0x94e8b91b
+0,         11,         12,        1,       78, 0x85450a7b, F=0x0
+1,      22022,      22022,     2002,     6006, 0x049eae86
+0,         12,         14,        1,       79, 0xfb040c52, F=0x0
+1,      24024,      24024,     2002,     6006, 0x9715b0b5
+0,         13,         23,        1,     2379, 0xa9fd8955, F=0x0
+1,      26026,      26026,     2002,     6006, 0xa1ecb7d8
+0,         14,         19,        1,      696, 0x154a5cbd, F=0x0
+1,      28028,      28028,     2002,     6006, 0x0ff3b375
+0,         15,         17,        1,      297, 0x0d328f0f, F=0x0
+1,      30030,      30030,     2002,     6006, 0xc1f3ad78
+0,         16,         16,        1,       75, 0x6e4a0912, F=0x0
+1,      32032,      32032,     2002,     6006, 0x7e3ab75d
+0,         17,         18,        1,       73, 0x9f100871, F=0x0
+1,      34034,      34034,     2002,     6006, 0xf005b83e
+0,         18,         21,        1,      180, 0x38e14ff5, F=0x0
+1,      36036,      36036,     2002,     6006, 0xde4baddd
+0,         19,         20,        1,       75, 0xb3d108b8, F=0x0
+1,      38038,      38038,     2002,     6006, 0xd722b36d
+0,         20,         22,        1,       83, 0xbbb91971, F=0x0
+1,      40040,      40040,     2002,     6006, 0xef57b844
+1,      42042,      42042,     2002,     6006, 0x9c6bb0e6
+1,      44044,      44044,     2002,     6006, 0x74e4ade7
+1,      46046,      46046,     2002,     6006, 0xc2ceb878
diff --git a/tests/ref/fate/mxf-xf-hevc-2398p-4k-110M b/tests/ref/fate/mxf-xf-hevc-2398p-4k-110M
new file mode 100644
index 0000000000..3b6dac3509
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2398p-4k-110M
@@ -0,0 +1,60 @@ 
+#extradata 0:      558, 0xa57dded4
+#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3202, 0xf5584e02
+0,         -2,          3,        1,    11379, 0x5c4cc202, F=0x0
+0,         -1,          1,        1,     5302, 0x298eeb2e, F=0x0
+0,          0,          0,        1,     1910, 0x768e8e8c, F=0x0
+1,          0,          0,     2002,     6006, 0xeea7aec2
+0,          1,          2,        1,      239, 0x03392dd7, F=0x0
+1,       2002,       2002,     2002,     6006, 0xecffb922
+0,          2,          5,        1,     2320, 0xbe888d9e, F=0x0
+1,       4004,       4004,     2002,     6006, 0xf7e8b38f
+0,          3,          4,        1,     1624, 0x71772635, F=0x0
+1,       6006,       6006,     2002,     6006, 0x2a32aebe
+0,          4,          6,        1,      219, 0x04051a74, F=0x0
+1,       8008,       8008,     2002,     6006, 0x3a9ab617
+0,          5,         15,        1,    41726, 0xa60cd586, F=0x0
+1,      10010,      10010,     2002,     6006, 0x94e8b91b
+0,          6,         11,        1,     3805, 0xda43d931, F=0x0
+1,      12012,      12012,     2002,     6006, 0x049eae86
+0,          7,          9,        1,    10447, 0xc5e75894, F=0x0
+1,      14014,      14014,     2002,     6006, 0x9715b0b5
+0,          8,          8,        1,     1272, 0xb33d2f63, F=0x0
+1,      16016,      16016,     2002,     6006, 0xa1ecb7d8
+0,          9,         10,        1,      180, 0x02a90ae3, F=0x0
+1,      18018,      18018,     2002,     6006, 0x0ff3b375
+0,         10,         13,        1,     1198, 0x13314d74, F=0x0
+1,      20020,      20020,     2002,     6006, 0xc1f3ad78
+0,         11,         12,        1,     1057, 0xba80d04f, F=0x0
+1,      22022,      22022,     2002,     6006, 0x7e3ab75d
+0,         12,         14,        1,      217, 0xa96c448e, F=0x0
+1,      24024,      24024,     2002,     6006, 0xf005b83e
+0,         13,         23,        1,    19361, 0x1176acc2, F=0x0
+1,      26026,      26026,     2002,     6006, 0xde4baddd
+0,         14,         19,        1,      741, 0x37af61dd, F=0x0
+1,      28028,      28028,     2002,     6006, 0xd722b36d
+0,         15,         17,        1,      700, 0x7df54431, F=0x0
+1,      30030,      30030,     2002,     6006, 0xef57b844
+0,         16,         16,        1,      225, 0xd4771d7d, F=0x0
+1,      32032,      32032,     2002,     6006, 0x9c6bb0e6
+0,         17,         18,        1,      187, 0xcd140d88, F=0x0
+1,      34034,      34034,     2002,     6006, 0x74e4ade7
+0,         18,         21,        1,      686, 0x6b6846ed, F=0x0
+1,      36036,      36036,     2002,     6006, 0xc2ceb878
+0,         19,         20,        1,      181, 0xb55c0721, F=0x0
+1,      38038,      38038,     2002,     6006, 0x4b8ab64a
+0,         20,         22,        1,      180, 0xb2040720, F=0x0
+1,      40040,      40040,     2002,     6006, 0x44d0af28
+1,      42042,      42042,     2002,     6006, 0xc31cb388
+1,      44044,      44044,     2002,     6006, 0x43fbb989
+1,      46046,      46046,     2002,     6006, 0x5cbeafa2
diff --git a/tests/ref/fate/mxf-xf-hevc-2398p-4k-160M b/tests/ref/fate/mxf-xf-hevc-2398p-4k-160M
new file mode 100644
index 0000000000..f28892fb23
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2398p-4k-160M
@@ -0,0 +1,60 @@ 
+#extradata 0:      558, 0x7930df52
+#tb 0: 1001/24000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     4540, 0x651af96d
+0,         -2,          3,        1,    14782, 0xc802d840, F=0x0
+0,         -1,          1,        1,     7487, 0x20b331ee, F=0x0
+0,          0,          0,        1,     3904, 0x5b713047, F=0x0
+1,          0,          0,     2002,     6006, 0xc1f3ad78
+0,          1,          2,        1,     1114, 0x9e0cb212, F=0x0
+1,       2002,       2002,     2002,     6006, 0x7e3ab75d
+0,          2,          5,        1,     1015, 0x6ea005e2, F=0x0
+1,       4004,       4004,     2002,     6006, 0xf005b83e
+0,          3,          4,        1,      293, 0x04e56ea7, F=0x0
+1,       6006,       6006,     2002,     6006, 0xde4baddd
+0,          4,          6,        1,      183, 0xfb820bc9, F=0x0
+1,       8008,       8008,     2002,     6006, 0xd722b36d
+0,          5,         15,        1,    48107, 0x8f6680f4, F=0x0
+1,      10010,      10010,     2002,     6006, 0xef57b844
+0,          6,         11,        1,     6399, 0x8c089ca9, F=0x0
+1,      12012,      12012,     2002,     6006, 0x9c6bb0e6
+0,          7,          9,        1,     1920, 0x9fa58bd4, F=0x0
+1,      14014,      14014,     2002,     6006, 0x74e4ade7
+0,          8,          8,        1,      180, 0x931e07dc, F=0x0
+1,      16016,      16016,     2002,     6006, 0xc2ceb878
+0,          9,         10,        1,      182, 0x859f0bc8, F=0x0
+1,      18018,      18018,     2002,     6006, 0x4b8ab64a
+0,         10,         13,        1,     1018, 0xabf7ef51, F=0x0
+1,      20020,      20020,     2002,     6006, 0x44d0af28
+0,         11,         12,        1,      233, 0xa48048c2, F=0x0
+1,      22022,      22022,     2002,     6006, 0xc31cb388
+0,         12,         14,        1,      241, 0x5e4f5556, F=0x0
+1,      24024,      24024,     2002,     6006, 0x43fbb989
+0,         13,         23,        1,     2625, 0x35ef3235, F=0x0
+1,      26026,      26026,     2002,     6006, 0x5cbeafa2
+0,         14,         19,        1,      253, 0x04af50be, F=0x0
+1,      28028,      28028,     2002,     6006, 0xeea7aec2
+0,         15,         17,        1,      240, 0xb7f04304, F=0x0
+1,      30030,      30030,     2002,     6006, 0xecffb922
+0,         16,         16,        1,      220, 0xcd5c3a7b, F=0x0
+1,      32032,      32032,     2002,     6006, 0xf7e8b38f
+0,         17,         18,        1,      222, 0x5db039df, F=0x0
+1,      34034,      34034,     2002,     6006, 0x2a32aebe
+0,         18,         21,        1,      251, 0x5a594e68, F=0x0
+1,      36036,      36036,     2002,     6006, 0x3a9ab617
+0,         19,         20,        1,      238, 0x329c46e5, F=0x0
+1,      38038,      38038,     2002,     6006, 0x94e8b91b
+0,         20,         22,        1,      239, 0x3db7470e, F=0x0
+1,      40040,      40040,     2002,     6006, 0x049eae86
+1,      42042,      42042,     2002,     6006, 0x9715b0b5
+1,      44044,      44044,     2002,     6006, 0xa1ecb7d8
+1,      46046,      46046,     2002,     6006, 0x0ff3b375
diff --git a/tests/ref/fate/mxf-xf-hevc-2500p-1080-45M b/tests/ref/fate/mxf-xf-hevc-2500p-1080-45M
new file mode 100644
index 0000000000..9606cf9f87
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2500p-1080-45M
@@ -0,0 +1,60 @@ 
+#extradata 0:      557, 0xd9a1ddf3
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2215, 0x239bcfe7
+0,         -2,          3,        1,     2379, 0xe5f6ab5f, F=0x0
+0,         -1,          1,        1,      602, 0x7d390e24, F=0x0
+0,          0,          0,        1,     2042, 0xdd53d76f, F=0x0
+1,          0,          0,     1920,     5760, 0x5ecb38d5
+0,          1,          2,        1,     1570, 0x8f42faac, F=0x0
+1,       1920,       1920,     1920,     5760, 0x5ecb38d5
+0,          2,          5,        1,      253, 0x65426ac5, F=0x0
+1,       3840,       3840,     1920,     5760, 0x5ecb38d5
+0,          3,          4,        1,     1646, 0x443122d1, F=0x0
+1,       5760,       5760,     1920,     5760, 0x5ecb38d5
+0,          4,          6,        1,       89, 0x31301b71, F=0x0
+1,       7680,       7680,     1920,     5760, 0x5ecb38d5
+0,          5,         15,        1,    14341, 0x37b9c3b5, F=0x0
+1,       9600,       9600,     1920,     5760, 0x5ecb38d5
+0,          6,         11,        1,      244, 0x81955e7d, F=0x0
+1,      11520,      11520,     1920,     5760, 0x5ecb38d5
+0,          7,          9,        1,      176, 0x84a93fb8, F=0x0
+1,      13440,      13440,     1920,     5760, 0x5ecb38d5
+0,          8,          8,        1,      121, 0x98aa1f7d, F=0x0
+1,      15360,      15360,     1920,     5760, 0x5ecb38d5
+0,          9,         10,        1,      178, 0x6ac442b6, F=0x0
+1,      17280,      17280,     1920,     5760, 0x5ecb38d5
+0,         10,         13,        1,      143, 0x25093091, F=0x0
+1,      19200,      19200,     1920,     5760, 0x5ecb38d5
+0,         11,         12,        1,       92, 0xa74418c7, F=0x0
+1,      21120,      21120,     1920,     5760, 0x5ecb38d5
+0,         12,         14,        1,       90, 0xb6ca1897, F=0x0
+1,      23040,      23040,     1920,     5760, 0x5ecb38d5
+0,         13,         23,        1,     1866, 0x73ed8ed4, F=0x0
+1,      24960,      24960,     1920,     5760, 0x5ecb38d5
+0,         14,         19,        1,      121, 0x6fa42574, F=0x0
+1,      26880,      26880,     1920,     5760, 0x5ecb38d5
+0,         15,         17,        1,       82, 0x83c90c6d, F=0x0
+1,      28800,      28800,     1920,     5760, 0x5ecb38d5
+0,         16,         16,        1,       75, 0xa1540930, F=0x0
+1,      30720,      30720,     1920,     5760, 0x5ecb38d5
+0,         17,         18,        1,       76, 0x24fd0b0e, F=0x0
+1,      32640,      32640,     1920,     5760, 0x5ecb38d5
+0,         18,         21,        1,       87, 0x187a0f39, F=0x0
+1,      34560,      34560,     1920,     5760, 0x5ecb38d5
+0,         19,         20,        1,       88, 0x944e13a6, F=0x0
+1,      36480,      36480,     1920,     5760, 0x5ecb38d5
+0,         20,         22,        1,       78, 0xc8610dff, F=0x0
+1,      38400,      38400,     1920,     5760, 0x5ecb38d5
+1,      40320,      40320,     1920,     5760, 0x5ecb38d5
+1,      42240,      42240,     1920,     5760, 0x5ecb38d5
+1,      44160,      44160,     1920,     5760, 0x5ecb38d5
diff --git a/tests/ref/fate/mxf-xf-hevc-2500p-1080-60M b/tests/ref/fate/mxf-xf-hevc-2500p-1080-60M
new file mode 100644
index 0000000000..32e1168fcd
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2500p-1080-60M
@@ -0,0 +1,60 @@ 
+#extradata 0:      557, 0x70b0ddc0
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2463, 0xf0256296
+0,         -2,          3,        1,     3346, 0x90a08f66, F=0x0
+0,         -1,          1,        1,     1811, 0x95fd8e11, F=0x0
+0,          0,          0,        1,     1062, 0xf207dcdf, F=0x0
+1,          0,          0,     1920,     5760, 0x5ecb38d5
+0,          1,          2,        1,      132, 0x4fe52b49, F=0x0
+1,       1920,       1920,     1920,     5760, 0x5ecb38d5
+0,          2,          5,        1,      336, 0x32709fea, F=0x0
+1,       3840,       3840,     1920,     5760, 0x5ecb38d5
+0,          3,          4,        1,       88, 0x829014b0, F=0x0
+1,       5760,       5760,     1920,     5760, 0x5ecb38d5
+0,          4,          6,        1,      117, 0x3d2b2c4d, F=0x0
+1,       7680,       7680,     1920,     5760, 0x5ecb38d5
+0,          5,         15,        1,    11605, 0x57437a16, F=0x0
+1,       9600,       9600,     1920,     5760, 0x5ecb38d5
+0,          6,         11,        1,      375, 0x007aac1f, F=0x0
+1,      11520,      11520,     1920,     5760, 0x5ecb38d5
+0,          7,          9,        1,      345, 0x363dab61, F=0x0
+1,      13440,      13440,     1920,     5760, 0x5ecb38d5
+0,          8,          8,        1,       77, 0x9abe0ae0, F=0x0
+1,      15360,      15360,     1920,     5760, 0x5ecb38d5
+0,          9,         10,        1,       75, 0x531608cb, F=0x0
+1,      17280,      17280,     1920,     5760, 0x5ecb38d5
+0,         10,         13,        1,      345, 0xa91799ef, F=0x0
+1,      19200,      19200,     1920,     5760, 0x5ecb38d5
+0,         11,         12,        1,       78, 0x85450a7b, F=0x0
+1,      21120,      21120,     1920,     5760, 0x5ecb38d5
+0,         12,         14,        1,       79, 0xfb040c52, F=0x0
+1,      23040,      23040,     1920,     5760, 0x5ecb38d5
+0,         13,         23,        1,     2379, 0xa9fd8955, F=0x0
+1,      24960,      24960,     1920,     5760, 0x5ecb38d5
+0,         14,         19,        1,      696, 0x154a5cbd, F=0x0
+1,      26880,      26880,     1920,     5760, 0x5ecb38d5
+0,         15,         17,        1,      297, 0x0d328f0f, F=0x0
+1,      28800,      28800,     1920,     5760, 0x5ecb38d5
+0,         16,         16,        1,       75, 0x6e4a0912, F=0x0
+1,      30720,      30720,     1920,     5760, 0x5ecb38d5
+0,         17,         18,        1,       73, 0x9f100871, F=0x0
+1,      32640,      32640,     1920,     5760, 0x5ecb38d5
+0,         18,         21,        1,      180, 0x38e14ff5, F=0x0
+1,      34560,      34560,     1920,     5760, 0x5ecb38d5
+0,         19,         20,        1,       75, 0xb3d108b8, F=0x0
+1,      36480,      36480,     1920,     5760, 0x5ecb38d5
+0,         20,         22,        1,       83, 0xbbb91971, F=0x0
+1,      38400,      38400,     1920,     5760, 0x5ecb38d5
+1,      40320,      40320,     1920,     5760, 0x5ecb38d5
+1,      42240,      42240,     1920,     5760, 0x5ecb38d5
+1,      44160,      44160,     1920,     5760, 0x5ecb38d5
diff --git a/tests/ref/fate/mxf-xf-hevc-2500p-4k-110M b/tests/ref/fate/mxf-xf-hevc-2500p-4k-110M
new file mode 100644
index 0000000000..22c0352c52
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2500p-4k-110M
@@ -0,0 +1,60 @@ 
+#extradata 0:      558, 0xa57dded4
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3202, 0xf5584e02
+0,         -2,          3,        1,    11379, 0x5c4cc202, F=0x0
+0,         -1,          1,        1,     5302, 0x298eeb2e, F=0x0
+0,          0,          0,        1,     1910, 0x768e8e8c, F=0x0
+1,          0,          0,     1920,     5760, 0x5ecb38d5
+0,          1,          2,        1,      239, 0x03392dd7, F=0x0
+1,       1920,       1920,     1920,     5760, 0x5ecb38d5
+0,          2,          5,        1,     2320, 0xbe888d9e, F=0x0
+1,       3840,       3840,     1920,     5760, 0x5ecb38d5
+0,          3,          4,        1,     1624, 0x71772635, F=0x0
+1,       5760,       5760,     1920,     5760, 0x5ecb38d5
+0,          4,          6,        1,      219, 0x04051a74, F=0x0
+1,       7680,       7680,     1920,     5760, 0x5ecb38d5
+0,          5,         15,        1,    41726, 0xa60cd586, F=0x0
+1,       9600,       9600,     1920,     5760, 0x5ecb38d5
+0,          6,         11,        1,     3805, 0xda43d931, F=0x0
+1,      11520,      11520,     1920,     5760, 0x5ecb38d5
+0,          7,          9,        1,    10447, 0xc5e75894, F=0x0
+1,      13440,      13440,     1920,     5760, 0x5ecb38d5
+0,          8,          8,        1,     1272, 0xb33d2f63, F=0x0
+1,      15360,      15360,     1920,     5760, 0x5ecb38d5
+0,          9,         10,        1,      180, 0x02a90ae3, F=0x0
+1,      17280,      17280,     1920,     5760, 0x5ecb38d5
+0,         10,         13,        1,     1198, 0x13314d74, F=0x0
+1,      19200,      19200,     1920,     5760, 0x5ecb38d5
+0,         11,         12,        1,     1057, 0xba80d04f, F=0x0
+1,      21120,      21120,     1920,     5760, 0x5ecb38d5
+0,         12,         14,        1,      217, 0xa96c448e, F=0x0
+1,      23040,      23040,     1920,     5760, 0x5ecb38d5
+0,         13,         23,        1,    19361, 0x1176acc2, F=0x0
+1,      24960,      24960,     1920,     5760, 0x5ecb38d5
+0,         14,         19,        1,      741, 0x37af61dd, F=0x0
+1,      26880,      26880,     1920,     5760, 0x5ecb38d5
+0,         15,         17,        1,      700, 0x7df54431, F=0x0
+1,      28800,      28800,     1920,     5760, 0x5ecb38d5
+0,         16,         16,        1,      225, 0xd4771d7d, F=0x0
+1,      30720,      30720,     1920,     5760, 0x5ecb38d5
+0,         17,         18,        1,      187, 0xcd140d88, F=0x0
+1,      32640,      32640,     1920,     5760, 0x5ecb38d5
+0,         18,         21,        1,      686, 0x6b6846ed, F=0x0
+1,      34560,      34560,     1920,     5760, 0x5ecb38d5
+0,         19,         20,        1,      181, 0xb55c0721, F=0x0
+1,      36480,      36480,     1920,     5760, 0x5ecb38d5
+0,         20,         22,        1,      180, 0xb2040720, F=0x0
+1,      38400,      38400,     1920,     5760, 0x5ecb38d5
+1,      40320,      40320,     1920,     5760, 0x5ecb38d5
+1,      42240,      42240,     1920,     5760, 0x5ecb38d5
+1,      44160,      44160,     1920,     5760, 0x5ecb38d5
diff --git a/tests/ref/fate/mxf-xf-hevc-2500p-4k-160M b/tests/ref/fate/mxf-xf-hevc-2500p-4k-160M
new file mode 100644
index 0000000000..0ac6a184a6
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2500p-4k-160M
@@ -0,0 +1,60 @@ 
+#extradata 0:      558, 0x7930df52
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     4540, 0x651af96d
+0,         -2,          3,        1,    14782, 0xc802d840, F=0x0
+0,         -1,          1,        1,     7487, 0x20b331ee, F=0x0
+0,          0,          0,        1,     3904, 0x5b713047, F=0x0
+1,          0,          0,     1920,     5760, 0x5ecb38d5
+0,          1,          2,        1,     1114, 0x9e0cb212, F=0x0
+1,       1920,       1920,     1920,     5760, 0x5ecb38d5
+0,          2,          5,        1,     1015, 0x6ea005e2, F=0x0
+1,       3840,       3840,     1920,     5760, 0x5ecb38d5
+0,          3,          4,        1,      293, 0x04e56ea7, F=0x0
+1,       5760,       5760,     1920,     5760, 0x5ecb38d5
+0,          4,          6,        1,      183, 0xfb820bc9, F=0x0
+1,       7680,       7680,     1920,     5760, 0x5ecb38d5
+0,          5,         15,        1,    48107, 0x8f6680f4, F=0x0
+1,       9600,       9600,     1920,     5760, 0x5ecb38d5
+0,          6,         11,        1,     6399, 0x8c089ca9, F=0x0
+1,      11520,      11520,     1920,     5760, 0x5ecb38d5
+0,          7,          9,        1,     1920, 0x9fa58bd4, F=0x0
+1,      13440,      13440,     1920,     5760, 0x5ecb38d5
+0,          8,          8,        1,      180, 0x931e07dc, F=0x0
+1,      15360,      15360,     1920,     5760, 0x5ecb38d5
+0,          9,         10,        1,      182, 0x859f0bc8, F=0x0
+1,      17280,      17280,     1920,     5760, 0x5ecb38d5
+0,         10,         13,        1,     1018, 0xabf7ef51, F=0x0
+1,      19200,      19200,     1920,     5760, 0x5ecb38d5
+0,         11,         12,        1,      233, 0xa48048c2, F=0x0
+1,      21120,      21120,     1920,     5760, 0x5ecb38d5
+0,         12,         14,        1,      241, 0x5e4f5556, F=0x0
+1,      23040,      23040,     1920,     5760, 0x5ecb38d5
+0,         13,         23,        1,     2625, 0x35ef3235, F=0x0
+1,      24960,      24960,     1920,     5760, 0x5ecb38d5
+0,         14,         19,        1,      253, 0x04af50be, F=0x0
+1,      26880,      26880,     1920,     5760, 0x5ecb38d5
+0,         15,         17,        1,      240, 0xb7f04304, F=0x0
+1,      28800,      28800,     1920,     5760, 0x5ecb38d5
+0,         16,         16,        1,      220, 0xcd5c3a7b, F=0x0
+1,      30720,      30720,     1920,     5760, 0x5ecb38d5
+0,         17,         18,        1,      222, 0x5db039df, F=0x0
+1,      32640,      32640,     1920,     5760, 0x5ecb38d5
+0,         18,         21,        1,      251, 0x5a594e68, F=0x0
+1,      34560,      34560,     1920,     5760, 0x5ecb38d5
+0,         19,         20,        1,      238, 0x329c46e5, F=0x0
+1,      36480,      36480,     1920,     5760, 0x5ecb38d5
+0,         20,         22,        1,      239, 0x3db7470e, F=0x0
+1,      38400,      38400,     1920,     5760, 0x5ecb38d5
+1,      40320,      40320,     1920,     5760, 0x5ecb38d5
+1,      42240,      42240,     1920,     5760, 0x5ecb38d5
+1,      44160,      44160,     1920,     5760, 0x5ecb38d5
diff --git a/tests/ref/fate/mxf-xf-hevc-2997p-1080-45M b/tests/ref/fate/mxf-xf-hevc-2997p-1080-45M
new file mode 100644
index 0000000000..50ea932038
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2997p-1080-45M
@@ -0,0 +1,76 @@ 
+#extradata 0:      557, 0x9315ddc9
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3333, 0xa41b11ac
+0,         -2,          3,        1,     5726, 0xbb63a860, F=0x0
+0,         -1,          1,        1,     3440, 0xa1566aeb, F=0x0
+0,          0,          0,        1,     2806, 0x525b3fe8, F=0x0
+1,          0,          0,     1602,     4806, 0x7f645dee
+0,          1,          2,        1,      562, 0x1a2dfdd8, F=0x0
+1,       1602,       1602,     1601,     4803, 0x2da9547e
+1,       3203,       3203,     1602,     4806, 0x3f8f6562
+0,          2,          5,        1,      418, 0xdfcdbebb, F=0x0
+0,          3,          4,        1,     1080, 0xc8e6eecc, F=0x0
+1,       4805,       4805,     1601,     4803, 0xaca25809
+1,       6406,       6406,     1602,     4806, 0xe9305c09
+0,          4,          6,        1,      403, 0x8f41a866, F=0x0
+0,          5,         15,        1,    17015, 0x7740e53d, F=0x0
+1,       8008,       8008,     1602,     4806, 0x01d3639c
+0,          6,         11,        1,      644, 0x7fb52411, F=0x0
+1,       9610,       9610,     1601,     4803, 0x143a54a8
+1,      11211,      11211,     1602,     4806, 0xfb245f16
+0,          7,          9,        1,      449, 0xfd8ed3fe, F=0x0
+0,          8,          8,        1,       89, 0xbf8b16cc, F=0x0
+1,      12813,      12813,     1601,     4803, 0x020e5e78
+1,      14414,      14414,     1602,     4806, 0xfb6a55b2
+0,          9,         10,        1,       98, 0xf1142154, F=0x0
+0,         10,         13,        1,      349, 0xb6fb9fa0, F=0x0
+1,      16016,      16016,     1602,     4806, 0xfda062af
+0,         11,         12,        1,      200, 0x5bab52f5, F=0x0
+1,      17618,      17618,     1601,     4803, 0x60715b30
+1,      19219,      19219,     1602,     4806, 0x783757b4
+0,         12,         14,        1,      226, 0xd56a5d4e, F=0x0
+0,         13,         23,        1,     3921, 0xa1419a6a, F=0x0
+1,      20821,      20821,     1601,     4803, 0x66d76259
+1,      22422,      22422,     1602,     4806, 0xbd2559a9
+0,         14,         19,        1,      446, 0x3e2be2f6, F=0x0
+0,         15,         17,        1,      195, 0x601256a0, F=0x0
+1,      24024,      24024,     1602,     4806, 0x7fa25c19
+0,         16,         16,        1,      224, 0x8141591a, F=0x0
+1,      25626,      25626,     1601,     4803, 0x77356288
+1,      27227,      27227,     1602,     4806, 0x9b6b54a1
+0,         17,         18,        1,      191, 0x9755464e, F=0x0
+0,         18,         21,        1,      160, 0x4bc74266, F=0x0
+1,      28829,      28829,     1601,     4803, 0x1f7b5eff
+1,      30430,      30430,     1602,     4806, 0xf3535dfc
+0,         19,         20,        1,      132, 0x27c2354d, F=0x0
+0,         20,         22,        1,      141, 0x8e693856, F=0x0
+1,      32032,      32032,     1602,     4806, 0xd1595669
+0,         21,         31,        1,     5206, 0xc990f45d, F=0x0
+1,      33634,      33634,     1601,     4803, 0x8a6b625c
+1,      35235,      35235,     1602,     4806, 0xff325af0
+0,         22,         27,        1,      368, 0xa4f7ac02, F=0x0
+0,         23,         25,        1,      164, 0x0d914812, F=0x0
+1,      36837,      36837,     1601,     4803, 0xb0e3588f
+1,      38438,      38438,     1602,     4806, 0xdad16453
+0,         24,         24,        1,      130, 0xb0152dd6, F=0x0
+0,         25,         26,        1,      130, 0x900e313d, F=0x0
+1,      40040,      40040,     1602,     4806, 0xcf4d5753
+0,         26,         29,        1,      161, 0x473345a9, F=0x0
+1,      41642,      41642,     1601,     4803, 0x704d5bd9
+1,      43243,      43243,     1602,     4806, 0x56426250
+0,         27,         28,        1,      130, 0x5470324c, F=0x0
+0,         28,         30,        1,      138, 0x4dec3b0f, F=0x0
+1,      44845,      44845,     1601,     4803, 0x45d254ad
+1,      46446,      46446,     1602,     4806, 0x25cd605a
+1,      48048,      48048,     1602,     4806, 0x7f645dee
+1,      49650,      49650,     1601,     4803, 0x2da9547e
diff --git a/tests/ref/fate/mxf-xf-hevc-2997p-1080-60M b/tests/ref/fate/mxf-xf-hevc-2997p-1080-60M
new file mode 100644
index 0000000000..501626ff7e
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2997p-1080-60M
@@ -0,0 +1,76 @@ 
+#extradata 0:      557, 0x4d6addab
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2291, 0x6910eca7
+0,         -2,          3,        1,     2428, 0xef99cf1f, F=0x0
+0,         -1,          1,        1,      406, 0x410ac255, F=0x0
+0,          0,          0,        1,      148, 0x477f3cce, F=0x0
+1,          0,          0,     1602,     4806, 0x3f8f6562
+0,          1,          2,        1,      124, 0xe3eb2e10, F=0x0
+1,       1602,       1602,     1601,     4803, 0xaca25809
+1,       3203,       3203,     1602,     4806, 0xe9305c09
+0,          2,          5,        1,      415, 0x5910c2a4, F=0x0
+0,          3,          4,        1,      200, 0x1f925179, F=0x0
+1,       4805,       4805,     1601,     4803, 0xd9ba6196
+1,       6406,       6406,     1602,     4806, 0x103f56ae
+0,          4,          6,        1,      180, 0xa1254f79, F=0x0
+0,          5,         15,        1,    10573, 0xd70d884c, F=0x0
+1,       8008,       8008,     1602,     4806, 0xfb245f16
+0,          6,         11,        1,      144, 0xe0a82b4e, F=0x0
+1,       9610,       9610,     1601,     4803, 0x020e5e78
+1,      11211,      11211,     1602,     4806, 0xfb6a55b2
+0,          7,          9,        1,      117, 0x8d251e78, F=0x0
+0,          8,          8,        1,       75, 0x731f07cb, F=0x0
+1,      12813,      12813,     1601,     4803, 0xd82360b7
+1,      14414,      14414,     1602,     4806, 0x55cd5d28
+0,          9,         10,        1,       73, 0x552e08ef, F=0x0
+0,         10,         13,        1,       91, 0x8c3c127c, F=0x0
+1,      16016,      16016,     1602,     4806, 0x783757b4
+0,         11,         12,        1,       83, 0xa42610d7, F=0x0
+1,      17618,      17618,     1601,     4803, 0x66d76259
+1,      19219,      19219,     1602,     4806, 0xbd2559a9
+0,         12,         14,        1,       79, 0x4acf0da3, F=0x0
+0,         13,         23,        1,     2516, 0x4c631da2, F=0x0
+1,      20821,      20821,     1601,     4803, 0x6e0c5a40
+1,      22422,      22422,     1602,     4806, 0x26546461
+0,         14,         19,        1,       81, 0xa9000c30, F=0x0
+0,         15,         17,        1,       75, 0x75e50a44, F=0x0
+1,      24024,      24024,     1602,     4806, 0x9b6b54a1
+0,         16,         16,        1,       75, 0x3137073f, F=0x0
+1,      25626,      25626,     1601,     4803, 0x1f7b5eff
+1,      27227,      27227,     1602,     4806, 0xf3535dfc
+0,         17,         18,        1,       72, 0x7a4507c1, F=0x0
+0,         18,         21,        1,       74, 0x82840769, F=0x0
+1,      28829,      28829,     1601,     4803, 0xce335571
+1,      30430,      30430,     1602,     4806, 0xbb256354
+0,         19,         20,        1,       73, 0x91500833, F=0x0
+0,         20,         22,        1,       73, 0x9db90951, F=0x0
+1,      32032,      32032,     1602,     4806, 0xff325af0
+0,         21,         31,        1,      564, 0xa8200e83, F=0x0
+1,      33634,      33634,     1601,     4803, 0xb0e3588f
+1,      35235,      35235,     1602,     4806, 0xdad16453
+0,         22,         27,        1,      203, 0x779558b6, F=0x0
+0,         23,         25,        1,       74, 0x765b08f6, F=0x0
+1,      36837,      36837,     1601,     4803, 0xc9a3564d
+1,      38438,      38438,     1602,     4806, 0xa7b05cdf
+0,         24,         24,        1,       75, 0x6db608cf, F=0x0
+0,         25,         26,        1,       73, 0x9f840873, F=0x0
+1,      40040,      40040,     1602,     4806, 0x56426250
+0,         26,         29,        1,      120, 0xb91d2c87, F=0x0
+1,      41642,      41642,     1601,     4803, 0x45d254ad
+1,      43243,      43243,     1602,     4806, 0x25cd605a
+0,         27,         28,        1,       73, 0x918c0834, F=0x0
+0,         28,         30,        1,       72, 0x8e9f0833, F=0x0
+1,      44845,      44845,     1601,     4803, 0x65c45cc8
+1,      46446,      46446,     1602,     4806, 0xbe0f55a4
+1,      48048,      48048,     1602,     4806, 0x3f8f6562
+1,      49650,      49650,     1601,     4803, 0xaca25809
diff --git a/tests/ref/fate/mxf-xf-hevc-2997p-4k-110M b/tests/ref/fate/mxf-xf-hevc-2997p-4k-110M
new file mode 100644
index 0000000000..839f9e955d
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2997p-4k-110M
@@ -0,0 +1,76 @@ 
+#extradata 0:      558, 0x5ef1deaa
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3346, 0x7fecc845
+0,         -2,          3,        1,    12804, 0xe7fd90d8, F=0x0
+0,         -1,          1,        1,    12262, 0x58e7e98d, F=0x0
+0,          0,          0,        1,     4178, 0x841bc0fc, F=0x0
+1,          0,          0,     1602,     4806, 0x103f56ae
+0,          1,          2,        1,      244, 0xea0f3dfc, F=0x0
+1,       1602,       1602,     1601,     4803, 0xdfde5d65
+1,       3203,       3203,     1602,     4806, 0xc2ba6029
+0,          2,          5,        1,     6395, 0x3782304a, F=0x0
+0,          3,          4,        1,     3658, 0x194da49d, F=0x0
+1,       4805,       4805,     1601,     4803, 0xfa8854f1
+1,       6406,       6406,     1602,     4806, 0x00076178
+0,          4,          6,        1,      597, 0xe730f70c, F=0x0
+0,          5,         15,        1,    38480, 0x3df8dd7d, F=0x0
+1,       8008,       8008,     1602,     4806, 0x55cd5d28
+0,          6,         11,        1,     3774, 0xe9bb8294, F=0x0
+1,       9610,       9610,     1601,     4803, 0x732d55cf
+1,      11211,      11211,     1602,     4806, 0xf7e1643e
+0,          7,          9,        1,     5261, 0x821f9fb8, F=0x0
+0,          8,          8,        1,      213, 0xef9f38df, F=0x0
+1,      12813,      12813,     1601,     4803, 0xb0f5584f
+1,      14414,      14414,     1602,     4806, 0xce455b9a
+0,          9,         10,        1,      223, 0xcc52446c, F=0x0
+0,         10,         13,        1,      873, 0x28a6b343, F=0x0
+1,      16016,      16016,     1602,     4806, 0x26546461
+0,         11,         12,        1,      241, 0xcf5151b4, F=0x0
+1,      17618,      17618,     1601,     4803, 0x9d8f546c
+1,      19219,      19219,     1602,     4806, 0x029f5f34
+0,         12,         14,        1,      238, 0x8ff04d59, F=0x0
+0,         13,         23,        1,    24445, 0x24726c3c, F=0x0
+1,      20821,      20821,     1601,     4803, 0xd9e75d49
+1,      22422,      22422,     1602,     4806, 0xeed15624
+0,         14,         19,        1,     1159, 0x343417af, F=0x0
+0,         15,         17,        1,      506, 0xb590eede, F=0x0
+1,      24024,      24024,     1602,     4806, 0xbb256354
+0,         16,         16,        1,      183, 0x9f5c07b6, F=0x0
+1,      25626,      25626,     1601,     4803, 0xef4559a3
+1,      27227,      27227,     1602,     4806, 0x1cf659dc
+0,         17,         18,        1,      186, 0x466a0dbd, F=0x0
+0,         18,         21,        1,      490, 0x202ee69c, F=0x0
+1,      28829,      28829,     1601,     4803, 0xb0836216
+1,      30430,      30430,     1602,     4806, 0xce8d588a
+0,         19,         20,        1,      204, 0xe7661633, F=0x0
+0,         20,         22,        1,      183, 0x76790c15, F=0x0
+1,      32032,      32032,     1602,     4806, 0xa7b05cdf
+0,         21,         31,        1,    23708, 0xcc000b01, F=0x0
+1,      33634,      33634,     1601,     4803, 0x301f6137
+1,      35235,      35235,     1602,     4806, 0xe17855c6
+0,         22,         27,        1,      804, 0x953a6506, F=0x0
+0,         23,         25,        1,      541, 0x6ad4f1e8, F=0x0
+1,      36837,      36837,     1601,     4803, 0x06d35eb7
+1,      38438,      38438,     1602,     4806, 0x1f845e6b
+0,         24,         24,        1,      328, 0x76e6555c, F=0x0
+0,         25,         26,        1,      248, 0x6de02d02, F=0x0
+1,      40040,      40040,     1602,     4806, 0xbe0f55a4
+0,         26,         29,        1,      567, 0xab291161, F=0x0
+1,      41642,      41642,     1601,     4803, 0x12416298
+1,      43243,      43243,     1602,     4806, 0x09125ad3
+0,         27,         28,        1,      211, 0x9d6e1869, F=0x0
+0,         28,         30,        1,      341, 0x68b55cfa, F=0x0
+1,      44845,      44845,     1601,     4803, 0xd76c59be
+1,      46446,      46446,     1602,     4806, 0xe5db63e1
+1,      48048,      48048,     1602,     4806, 0x103f56ae
+1,      49650,      49650,     1601,     4803, 0xdfde5d65
diff --git a/tests/ref/fate/mxf-xf-hevc-2997p-4k-160M b/tests/ref/fate/mxf-xf-hevc-2997p-4k-160M
new file mode 100644
index 0000000000..df45f1305d
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-2997p-4k-160M
@@ -0,0 +1,76 @@ 
+#extradata 0:      558, 0x32a4df28
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3177, 0x7dfc65cf
+0,         -2,          3,        1,    12526, 0x771a2ed9, F=0x0
+0,         -1,          1,        1,     8562, 0xe335459f, F=0x0
+0,          0,          0,        1,     3255, 0xe5abf164, F=0x0
+1,          0,          0,     1602,     4806, 0x029f5f34
+0,          1,          2,        1,     1781, 0xdbfc53fb, F=0x0
+1,       1602,       1602,     1601,     4803, 0xd9e75d49
+1,       3203,       3203,     1602,     4806, 0xeed15624
+0,          2,          5,        1,     4087, 0x5261ca4c, F=0x0
+0,          3,          4,        1,      988, 0x338da943, F=0x0
+1,       4805,       4805,     1601,     4803, 0x934a618b
+1,       6406,       6406,     1602,     4806, 0x72895b6c
+0,          4,          6,        1,     1082, 0xb7c702f2, F=0x0
+0,          5,         15,        1,    47534, 0x8fac17cc, F=0x0
+1,       8008,       8008,     1602,     4806, 0x1cf659dc
+0,          6,         11,        1,     3175, 0x9fb7112d, F=0x0
+1,       9610,       9610,     1601,     4803, 0xb0836216
+1,      11211,      11211,     1602,     4806, 0xce8d588a
+0,          7,          9,        1,     2870, 0x1d6bb39c, F=0x0
+0,          8,          8,        1,      182, 0x19642802, F=0x0
+1,      12813,      12813,     1601,     4803, 0x93b15b17
+1,      14414,      14414,     1602,     4806, 0xa01162ff
+0,          9,         10,        1,      183, 0xa2400948, F=0x0
+0,         10,         13,        1,     1899, 0xa91cac79, F=0x0
+1,      16016,      16016,     1602,     4806, 0xe17855c6
+0,         11,         12,        1,      185, 0xd91909f5, F=0x0
+1,      17618,      17618,     1601,     4803, 0x06d35eb7
+1,      19219,      19219,     1602,     4806, 0x1f845e6b
+0,         12,         14,        1,      187, 0xbe210e54, F=0x0
+0,         13,         23,        1,     5978, 0x0e749f36, F=0x0
+1,      20821,      20821,     1601,     4803, 0xbd9054a6
+1,      22422,      22422,     1602,     4806, 0xb3476396
+0,         14,         19,        1,      199, 0x067e114d, F=0x0
+0,         15,         17,        1,      183, 0xb1e20833, F=0x0
+1,      24024,      24024,     1602,     4806, 0x09125ad3
+0,         16,         16,        1,      183, 0x4e2f081c, F=0x0
+1,      25626,      25626,     1601,     4803, 0xd76c59be
+1,      27227,      27227,     1602,     4806, 0xe5db63e1
+0,         17,         18,        1,      181, 0xdd44075f, F=0x0
+0,         18,         21,        1,      181, 0xbe5f06d8, F=0x0
+1,      28829,      28829,     1601,     4803, 0x0cf35579
+1,      30430,      30430,     1602,     4806, 0x89685e9a
+0,         19,         20,        1,      181, 0xefdd069e, F=0x0
+0,         20,         22,        1,      180, 0xec85069d, F=0x0
+1,      32032,      32032,     1602,     4806, 0xc2ba6029
+0,         21,         31,        1,     4581, 0x7a960889, F=0x0
+1,      33634,      33634,     1601,     4803, 0xfa8854f1
+1,      35235,      35235,     1602,     4806, 0x00076178
+0,         22,         27,        1,      638, 0x48762a71, F=0x0
+0,         23,         25,        1,      184, 0x6133098f, F=0x0
+1,      36837,      36837,     1601,     4803, 0x3e965bf2
+1,      38438,      38438,     1602,     4806, 0x2ffa5705
+0,         24,         24,        1,      182, 0xcb3f065a, F=0x0
+0,         25,         26,        1,      181, 0x9eae07a3, F=0x0
+1,      40040,      40040,     1602,     4806, 0xf7e1643e
+0,         26,         29,        1,      277, 0x693a693b, F=0x0
+1,      41642,      41642,     1601,     4803, 0xb0f5584f
+1,      43243,      43243,     1602,     4806, 0xce455b9a
+0,         27,         28,        1,      181, 0x63010746, F=0x0
+0,         28,         30,        1,      181, 0xcc2907ea, F=0x0
+1,      44845,      44845,     1601,     4803, 0xfb946262
+1,      46446,      46446,     1602,     4806, 0x1682566b
+1,      48048,      48048,     1602,     4806, 0x029f5f34
+1,      49650,      49650,     1601,     4803, 0xd9e75d49
diff --git a/tests/ref/fate/mxf-xf-hevc-5000i-1080-45M b/tests/ref/fate/mxf-xf-hevc-5000i-1080-45M
new file mode 100644
index 0000000000..2f2b764a94
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5000i-1080-45M
@@ -0,0 +1,60 @@ 
+#extradata 0:      412, 0x6ff69cf8
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x540
+#sar 0: 1/2
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,          0,          0,        1,     5376, 0xf563dde3
+1,          0,          0,     1920,     5760, 0x5ecb38d5
+0,          1,          1,        1,     3079, 0x5ff1d787, F=0x0
+1,       1920,       1920,     1920,     5760, 0x5ecb38d5
+0,          2,          2,        1,     4768, 0x242a1257, F=0x0
+1,       3840,       3840,     1920,     5760, 0x5ecb38d5
+0,          3,          3,        1,     8218, 0xbf6a9478, F=0x0
+1,       5760,       5760,     1920,     5760, 0x5ecb38d5
+0,          4,          4,        1,    10771, 0x3d3da38e, F=0x0
+1,       7680,       7680,     1920,     5760, 0x5ecb38d5
+0,          5,          5,        1,    11301, 0x22cebcd7, F=0x0
+1,       9600,       9600,     1920,     5760, 0x5ecb38d5
+0,          6,          6,        1,    11828, 0x84770b9f, F=0x0
+1,      11520,      11520,     1920,     5760, 0x5ecb38d5
+0,          7,          7,        1,     8611, 0x6afba17f, F=0x0
+1,      13440,      13440,     1920,     5760, 0x5ecb38d5
+0,          8,          8,        1,     6240, 0x5e28f18e, F=0x0
+1,      15360,      15360,     1920,     5760, 0x5ecb38d5
+0,          9,          9,        1,     6631, 0xc26aca24, F=0x0
+1,      17280,      17280,     1920,     5760, 0x5ecb38d5
+0,         10,         10,        1,     5835, 0x39996a5f, F=0x0
+1,      19200,      19200,     1920,     5760, 0x5ecb38d5
+0,         11,         11,        1,     5813, 0x1d30160c, F=0x0
+1,      21120,      21120,     1920,     5760, 0x5ecb38d5
+0,         12,         12,        1,     5952, 0xe5a896fc, F=0x0
+1,      23040,      23040,     1920,     5760, 0x5ecb38d5
+0,         13,         13,        1,     6127, 0xd90bd455, F=0x0
+1,      24960,      24960,     1920,     5760, 0x5ecb38d5
+0,         14,         14,        1,     6145, 0xeeb8e6b6, F=0x0
+1,      26880,      26880,     1920,     5760, 0x5ecb38d5
+0,         15,         15,        1,     5826, 0x0ef538d5, F=0x0
+1,      28800,      28800,     1920,     5760, 0x5ecb38d5
+0,         16,         16,        1,     5606, 0x6d34e340, F=0x0
+1,      30720,      30720,     1920,     5760, 0x5ecb38d5
+0,         17,         17,        1,     5834, 0x87a65292, F=0x0
+1,      32640,      32640,     1920,     5760, 0x5ecb38d5
+0,         18,         18,        1,     5928, 0xde27a7bf, F=0x0
+1,      34560,      34560,     1920,     5760, 0x5ecb38d5
+0,         19,         19,        1,     5880, 0x14a26e56, F=0x0
+1,      36480,      36480,     1920,     5760, 0x5ecb38d5
+0,         20,         20,        1,     6159, 0x7a07ef78, F=0x0
+1,      38400,      38400,     1920,     5760, 0x5ecb38d5
+0,         21,         21,        1,     6295, 0x569b3881, F=0x0
+1,      40320,      40320,     1920,     5760, 0x5ecb38d5
+0,         22,         22,        1,     6181, 0x5a88e719, F=0x0
+1,      42240,      42240,     1920,     5760, 0x5ecb38d5
+0,         23,         23,        1,     5763, 0x29ea0376, F=0x0
+1,      44160,      44160,     1920,     5760, 0x5ecb38d5
diff --git a/tests/ref/fate/mxf-xf-hevc-5000i-1080-60M b/tests/ref/fate/mxf-xf-hevc-5000i-1080-60M
new file mode 100644
index 0000000000..1812327da7
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5000i-1080-60M
@@ -0,0 +1,60 @@ 
+#extradata 0:      412, 0x6db1a0eb
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x540
+#sar 0: 1/2
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,          0,          0,        1,     5674, 0x972e7444
+1,          0,          0,     1920,     5760, 0x5ecb38d5
+0,          1,          1,        1,     3011, 0xaed39f11, F=0x0
+1,       1920,       1920,     1920,     5760, 0x5ecb38d5
+0,          2,          2,        1,     4262, 0x3801f13f, F=0x0
+1,       3840,       3840,     1920,     5760, 0x5ecb38d5
+0,          3,          3,        1,     6687, 0xfbbfdc16, F=0x0
+1,       5760,       5760,     1920,     5760, 0x5ecb38d5
+0,          4,          4,        1,    11585, 0x3f986e9b, F=0x0
+1,       7680,       7680,     1920,     5760, 0x5ecb38d5
+0,          5,          5,        1,    12678, 0x658aae5b, F=0x0
+1,       9600,       9600,     1920,     5760, 0x5ecb38d5
+0,          6,          6,        1,     9767, 0xada5107f, F=0x0
+1,      11520,      11520,     1920,     5760, 0x5ecb38d5
+0,          7,          7,        1,     6744, 0xadceff06, F=0x0
+1,      13440,      13440,     1920,     5760, 0x5ecb38d5
+0,          8,          8,        1,     5993, 0xe9faa25c, F=0x0
+1,      15360,      15360,     1920,     5760, 0x5ecb38d5
+0,          9,          9,        1,     5942, 0x8bd8843c, F=0x0
+1,      17280,      17280,     1920,     5760, 0x5ecb38d5
+0,         10,         10,        1,     5602, 0xab1cd486, F=0x0
+1,      19200,      19200,     1920,     5760, 0x5ecb38d5
+0,         11,         11,        1,     5539, 0xfa4c961c, F=0x0
+1,      21120,      21120,     1920,     5760, 0x5ecb38d5
+0,         12,         12,        1,     5153, 0x5b3fedbd, F=0x0
+1,      23040,      23040,     1920,     5760, 0x5ecb38d5
+0,         13,         13,        1,     5002, 0x437cb4cf, F=0x0
+1,      24960,      24960,     1920,     5760, 0x5ecb38d5
+0,         14,         14,        1,     5213, 0x4bc34820, F=0x0
+1,      26880,      26880,     1920,     5760, 0x5ecb38d5
+0,         15,         15,        1,     4858, 0xab296c87, F=0x0
+1,      28800,      28800,     1920,     5760, 0x5ecb38d5
+0,         16,         16,        1,     5074, 0xdcb9c3ae, F=0x0
+1,      30720,      30720,     1920,     5760, 0x5ecb38d5
+0,         17,         17,        1,     4942, 0x6f72ab16, F=0x0
+1,      32640,      32640,     1920,     5760, 0x5ecb38d5
+0,         18,         18,        1,     4966, 0x42af9004, F=0x0
+1,      34560,      34560,     1920,     5760, 0x5ecb38d5
+0,         19,         19,        1,     4786, 0xabf56ebc, F=0x0
+1,      36480,      36480,     1920,     5760, 0x5ecb38d5
+0,         20,         20,        1,     5261, 0xd50f27fa, F=0x0
+1,      38400,      38400,     1920,     5760, 0x5ecb38d5
+0,         21,         21,        1,     5287, 0x75ed4f6c, F=0x0
+1,      40320,      40320,     1920,     5760, 0x5ecb38d5
+0,         22,         22,        1,     5359, 0x90a857ba, F=0x0
+1,      42240,      42240,     1920,     5760, 0x5ecb38d5
+0,         23,         23,        1,     5125, 0x748bdcce, F=0x0
+1,      44160,      44160,     1920,     5760, 0x5ecb38d5
diff --git a/tests/ref/fate/mxf-xf-hevc-5000p-1080-45M b/tests/ref/fate/mxf-xf-hevc-5000p-1080-45M
new file mode 100644
index 0000000000..a3460fde10
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5000p-1080-45M
@@ -0,0 +1,108 @@ 
+#extradata 0:      557, 0x8512dd27
+#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3059, 0x983e8189
+0,         -2,          3,        1,     2506, 0x8c2fa2e6, F=0x0
+0,         -1,          1,        1,     2770, 0xba5a1f82, F=0x0
+0,          0,          0,        1,     1874, 0x74467b2f, F=0x0
+1,          0,          0,      960,     2880, 0xceee9c63
+0,          1,          2,        1,     1149, 0x8a541f21, F=0x0
+1,        960,        960,      960,     2880, 0xceee9c63
+0,          2,          5,        1,     2204, 0xb2122172, F=0x0
+1,       1920,       1920,      960,     2880, 0xceee9c63
+0,          3,          4,        1,     1563, 0x15a5d121, F=0x0
+1,       2880,       2880,      960,     2880, 0xceee9c63
+0,          4,          6,        1,      612, 0x652123d6, F=0x0
+1,       3840,       3840,      960,     2880, 0xceee9c63
+0,          5,         15,        1,    12317, 0x3e65f481, F=0x0
+1,       4800,       4800,      960,     2880, 0xceee9c63
+0,          6,         11,        1,     1190, 0xf6a64d68, F=0x0
+1,       5760,       5760,      960,     2880, 0xceee9c63
+0,          7,          9,        1,     1906, 0xd5cc793b, F=0x0
+1,       6720,       6720,      960,     2880, 0xceee9c63
+0,          8,          8,        1,      494, 0x1155cf8d, F=0x0
+1,       7680,       7680,      960,     2880, 0xceee9c63
+0,          9,         10,        1,      163, 0x9c9c3e52, F=0x0
+1,       8640,       8640,      960,     2880, 0xceee9c63
+0,         10,         13,        1,      730, 0xcaf45cef, F=0x0
+1,       9600,       9600,      960,     2880, 0xceee9c63
+0,         11,         12,        1,      127, 0xd70f317d, F=0x0
+1,      10560,      10560,      960,     2880, 0xceee9c63
+0,         12,         14,        1,      588, 0x40ef115d, F=0x0
+1,      11520,      11520,      960,     2880, 0xceee9c63
+0,         13,         23,        1,     9271, 0x1093d8d4, F=0x0
+1,      12480,      12480,      960,     2880, 0xceee9c63
+0,         14,         19,        1,      393, 0x0c20b0f2, F=0x0
+1,      13440,      13440,      960,     2880, 0xceee9c63
+0,         15,         17,        1,      423, 0x751dc036, F=0x0
+1,      14400,      14400,      960,     2880, 0xceee9c63
+0,         16,         16,        1,      347, 0x1865983d, F=0x0
+1,      15360,      15360,      960,     2880, 0xceee9c63
+0,         17,         18,        1,      203, 0x8cf657ba, F=0x0
+1,      16320,      16320,      960,     2880, 0xceee9c63
+0,         18,         21,        1,      212, 0xcce06456, F=0x0
+1,      17280,      17280,      960,     2880, 0xceee9c63
+0,         19,         20,        1,      135, 0x3d5b362c, F=0x0
+1,      18240,      18240,      960,     2880, 0xceee9c63
+0,         20,         22,        1,      179, 0xc2c0499f, F=0x0
+1,      19200,      19200,      960,     2880, 0xceee9c63
+0,         21,         31,        1,     7793, 0x628712c2, F=0x0
+1,      20160,      20160,      960,     2880, 0xceee9c63
+0,         22,         27,        1,      545, 0x992105cc, F=0x0
+1,      21120,      21120,      960,     2880, 0xceee9c63
+0,         23,         25,        1,      218, 0x78f75f3a, F=0x0
+1,      22080,      22080,      960,     2880, 0xceee9c63
+0,         24,         24,        1,      255, 0xe24e70bf, F=0x0
+1,      23040,      23040,      960,     2880, 0xceee9c63
+0,         25,         26,        1,      128, 0xae003392, F=0x0
+1,      24000,      24000,      960,     2880, 0xceee9c63
+0,         26,         29,        1,      183, 0xf2864e3a, F=0x0
+1,      24960,      24960,      960,     2880, 0xceee9c63
+0,         27,         28,        1,      141, 0x24ea347c, F=0x0
+1,      25920,      25920,      960,     2880, 0xceee9c63
+0,         28,         30,        1,      136, 0x7c773350, F=0x0
+1,      26880,      26880,      960,     2880, 0xceee9c63
+0,         29,         39,        1,     8628, 0x84a67823, F=0x0
+1,      27840,      27840,      960,     2880, 0xceee9c63
+0,         30,         35,        1,     1113, 0x50a7245b, F=0x0
+1,      28800,      28800,      960,     2880, 0xceee9c63
+0,         31,         33,        1,      211, 0x1dfa5876, F=0x0
+1,      29760,      29760,      960,     2880, 0xceee9c63
+0,         32,         32,        1,      187, 0xd65b4f9f, F=0x0
+1,      30720,      30720,      960,     2880, 0xceee9c63
+0,         33,         34,        1,      163, 0x4feb47e8, F=0x0
+1,      31680,      31680,      960,     2880, 0xceee9c63
+0,         34,         37,        1,     1352, 0x1f5e8002, F=0x0
+1,      32640,      32640,      960,     2880, 0xceee9c63
+0,         35,         36,        1,      157, 0x0daa401b, F=0x0
+1,      33600,      33600,      960,     2880, 0xceee9c63
+0,         36,         38,        1,      395, 0x1eb4b127, F=0x0
+1,      34560,      34560,      960,     2880, 0xceee9c63
+0,         37,         47,        1,     2842, 0x66067bcd, F=0x0
+1,      35520,      35520,      960,     2880, 0xceee9c63
+0,         38,         43,        1,      538, 0x814affb5, F=0x0
+1,      36480,      36480,      960,     2880, 0xceee9c63
+0,         39,         41,        1,      176, 0xbf9a4d05, F=0x0
+1,      37440,      37440,      960,     2880, 0xceee9c63
+0,         40,         40,        1,      179, 0x67c749b1, F=0x0
+1,      38400,      38400,      960,     2880, 0xceee9c63
+0,         41,         42,        1,      134, 0xb1e92e90, F=0x0
+1,      39360,      39360,      960,     2880, 0xceee9c63
+0,         42,         45,        1,      172, 0x5ef34984, F=0x0
+1,      40320,      40320,      960,     2880, 0xceee9c63
+0,         43,         44,        1,      333, 0x093e8b4f, F=0x0
+1,      41280,      41280,      960,     2880, 0xceee9c63
+0,         44,         46,        1,      294, 0xaa757e75, F=0x0
+1,      42240,      42240,      960,     2880, 0xceee9c63
+1,      43200,      43200,      960,     2880, 0xceee9c63
+1,      44160,      44160,      960,     2880, 0xceee9c63
+1,      45120,      45120,      960,     2880, 0xceee9c63
diff --git a/tests/ref/fate/mxf-xf-hevc-5000p-1080-60M b/tests/ref/fate/mxf-xf-hevc-5000p-1080-60M
new file mode 100644
index 0000000000..e69a8af3a7
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5000p-1080-60M
@@ -0,0 +1,108 @@ 
+#extradata 0:      557, 0x58c5dda5
+#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     4250, 0x3c43fe8d
+0,         -2,          3,        1,     4911, 0x3cc172cd, F=0x0
+0,         -1,          1,        1,     2383, 0x1a8a8bab, F=0x0
+0,          0,          0,        1,     1452, 0xfdd99b86, F=0x0
+1,          0,          0,      960,     2880, 0xceee9c63
+0,          1,          2,        1,      904, 0x810a918d, F=0x0
+1,        960,        960,      960,     2880, 0xceee9c63
+0,          2,          5,        1,      262, 0x144d7336, F=0x0
+1,       1920,       1920,      960,     2880, 0xceee9c63
+0,          3,          4,        1,      645, 0x86e92c85, F=0x0
+1,       2880,       2880,      960,     2880, 0xceee9c63
+0,          4,          6,        1,     1005, 0xc357db9e, F=0x0
+1,       3840,       3840,      960,     2880, 0xceee9c63
+0,          5,         15,        1,    15820, 0xca8ee3db, F=0x0
+1,       4800,       4800,      960,     2880, 0xceee9c63
+0,          6,         11,        1,     1222, 0xc2914f36, F=0x0
+1,       5760,       5760,      960,     2880, 0xceee9c63
+0,          7,          9,        1,     1463, 0xad1ebb16, F=0x0
+1,       6720,       6720,      960,     2880, 0xceee9c63
+0,          8,          8,        1,      373, 0xaa48a03c, F=0x0
+1,       7680,       7680,      960,     2880, 0xceee9c63
+0,          9,         10,        1,      216, 0xc628540c, F=0x0
+1,       8640,       8640,      960,     2880, 0xceee9c63
+0,         10,         13,        1,      720, 0xff75507e, F=0x0
+1,       9600,       9600,      960,     2880, 0xceee9c63
+0,         11,         12,        1,      173, 0xb2f341d2, F=0x0
+1,      10560,      10560,      960,     2880, 0xceee9c63
+0,         12,         14,        1,      246, 0x04e36b88, F=0x0
+1,      11520,      11520,      960,     2880, 0xceee9c63
+0,         13,         23,        1,     2259, 0x98b96828, F=0x0
+1,      12480,      12480,      960,     2880, 0xceee9c63
+0,         14,         19,        1,      521, 0x16e6f4ac, F=0x0
+1,      13440,      13440,      960,     2880, 0xceee9c63
+0,         15,         17,        1,      469, 0xd964d8fa, F=0x0
+1,      14400,      14400,      960,     2880, 0xceee9c63
+0,         16,         16,        1,      126, 0x15a2283c, F=0x0
+1,      15360,      15360,      960,     2880, 0xceee9c63
+0,         17,         18,        1,      133, 0x13ae2f7b, F=0x0
+1,      16320,      16320,      960,     2880, 0xceee9c63
+0,         18,         21,        1,      413, 0xff0dc246, F=0x0
+1,      17280,      17280,      960,     2880, 0xceee9c63
+0,         19,         20,        1,      146, 0xb9dc3cf0, F=0x0
+1,      18240,      18240,      960,     2880, 0xceee9c63
+0,         20,         22,        1,      161, 0xfed642ae, F=0x0
+1,      19200,      19200,      960,     2880, 0xceee9c63
+0,         21,         31,        1,     3376, 0x7f52a276, F=0x0
+1,      20160,      20160,      960,     2880, 0xceee9c63
+0,         22,         27,        1,      766, 0xf87d741b, F=0x0
+1,      21120,      21120,      960,     2880, 0xceee9c63
+0,         23,         25,        1,      792, 0x0ac38a11, F=0x0
+1,      22080,      22080,      960,     2880, 0xceee9c63
+0,         24,         24,        1,      175, 0x4a744509, F=0x0
+1,      23040,      23040,      960,     2880, 0xceee9c63
+0,         25,         26,        1,      183, 0xa5795086, F=0x0
+1,      24000,      24000,      960,     2880, 0xceee9c63
+0,         26,         29,        1,      680, 0x1b8e56b3, F=0x0
+1,      24960,      24960,      960,     2880, 0xceee9c63
+0,         27,         28,        1,      208, 0xc79b5929, F=0x0
+1,      25920,      25920,      960,     2880, 0xceee9c63
+0,         28,         30,        1,      169, 0x705d440a, F=0x0
+1,      26880,      26880,      960,     2880, 0xceee9c63
+0,         29,         39,        1,     7762, 0x693d0bf9, F=0x0
+1,      27840,      27840,      960,     2880, 0xceee9c63
+0,         30,         35,        1,     3322, 0xcd4053a5, F=0x0
+1,      28800,      28800,      960,     2880, 0xceee9c63
+0,         31,         33,        1,     1342, 0xc90a9274, F=0x0
+1,      29760,      29760,      960,     2880, 0xceee9c63
+0,         32,         32,        1,      193, 0x882e5006, F=0x0
+1,      30720,      30720,      960,     2880, 0xceee9c63
+0,         33,         34,        1,      276, 0xee977934, F=0x0
+1,      31680,      31680,      960,     2880, 0xceee9c63
+0,         34,         37,        1,     2645, 0x2786d73c, F=0x0
+1,      32640,      32640,      960,     2880, 0xceee9c63
+0,         35,         36,        1,      826, 0xfc877228, F=0x0
+1,      33600,      33600,      960,     2880, 0xceee9c63
+0,         36,         38,        1,      348, 0xfef59e5b, F=0x0
+1,      34560,      34560,      960,     2880, 0xceee9c63
+0,         37,         47,        1,     1166, 0xff6e3fbd, F=0x0
+1,      35520,      35520,      960,     2880, 0xceee9c63
+0,         38,         43,        1,      903, 0x14aa9f1e, F=0x0
+1,      36480,      36480,      960,     2880, 0xceee9c63
+0,         39,         41,        1,     1148, 0x7e3c1cf3, F=0x0
+1,      37440,      37440,      960,     2880, 0xceee9c63
+0,         40,         40,        1,      679, 0x5cf32a5c, F=0x0
+1,      38400,      38400,      960,     2880, 0xceee9c63
+0,         41,         42,        1,      310, 0x29cd8aed, F=0x0
+1,      39360,      39360,      960,     2880, 0xceee9c63
+0,         42,         45,        1,      357, 0x3d7095cd, F=0x0
+1,      40320,      40320,      960,     2880, 0xceee9c63
+0,         43,         44,        1,      551, 0x56a4f366, F=0x0
+1,      41280,      41280,      960,     2880, 0xceee9c63
+0,         44,         46,        1,      315, 0xeb878ca1, F=0x0
+1,      42240,      42240,      960,     2880, 0xceee9c63
+1,      43200,      43200,      960,     2880, 0xceee9c63
+1,      44160,      44160,      960,     2880, 0xceee9c63
+1,      45120,      45120,      960,     2880, 0xceee9c63
diff --git a/tests/ref/fate/mxf-xf-hevc-5000p-4k-110M b/tests/ref/fate/mxf-xf-hevc-5000p-4k-110M
new file mode 100644
index 0000000000..3d772ad082
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5000p-4k-110M
@@ -0,0 +1,108 @@ 
+#extradata 0:      572, 0x8063e0ed
+#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3400, 0x1ed7c7cb
+0,         -2,          3,        1,     7786, 0xd988d4e7, F=0x0
+0,         -1,          1,        1,      472, 0xcdced9d3, F=0x0
+0,          0,          0,        1,      177, 0xd17504ef, F=0x0
+1,          0,          0,      960,     2880, 0xceee9c63
+0,          1,          2,        1,      258, 0xe5af5739, F=0x0
+1,        960,        960,      960,     2880, 0xceee9c63
+0,          2,          5,        1,     1059, 0x163cd4eb, F=0x0
+1,       1920,       1920,      960,     2880, 0xceee9c63
+0,          3,          4,        1,      220, 0xe53e42d9, F=0x0
+1,       2880,       2880,      960,     2880, 0xceee9c63
+0,          4,          6,        1,      179, 0x4e820949, F=0x0
+1,       3840,       3840,      960,     2880, 0xceee9c63
+0,          5,         15,        1,    26525, 0xa336a87b, F=0x0
+1,       4800,       4800,      960,     2880, 0xceee9c63
+0,          6,         11,        1,     3179, 0x1c1e38ae, F=0x0
+1,       5760,       5760,      960,     2880, 0xceee9c63
+0,          7,          9,        1,     3606, 0x77e050e6, F=0x0
+1,       6720,       6720,      960,     2880, 0xceee9c63
+0,          8,          8,        1,      293, 0xaa3d66d1, F=0x0
+1,       7680,       7680,      960,     2880, 0xceee9c63
+0,          9,         10,        1,      179, 0xb01d0845, F=0x0
+1,       8640,       8640,      960,     2880, 0xceee9c63
+0,         10,         13,        1,     2675, 0x505ce997, F=0x0
+1,       9600,       9600,      960,     2880, 0xceee9c63
+0,         11,         12,        1,      843, 0xfb8d94ce, F=0x0
+1,      10560,      10560,      960,     2880, 0xceee9c63
+0,         12,         14,        1,      181, 0xe57b092d, F=0x0
+1,      11520,      11520,      960,     2880, 0xceee9c63
+0,         13,         23,        1,    19599, 0x2bc4172f, F=0x0
+1,      12480,      12480,      960,     2880, 0xceee9c63
+0,         14,         19,        1,     4717, 0x54d41b06, F=0x0
+1,      13440,      13440,      960,     2880, 0xceee9c63
+0,         15,         17,        1,     5208, 0x361e37d0, F=0x0
+1,      14400,      14400,      960,     2880, 0xceee9c63
+0,         16,         16,        1,     1093, 0x75bff50f, F=0x0
+1,      15360,      15360,      960,     2880, 0xceee9c63
+0,         17,         18,        1,      282, 0x5cad642d, F=0x0
+1,      16320,      16320,      960,     2880, 0xceee9c63
+0,         18,         21,        1,     1887, 0xafbc74dc, F=0x0
+1,      17280,      17280,      960,     2880, 0xceee9c63
+0,         19,         20,        1,      685, 0x3f2e2641, F=0x0
+1,      18240,      18240,      960,     2880, 0xceee9c63
+0,         20,         22,        1,      231, 0x653449f2, F=0x0
+1,      19200,      19200,      960,     2880, 0xceee9c63
+0,         21,         31,        1,    30838, 0xc2716447, F=0x0
+1,      20160,      20160,      960,     2880, 0xceee9c63
+0,         22,         27,        1,     3979, 0x23646873, F=0x0
+1,      21120,      21120,      960,     2880, 0xceee9c63
+0,         23,         25,        1,     1141, 0x507f0cf0, F=0x0
+1,      22080,      22080,      960,     2880, 0xceee9c63
+0,         24,         24,        1,      327, 0x551757e6, F=0x0
+1,      23040,      23040,      960,     2880, 0xceee9c63
+0,         25,         26,        1,      258, 0xd68931d4, F=0x0
+1,      24000,      24000,      960,     2880, 0xceee9c63
+0,         26,         29,        1,     1066, 0x68c7f5ac, F=0x0
+1,      24960,      24960,      960,     2880, 0xceee9c63
+0,         27,         28,        1,      213, 0x99db2294, F=0x0
+1,      25920,      25920,      960,     2880, 0xceee9c63
+0,         28,         30,        1,      249, 0x7fa43145, F=0x0
+1,      26880,      26880,      960,     2880, 0xceee9c63
+0,         29,         39,        1,    27882, 0xab6428fe, F=0x0
+1,      27840,      27840,      960,     2880, 0xceee9c63
+0,         30,         35,        1,     1552, 0xc37df68d, F=0x0
+1,      28800,      28800,      960,     2880, 0xceee9c63
+0,         31,         33,        1,      915, 0x44d2a07a, F=0x0
+1,      29760,      29760,      960,     2880, 0xceee9c63
+0,         32,         32,        1,      446, 0xf1208dcf, F=0x0
+1,      30720,      30720,      960,     2880, 0xceee9c63
+0,         33,         34,        1,      328, 0xf9fc5997, F=0x0
+1,      31680,      31680,      960,     2880, 0xceee9c63
+0,         34,         37,        1,      749, 0xb6a64e9b, F=0x0
+1,      32640,      32640,      960,     2880, 0xceee9c63
+0,         35,         36,        1,      385, 0x2f1972e7, F=0x0
+1,      33600,      33600,      960,     2880, 0xceee9c63
+0,         36,         38,        1,      392, 0x63c06c86, F=0x0
+1,      34560,      34560,      960,     2880, 0xceee9c63
+0,         37,         47,        1,     4837, 0xde2f8960, F=0x0
+1,      35520,      35520,      960,     2880, 0xceee9c63
+0,         38,         43,        1,      415, 0xef9d85c5, F=0x0
+1,      36480,      36480,      960,     2880, 0xceee9c63
+0,         39,         41,        1,      331, 0x75ff5d3e, F=0x0
+1,      37440,      37440,      960,     2880, 0xceee9c63
+0,         40,         40,        1,      236, 0x91182c62, F=0x0
+1,      38400,      38400,      960,     2880, 0xceee9c63
+0,         41,         42,        1,      240, 0x7e6c2f4c, F=0x0
+1,      39360,      39360,      960,     2880, 0xceee9c63
+0,         42,         45,        1,      323, 0x752e5ea9, F=0x0
+1,      40320,      40320,      960,     2880, 0xceee9c63
+0,         43,         44,        1,      230, 0x32502b6d, F=0x0
+1,      41280,      41280,      960,     2880, 0xceee9c63
+0,         44,         46,        1,      227, 0x0a112ac5, F=0x0
+1,      42240,      42240,      960,     2880, 0xceee9c63
+1,      43200,      43200,      960,     2880, 0xceee9c63
+1,      44160,      44160,      960,     2880, 0xceee9c63
+1,      45120,      45120,      960,     2880, 0xceee9c63
diff --git a/tests/ref/fate/mxf-xf-hevc-5000p-4k-160M b/tests/ref/fate/mxf-xf-hevc-5000p-4k-160M
new file mode 100644
index 0000000000..9c04241fad
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5000p-4k-160M
@@ -0,0 +1,108 @@ 
+#extradata 0:      558, 0x24a7de86
+#tb 0: 1/50
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2960, 0x7e4df172
+0,         -2,          3,        1,     9950, 0x4e6312b2, F=0x0
+0,         -1,          1,        1,     2494, 0x08488fdc, F=0x0
+0,          0,          0,        1,     4245, 0x56399541, F=0x0
+1,          0,          0,      960,     2880, 0xceee9c63
+0,          1,          2,        1,      316, 0x3fea801e, F=0x0
+1,        960,        960,      960,     2880, 0xceee9c63
+0,          2,          5,        1,      301, 0xf59e7782, F=0x0
+1,       1920,       1920,      960,     2880, 0xceee9c63
+0,          3,          4,        1,      208, 0x3174195f, F=0x0
+1,       2880,       2880,      960,     2880, 0xceee9c63
+0,          4,          6,        1,      223, 0x98e7236c, F=0x0
+1,       3840,       3840,      960,     2880, 0xceee9c63
+0,          5,         15,        1,    30721, 0x16969e4d, F=0x0
+1,       4800,       4800,      960,     2880, 0xceee9c63
+0,          6,         11,        1,     4711, 0x9bf013d7, F=0x0
+1,       5760,       5760,      960,     2880, 0xceee9c63
+0,          7,          9,        1,     3131, 0xe94a4173, F=0x0
+1,       6720,       6720,      960,     2880, 0xceee9c63
+0,          8,          8,        1,      235, 0xa3203eb1, F=0x0
+1,       7680,       7680,      960,     2880, 0xceee9c63
+0,          9,         10,        1,      179, 0x6b6507da, F=0x0
+1,       8640,       8640,      960,     2880, 0xceee9c63
+0,         10,         13,        1,      438, 0xd738c647, F=0x0
+1,       9600,       9600,      960,     2880, 0xceee9c63
+0,         11,         12,        1,      710, 0xee862f44, F=0x0
+1,      10560,      10560,      960,     2880, 0xceee9c63
+0,         12,         14,        1,      674, 0xb8471db5, F=0x0
+1,      11520,      11520,      960,     2880, 0xceee9c63
+0,         13,         23,        1,    13976, 0x760ad0ba, F=0x0
+1,      12480,      12480,      960,     2880, 0xceee9c63
+0,         14,         19,        1,      580, 0x2fcd0c00, F=0x0
+1,      13440,      13440,      960,     2880, 0xceee9c63
+0,         15,         17,        1,      229, 0x96ec4a25, F=0x0
+1,      14400,      14400,      960,     2880, 0xceee9c63
+0,         16,         16,        1,      181, 0x02da05fd, F=0x0
+1,      15360,      15360,      960,     2880, 0xceee9c63
+0,         17,         18,        1,      185, 0xf4ad09ae, F=0x0
+1,      16320,      16320,      960,     2880, 0xceee9c63
+0,         18,         21,        1,      226, 0x6fa249ce, F=0x0
+1,      17280,      17280,      960,     2880, 0xceee9c63
+0,         19,         20,        1,      190, 0x42b60d85, F=0x0
+1,      18240,      18240,      960,     2880, 0xceee9c63
+0,         20,         22,        1,      187, 0x212a0af3, F=0x0
+1,      19200,      19200,      960,     2880, 0xceee9c63
+0,         21,         31,        1,    13751, 0x8f943b12, F=0x0
+1,      20160,      20160,      960,     2880, 0xceee9c63
+0,         22,         27,        1,      690, 0xa59337cc, F=0x0
+1,      21120,      21120,      960,     2880, 0xceee9c63
+0,         23,         25,        1,      530, 0x221bfb39, F=0x0
+1,      22080,      22080,      960,     2880, 0xceee9c63
+0,         24,         24,        1,      186, 0x9db80d28, F=0x0
+1,      23040,      23040,      960,     2880, 0xceee9c63
+0,         25,         26,        1,      184, 0x14c20e4b, F=0x0
+1,      24000,      24000,      960,     2880, 0xceee9c63
+0,         26,         29,        1,      364, 0xfb598b5d, F=0x0
+1,      24960,      24960,      960,     2880, 0xceee9c63
+0,         27,         28,        1,      196, 0xeaa413d0, F=0x0
+1,      25920,      25920,      960,     2880, 0xceee9c63
+0,         28,         30,        1,      191, 0x63121202, F=0x0
+1,      26880,      26880,      960,     2880, 0xceee9c63
+0,         29,         39,        1,    10085, 0x3c96993a, F=0x0
+1,      27840,      27840,      960,     2880, 0xceee9c63
+0,         30,         35,        1,     1512, 0x5cb5d6a2, F=0x0
+1,      28800,      28800,      960,     2880, 0xceee9c63
+0,         31,         33,        1,      316, 0x70b37690, F=0x0
+1,      29760,      29760,      960,     2880, 0xceee9c63
+0,         32,         32,        1,      329, 0x138556d4, F=0x0
+1,      30720,      30720,      960,     2880, 0xceee9c63
+0,         33,         34,        1,      234, 0x56a42d04, F=0x0
+1,      31680,      31680,      960,     2880, 0xceee9c63
+0,         34,         37,        1,      640, 0x23d8371c, F=0x0
+1,      32640,      32640,      960,     2880, 0xceee9c63
+0,         35,         36,        1,      209, 0xaab81c97, F=0x0
+1,      33600,      33600,      960,     2880, 0xceee9c63
+0,         36,         38,        1,      220, 0xe0a21e97, F=0x0
+1,      34560,      34560,      960,     2880, 0xceee9c63
+0,         37,         47,        1,     1057, 0xb4b8d99d, F=0x0
+1,      35520,      35520,      960,     2880, 0xceee9c63
+0,         38,         43,        1,      713, 0x30645345, F=0x0
+1,      36480,      36480,      960,     2880, 0xceee9c63
+0,         39,         41,        1,      367, 0x2af59918, F=0x0
+1,      37440,      37440,      960,     2880, 0xceee9c63
+0,         40,         40,        1,      204, 0x544417b1, F=0x0
+1,      38400,      38400,      960,     2880, 0xceee9c63
+0,         41,         42,        1,      214, 0x01512030, F=0x0
+1,      39360,      39360,      960,     2880, 0xceee9c63
+0,         42,         45,        1,      248, 0x3284508b, F=0x0
+1,      40320,      40320,      960,     2880, 0xceee9c63
+0,         43,         44,        1,      219, 0x7b4720e4, F=0x0
+1,      41280,      41280,      960,     2880, 0xceee9c63
+0,         44,         46,        1,      208, 0x22031993, F=0x0
+1,      42240,      42240,      960,     2880, 0xceee9c63
+1,      43200,      43200,      960,     2880, 0xceee9c63
+1,      44160,      44160,      960,     2880, 0xceee9c63
+1,      45120,      45120,      960,     2880, 0xceee9c63
diff --git a/tests/ref/fate/mxf-xf-hevc-5994i-1080-45M b/tests/ref/fate/mxf-xf-hevc-5994i-1080-45M
new file mode 100644
index 0000000000..d8e51fb1d0
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5994i-1080-45M
@@ -0,0 +1,76 @@ 
+#extradata 0:      412, 0x6b9f9eeb
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x540
+#sar 0: 1/2
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,          0,          0,        1,     5408, 0xeefbe689
+1,          0,          0,     1602,     4806, 0x56426250
+0,          1,          1,        1,     2615, 0x4c41d641, F=0x0
+1,       1602,       1602,     1601,     4803, 0x45d254ad
+1,       3203,       3203,     1602,     4806, 0x25cd605a
+0,          2,          2,        1,     5305, 0xee38e5d6, F=0x0
+0,          3,          3,        1,     8429, 0xa21dc9af, F=0x0
+1,       4805,       4805,     1601,     4803, 0x65c45cc8
+1,       6406,       6406,     1602,     4806, 0xbe0f55a4
+0,          4,          4,        1,    10212, 0xca087d7d, F=0x0
+0,          5,          5,        1,    11304, 0x6a52f8d9, F=0x0
+1,       8008,       8008,     1602,     4806, 0x3f8f6562
+0,          6,          6,        1,    13395, 0x73889c57, F=0x0
+1,       9610,       9610,     1601,     4803, 0xaca25809
+1,      11211,      11211,     1602,     4806, 0xe9305c09
+0,          7,          7,        1,     9130, 0xa9f5c72c, F=0x0
+0,          8,          8,        1,     6088, 0xcb88bb06, F=0x0
+1,      12813,      12813,     1601,     4803, 0xd9ba6196
+1,      14414,      14414,     1602,     4806, 0x103f56ae
+0,          9,          9,        1,     5319, 0xa46b5395, F=0x0
+0,         10,         10,        1,     5145, 0x86fbf616, F=0x0
+1,      16016,      16016,     1602,     4806, 0xfb245f16
+0,         11,         11,        1,     4885, 0xca7b4c36, F=0x0
+1,      17618,      17618,     1601,     4803, 0x020e5e78
+1,      19219,      19219,     1602,     4806, 0xfb6a55b2
+0,         12,         12,        1,     4789, 0xe6823bca, F=0x0
+0,         13,         13,        1,     4973, 0xbe69954a, F=0x0
+1,      20821,      20821,     1601,     4803, 0xd82360b7
+1,      22422,      22422,     1602,     4806, 0x55cd5d28
+0,         14,         14,        1,     5252, 0x0ff23eda, F=0x0
+0,         15,         15,        1,     4991, 0xf811a313, F=0x0
+1,      24024,      24024,     1602,     4806, 0x783757b4
+0,         16,         16,        1,     4765, 0x006a4342, F=0x0
+1,      25626,      25626,     1601,     4803, 0x66d76259
+1,      27227,      27227,     1602,     4806, 0xbd2559a9
+0,         17,         17,        1,     4844, 0x69296c07, F=0x0
+0,         18,         18,        1,     5134, 0x7b13cf29, F=0x0
+1,      28829,      28829,     1601,     4803, 0x6e0c5a40
+1,      30430,      30430,     1602,     4806, 0x26546461
+0,         19,         19,        1,     4961, 0x70a969b8, F=0x0
+0,         20,         20,        1,     4973, 0xc5068a42, F=0x0
+1,      32032,      32032,     1602,     4806, 0x9b6b54a1
+0,         21,         21,        1,     4969, 0x9df8bd2b, F=0x0
+1,      33634,      33634,     1601,     4803, 0x1f7b5eff
+1,      35235,      35235,     1602,     4806, 0xf3535dfc
+0,         22,         22,        1,     5063, 0x16cfcb52, F=0x0
+0,         23,         23,        1,     5106, 0xc9c5e3bb, F=0x0
+1,      36837,      36837,     1601,     4803, 0xce335571
+1,      38438,      38438,     1602,     4806, 0xbb256354
+0,         24,         24,        1,     5028, 0x99e8cfa2, F=0x0
+0,         25,         25,        1,     4844, 0xf11a6106, F=0x0
+1,      40040,      40040,     1602,     4806, 0xff325af0
+0,         26,         26,        1,     5257, 0x535c2390, F=0x0
+1,      41642,      41642,     1601,     4803, 0xb0e3588f
+1,      43243,      43243,     1602,     4806, 0xdad16453
+0,         27,         27,        1,     5178, 0x70c92119, F=0x0
+0,         28,         28,        1,     5397, 0xb6bb7993, F=0x0
+1,      44845,      44845,     1601,     4803, 0xc9a3564d
+1,      46446,      46446,     1602,     4806, 0xa7b05cdf
+0,         29,         29,        1,     5250, 0xb80d167f, F=0x0
+0,         30,         30,        1,     5287, 0x71e74b1e, F=0x0
+1,      48048,      48048,     1602,     4806, 0x56426250
+0,         31,         31,        1,     5166, 0x31450a8e, F=0x0
+1,      49650,      49650,     1601,     4803, 0x45d254ad
diff --git a/tests/ref/fate/mxf-xf-hevc-5994i-1080-60M b/tests/ref/fate/mxf-xf-hevc-5994i-1080-60M
new file mode 100644
index 0000000000..138841185e
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5994i-1080-60M
@@ -0,0 +1,76 @@ 
+#extradata 0:      412, 0xf52da143
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x540
+#sar 0: 1/2
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,          0,          0,        1,     5688, 0x17dd4e33
+1,          0,          0,     1602,     4806, 0xce8d588a
+0,          1,          1,        1,     3530, 0xb7e9953a, F=0x0
+1,       1602,       1602,     1601,     4803, 0x93b15b17
+1,       3203,       3203,     1602,     4806, 0xa01162ff
+0,          2,          2,        1,     5399, 0x110226c0, F=0x0
+0,          3,          3,        1,     8902, 0xb6a5f230, F=0x0
+1,       4805,       4805,     1601,     4803, 0xe10a542a
+1,       6406,       6406,     1602,     4806, 0x3e4a6053
+0,          4,          4,        1,    11213, 0x925bb6a4, F=0x0
+0,          5,          5,        1,    11389, 0x0f1d275b, F=0x0
+1,       8008,       8008,     1602,     4806, 0x1f845e6b
+0,          6,          6,        1,     9263, 0x2a1dd135, F=0x0
+1,       9610,       9610,     1601,     4803, 0xbd9054a6
+1,      11211,      11211,     1602,     4806, 0xb3476396
+0,          7,          7,        1,     8540, 0xbbd6abf1, F=0x0
+0,          8,          8,        1,     7419, 0x6b764c1c, F=0x0
+1,      12813,      12813,     1601,     4803, 0xf8f259b6
+1,      14414,      14414,     1602,     4806, 0xbe9e5adb
+0,          9,          9,        1,     5546, 0xe8fcbad6, F=0x0
+0,         10,         10,        1,     5525, 0x9558b845, F=0x0
+1,      16016,      16016,     1602,     4806, 0xe5db63e1
+0,         11,         11,        1,     5210, 0x9e2eff03, F=0x0
+1,      17618,      17618,     1601,     4803, 0x0cf35579
+1,      19219,      19219,     1602,     4806, 0x89685e9a
+0,         12,         12,        1,     5071, 0xa284bf20, F=0x0
+0,         13,         13,        1,     4817, 0x9849498b, F=0x0
+1,      20821,      20821,     1601,     4803, 0xa2b25f8f
+1,      22422,      22422,     1602,     4806, 0x45d6558b
+0,         14,         14,        1,     4989, 0x052e98fc, F=0x0
+0,         15,         15,        1,     4870, 0x23f56887, F=0x0
+1,      24024,      24024,     1602,     4806, 0x00076178
+0,         16,         16,        1,     4923, 0x9d93733a, F=0x0
+1,      25626,      25626,     1601,     4803, 0x3e965bf2
+1,      27227,      27227,     1602,     4806, 0x2ffa5705
+0,         17,         17,        1,     4652, 0x63620f94, F=0x0
+0,         18,         18,        1,     4815, 0xeb9a5262, F=0x0
+1,      28829,      28829,     1601,     4803, 0xcd2262db
+1,      30430,      30430,     1602,     4806, 0xb90359b2
+0,         19,         19,        1,     4997, 0x422b981b, F=0x0
+0,         20,         20,        1,     4640, 0xc367de39, F=0x0
+1,      32032,      32032,     1602,     4806, 0xce455b9a
+0,         21,         21,        1,     4699, 0xdd81332a, F=0x0
+1,      33634,      33634,     1601,     4803, 0xfb946262
+1,      35235,      35235,     1602,     4806, 0x1682566b
+0,         22,         22,        1,     4911, 0x328c7227, F=0x0
+0,         23,         23,        1,     5105, 0x694cc695, F=0x0
+1,      36837,      36837,     1601,     4803, 0xe76b5d53
+1,      38438,      38438,     1602,     4806, 0x1f835f2a
+0,         24,         24,        1,     5243, 0x728c38fb, F=0x0
+0,         25,         25,        1,     4994, 0xce95a01a, F=0x0
+1,      40040,      40040,     1602,     4806, 0xeed15624
+0,         26,         26,        1,     4944, 0xe4dd9e13, F=0x0
+1,      41642,      41642,     1601,     4803, 0x934a618b
+1,      43243,      43243,     1602,     4806, 0x72895b6c
+0,         27,         27,        1,     5146, 0x55dcf9da, F=0x0
+0,         28,         28,        1,     5095, 0x8e85d9ae, F=0x0
+1,      44845,      44845,     1601,     4803, 0x11ce5778
+1,      46446,      46446,     1602,     4806, 0x9203647a
+0,         29,         29,        1,     5047, 0x427eb972, F=0x0
+0,         30,         30,        1,     5251, 0x86f3187a, F=0x0
+1,      48048,      48048,     1602,     4806, 0xce8d588a
+0,         31,         31,        1,     5345, 0x4c7040bd, F=0x0
+1,      49650,      49650,     1601,     4803, 0x93b15b17
diff --git a/tests/ref/fate/mxf-xf-hevc-5994p-1080-45M b/tests/ref/fate/mxf-xf-hevc-5994p-1080-45M
new file mode 100644
index 0000000000..66de862a8a
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5994p-1080-45M
@@ -0,0 +1,140 @@ 
+#extradata 0:      556, 0x0205dfd0
+#tb 0: 1001/60000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2812, 0xa1920544
+0,         -2,          3,        1,      844, 0xa90c8cbb, F=0x0
+0,         -1,          1,        1,      760, 0x8ba47adf, F=0x0
+0,          0,          0,        1,      487, 0x4346e1d7, F=0x0
+1,          0,          0,      800,     2400, 0x2faab2b2
+1,        800,        800,      801,     2403, 0xe951adf6
+0,          1,          2,        1,      383, 0x0ed3aacd, F=0x0
+1,       1601,       1601,      801,     2403, 0x9c28a864
+0,          2,          5,        1,      779, 0x8dd169be, F=0x0
+1,       2402,       2402,      801,     2403, 0xba47b4b5
+0,          3,          4,        1,      465, 0x1161d77f, F=0x0
+1,       3203,       3203,      801,     2403, 0x5692aed2
+0,          4,          6,        1,      277, 0x074378e6, F=0x0
+0,          5,         15,        1,     7665, 0x7dbe162c, F=0x0
+1,       4004,       4004,      800,     2400, 0xcbc3a6ee
+1,       4804,       4804,      801,     2403, 0xe545b2b9
+0,          6,         11,        1,      600, 0x9f2a1746, F=0x0
+1,       5605,       5605,      801,     2403, 0x11bfb176
+0,          7,          9,        1,      349, 0xe0bc92d5, F=0x0
+1,       6406,       6406,      801,     2403, 0x849fa956
+0,          8,          8,        1,       91, 0xd3701db5, F=0x0
+1,       7207,       7207,      801,     2403, 0x591ab044
+0,          9,         10,        1,       72, 0x9b470845, F=0x0
+0,         10,         13,        1,       95, 0x83f01e34, F=0x0
+1,       8008,       8008,      800,     2400, 0x84f4b1b4
+1,       8808,       8808,      801,     2403, 0x7ab1a87d
+0,         11,         12,        1,      100, 0x613e1742, F=0x0
+1,       9609,       9609,      801,     2403, 0x6a93aec7
+0,         12,         14,        1,       71, 0x5e990751, F=0x0
+1,      10410,      10410,      801,     2403, 0xc596b58b
+0,         13,         23,        1,     7541, 0x3d46dc99, F=0x0
+1,      11211,      11211,      801,     2403, 0x482aa900
+0,         14,         19,        1,      186, 0xee715657, F=0x0
+0,         15,         17,        1,      104, 0xf9e4231f, F=0x0
+1,      12012,      12012,      800,     2400, 0x9886ab5d
+1,      12812,      12812,      801,     2403, 0x21eeb423
+0,         16,         16,        1,       72, 0x2ac4067d, F=0x0
+1,      13613,      13613,      801,     2403, 0x9904ab02
+0,         17,         18,        1,       70, 0x3789066b, F=0x0
+1,      14414,      14414,      801,     2403, 0x1af2aa7a
+0,         18,         21,        1,      127, 0xde5e31b8, F=0x0
+1,      15215,      15215,      801,     2403, 0x4373b373
+0,         19,         20,        1,       73, 0x56e4087b, F=0x0
+0,         20,         22,        1,       74, 0x90a3096f, F=0x0
+1,      16016,      16016,      800,     2400, 0xe196abfa
+1,      16816,      16816,      801,     2403, 0x424ea968
+0,         21,         31,        1,     6802, 0xee0e3081, F=0x0
+1,      17617,      17617,      801,     2403, 0xb4a5b477
+0,         22,         27,        1,      189, 0x39bd5d39, F=0x0
+1,      18418,      18418,      801,     2403, 0xaa2aaece
+0,         23,         25,        1,      110, 0x3dbf1f0d, F=0x0
+1,      19219,      19219,      801,     2403, 0x4df0a828
+0,         24,         24,        1,       82, 0x45590ebb, F=0x0
+0,         25,         26,        1,       82, 0xfe0c0cc5, F=0x0
+1,      20020,      20020,      800,     2400, 0xcdeeb16c
+1,      20820,      20820,      801,     2403, 0x34d2b160
+0,         26,         29,        1,      108, 0x9fc61c7a, F=0x0
+1,      21621,      21621,      801,     2403, 0x8e66a86d
+0,         27,         28,        1,       91, 0xb1991222, F=0x0
+1,      22422,      22422,      801,     2403, 0xd6c4b136
+0,         28,         30,        1,       77, 0xe96e0b62, F=0x0
+1,      23223,      23223,      801,     2403, 0x34abb30e
+0,         29,         39,        1,     3634, 0xac4c1e8b, F=0x0
+0,         30,         35,        1,      129, 0xa96126fb, F=0x0
+1,      24024,      24024,      800,     2400, 0x8321a743
+1,      24824,      24824,      801,     2403, 0xe08caefb
+0,         31,         33,        1,       98, 0xeeb313a0, F=0x0
+1,      25625,      25625,      801,     2403, 0x42e2b492
+0,         32,         32,        1,       78, 0x544608ab, F=0x0
+1,      26426,      26426,      801,     2403, 0x0b07a83e
+0,         33,         34,        1,       78, 0xad060c40, F=0x0
+1,      27227,      27227,      801,     2403, 0x70edae1e
+0,         34,         37,        1,       98, 0x477d16b4, F=0x0
+0,         35,         36,        1,       78, 0x776c0a38, F=0x0
+1,      28028,      28028,      800,     2400, 0x0643b30a
+1,      28828,      28828,      801,     2403, 0xe7cbaa3a
+0,         36,         38,        1,       76, 0x93d5098b, F=0x0
+1,      29629,      29629,      801,     2403, 0xbd8eab7d
+0,         37,         47,        1,     3882, 0x4ae96928, F=0x0
+1,      30430,      30430,      801,     2403, 0x4d39b39e
+0,         38,         43,        1,      588, 0x857b1f80, F=0x0
+1,      31231,      31231,      801,     2403, 0x71a1acad
+0,         39,         41,        1,      101, 0x5d6e1a40, F=0x0
+0,         40,         40,        1,       77, 0x7e2b097f, F=0x0
+1,      32032,      32032,      800,     2400, 0x46b5a844
+1,      32832,      32832,      801,     2403, 0x4c2fb475
+0,         41,         42,        1,       76, 0xdcae0b43, F=0x0
+1,      33633,      33633,      801,     2403, 0x67f0ae2b
+0,         42,         45,        1,      355, 0xe839ae2f, F=0x0
+1,      34434,      34434,      801,     2403, 0x18b1a76a
+0,         43,         44,        1,       76, 0xafdd09d6, F=0x0
+1,      35235,      35235,      801,     2403, 0x85beb3f3
+0,         44,         46,        1,       89, 0xc3a91f21, F=0x0
+0,         45,         55,        1,     2195, 0xd4f74339, F=0x0
+1,      36036,      36036,      800,     2400, 0x237bae96
+1,      36836,      36836,      801,     2403, 0xc439a8d3
+0,         46,         51,        1,      428, 0x53edd38a, F=0x0
+1,      37637,      37637,      801,     2403, 0x3352b1f1
+0,         47,         49,        1,      246, 0x7b4867e4, F=0x0
+1,      38438,      38438,      801,     2403, 0xb395b27a
+0,         48,         48,        1,       91, 0x859b1587, F=0x0
+1,      39239,      39239,      801,     2403, 0x8439a980
+0,         49,         50,        1,       97, 0x5dc3225e, F=0x0
+0,         50,         53,        1,      165, 0xdc7f4bdc, F=0x0
+1,      40040,      40040,      800,     2400, 0xd435adf9
+1,      40840,      40840,      801,     2403, 0x9d7cb38e
+0,         51,         52,        1,       99, 0x34292402, F=0x0
+1,      41641,      41641,      801,     2403, 0x1172a87c
+0,         52,         54,        1,      101, 0x66c82324, F=0x0
+1,      42442,      42442,      801,     2403, 0x1e27ae23
+0,         53,         63,        1,     3976, 0x38e8d886, F=0x0
+1,      43243,      43243,      801,     2403, 0x8f94b4cd
+0,         54,         59,        1,      413, 0x543fc9b4, F=0x0
+0,         55,         57,        1,      273, 0x904d8342, F=0x0
+1,      44044,      44044,      800,     2400, 0xeb0aa889
+1,      44844,      44844,      801,     2403, 0x9b44ab92
+0,         56,         56,        1,       85, 0x6d101649, F=0x0
+1,      45645,      45645,      801,     2403, 0x4d9bb488
+0,         57,         58,        1,       82, 0x78d914f8, F=0x0
+1,      46446,      46446,      801,     2403, 0xf4b7abbc
+0,         58,         61,        1,      183, 0xaf7f5427, F=0x0
+1,      47247,      47247,      801,     2403, 0xa27ca9e7
+0,         59,         60,        1,       82, 0xf4b31199, F=0x0
+0,         60,         62,        1,       86, 0x74c2159a, F=0x0
+1,      48048,      48048,      800,     2400, 0x2faab2b2
+1,      48848,      48848,      801,     2403, 0xe951adf6
+1,      49649,      49649,      801,     2403, 0x9c28a864
+1,      50450,      50450,      801,     2403, 0xba47b4b5
diff --git a/tests/ref/fate/mxf-xf-hevc-5994p-1080-60M b/tests/ref/fate/mxf-xf-hevc-5994p-1080-60M
new file mode 100644
index 0000000000..551823a78a
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5994p-1080-60M
@@ -0,0 +1,140 @@ 
+#extradata 0:      557, 0x1239dd7b
+#tb 0: 1001/60000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 1920x1080
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3223, 0x4d70ecc3
+0,         -2,          3,        1,     3951, 0x6e667ea8, F=0x0
+0,         -1,          1,        1,     4278, 0xdaca2313, F=0x0
+0,          0,          0,        1,     2751, 0x08010a94, F=0x0
+1,          0,          0,      800,     2400, 0x14dca676
+1,        800,        800,      801,     2403, 0x1e27ae23
+0,          1,          2,        1,      233, 0x350359bf, F=0x0
+1,       1601,       1601,      801,     2403, 0x8f94b4cd
+0,          2,          5,        1,      278, 0xe00b7be7, F=0x0
+1,       2402,       2402,      801,     2403, 0xe7cbaa3a
+0,          3,          4,        1,      592, 0xb2030911, F=0x0
+1,       3203,       3203,      801,     2403, 0xbd8eab7d
+0,          4,          6,        1,      562, 0xa5e8f461, F=0x0
+0,          5,         15,        1,    13525, 0x98722449, F=0x0
+1,       4004,       4004,      800,     2400, 0x3259b2ec
+1,       4804,       4804,      801,     2403, 0xf4b7abbc
+0,          6,         11,        1,      920, 0xe054bdde, F=0x0
+1,       5605,       5605,      801,     2403, 0xa27ca9e7
+0,          7,          9,        1,      347, 0xde11a43f, F=0x0
+1,       6406,       6406,      801,     2403, 0x4c2fb475
+0,          8,          8,        1,      106, 0xba2c2021, F=0x0
+1,       7207,       7207,      801,     2403, 0x67f0ae2b
+0,          9,         10,        1,       90, 0x488219bb, F=0x0
+0,         10,         13,        1,      175, 0xa84d4c1b, F=0x0
+1,       8008,       8008,      800,     2400, 0x22d1a66c
+1,       8808,       8808,      801,     2403, 0xba47b4b5
+0,         11,         12,        1,      100, 0x76101c29, F=0x0
+1,       9609,       9609,      801,     2403, 0x5692aed2
+0,         12,         14,        1,       91, 0xbf5b187f, F=0x0
+1,      10410,      10410,      801,     2403, 0xc439a8d3
+0,         13,         23,        1,     6016, 0x0c38d5fe, F=0x0
+1,      11211,      11211,      801,     2403, 0x3352b1f1
+0,         14,         19,        1,      232, 0xd7af679f, F=0x0
+0,         15,         17,        1,      185, 0x20c14bc7, F=0x0
+1,      12012,      12012,      800,     2400, 0x9e5ab059
+1,      12812,      12812,      801,     2403, 0x849fa956
+0,         16,         16,        1,       83, 0xbe130fab, F=0x0
+1,      13613,      13613,      801,     2403, 0x591ab044
+0,         17,         18,        1,       80, 0xbba60f5d, F=0x0
+1,      14414,      14414,      801,     2403, 0x9d7cb38e
+0,         18,         21,        1,      168, 0xd7354d39, F=0x0
+1,      15215,      15215,      801,     2403, 0x1172a87c
+0,         19,         20,        1,       91, 0x10681391, F=0x0
+0,         20,         22,        1,       99, 0x11f71df4, F=0x0
+1,      16016,      16016,      800,     2400, 0x146dacee
+1,      16816,      16816,      801,     2403, 0xc596b58b
+0,         21,         31,        1,     4197, 0x90183964, F=0x0
+1,      17617,      17617,      801,     2403, 0x482aa900
+0,         22,         27,        1,      255, 0x69e9739d, F=0x0
+1,      18418,      18418,      801,     2403, 0x9b44ab92
+0,         23,         25,        1,      210, 0x34295cfd, F=0x0
+1,      19219,      19219,      801,     2403, 0x4d9bb488
+0,         24,         24,        1,      118, 0xe86f2e81, F=0x0
+0,         25,         26,        1,      105, 0xa60e2097, F=0x0
+1,      20020,      20020,      800,     2400, 0xf39eaa68
+1,      20820,      20820,      801,     2403, 0x1af2aa7a
+0,         26,         29,        1,      198, 0xacc55009, F=0x0
+1,      21621,      21621,      801,     2403, 0x4373b373
+0,         27,         28,        1,      156, 0xea1733f4, F=0x0
+1,      22422,      22422,      801,     2403, 0xe951adf6
+0,         28,         30,        1,      156, 0xe97738fe, F=0x0
+1,      23223,      23223,      801,     2403, 0x9c28a864
+0,         29,         39,        1,     4234, 0x69ea55fd, F=0x0
+0,         30,         35,        1,      253, 0x95906daa, F=0x0
+1,      24024,      24024,      800,     2400, 0x9c5ab37f
+1,      24824,      24824,      801,     2403, 0xaa2aaece
+0,         31,         33,        1,      129, 0x8d933022, F=0x0
+1,      25625,      25625,      801,     2403, 0x4df0a828
+0,         32,         32,        1,      109, 0x8f682175, F=0x0
+1,      26426,      26426,      801,     2403, 0xe545b2b9
+0,         33,         34,        1,      107, 0x324a2317, F=0x0
+1,      27227,      27227,      801,     2403, 0x11bfb176
+0,         34,         37,        1,      186, 0xa5634bb4, F=0x0
+0,         35,         36,        1,      102, 0xcc9c1e13, F=0x0
+1,      28028,      28028,      800,     2400, 0x8b64a70a
+1,      28828,      28828,      801,     2403, 0xd6c4b136
+0,         36,         38,        1,      110, 0xaad7260c, F=0x0
+1,      29629,      29629,      801,     2403, 0x34abb30e
+0,         37,         47,        1,     4691, 0xe10c3ffd, F=0x0
+1,      30430,      30430,      801,     2403, 0x7ab1a87d
+0,         38,         43,        1,      250, 0xf2697412, F=0x0
+1,      31231,      31231,      801,     2403, 0x6a93aec7
+0,         39,         41,        1,      161, 0x08a94255, F=0x0
+0,         40,         40,        1,      123, 0x44292bef, F=0x0
+1,      32032,      32032,      800,     2400, 0xa758b38c
+1,      32832,      32832,      801,     2403, 0x0b07a83e
+0,         41,         42,        1,      107, 0x3c4821c6, F=0x0
+1,      33633,      33633,      801,     2403, 0x70edae1e
+0,         42,         45,        1,      141, 0x9a7a3e2f, F=0x0
+1,      34434,      34434,      801,     2403, 0x21eeb423
+0,         43,         44,        1,      109, 0xdd4f20dd, F=0x0
+1,      35235,      35235,      801,     2403, 0x9904ab02
+0,         44,         46,        1,      115, 0xcbff232c, F=0x0
+0,         45,         55,        1,     2020, 0x07cee4db, F=0x0
+1,      36036,      36036,      800,     2400, 0x1c12a99c
+1,      36836,      36836,      801,     2403, 0x4d39b39e
+0,         46,         51,        1,      222, 0x49f26201, F=0x0
+1,      37637,      37637,      801,     2403, 0x71a1acad
+0,         47,         49,        1,      148, 0xd1d73ab6, F=0x0
+1,      38438,      38438,      801,     2403, 0x424ea968
+0,         48,         48,        1,      101, 0x9cb81b29, F=0x0
+1,      39239,      39239,      801,     2403, 0xb4a5b477
+0,         49,         50,        1,       98, 0x40ce21d3, F=0x0
+0,         50,         53,        1,      144, 0x5dfe3ba8, F=0x0
+1,      40040,      40040,      800,     2400, 0x9fd2ad05
+1,      40840,      40840,      801,     2403, 0x18b1a76a
+0,         51,         52,        1,      109, 0x756920ce, F=0x0
+1,      41641,      41641,      801,     2403, 0x85beb3f3
+0,         52,         54,        1,       99, 0xc2f21c40, F=0x0
+1,      42442,      42442,      801,     2403, 0x34d2b160
+0,         53,         63,        1,     1908, 0x8e4ecaac, F=0x0
+1,      43243,      43243,      801,     2403, 0x8e66a86d
+0,         54,         59,        1,      199, 0x9df85f56, F=0x0
+0,         55,         57,        1,      137, 0xa90d3210, F=0x0
+1,      44044,      44044,      800,     2400, 0xc3c8af8d
+1,      44844,      44844,      801,     2403, 0xb395b27a
+0,         56,         56,        1,      107, 0xb2341fb1, F=0x0
+1,      45645,      45645,      801,     2403, 0x8439a980
+0,         57,         58,        1,      117, 0xec67276b, F=0x0
+1,      46446,      46446,      801,     2403, 0xe08caefb
+0,         58,         61,        1,      132, 0xba84385f, F=0x0
+1,      47247,      47247,      801,     2403, 0x42e2b492
+0,         59,         60,        1,      102, 0x24dc1fa8, F=0x0
+0,         60,         62,        1,      111, 0xddf428d6, F=0x0
+1,      48048,      48048,      800,     2400, 0x14dca676
+1,      48848,      48848,      801,     2403, 0x1e27ae23
+1,      49649,      49649,      801,     2403, 0x8f94b4cd
+1,      50450,      50450,      801,     2403, 0xe7cbaa3a
diff --git a/tests/ref/fate/mxf-xf-hevc-5994p-4k-110M b/tests/ref/fate/mxf-xf-hevc-5994p-4k-110M
new file mode 100644
index 0000000000..7b9a64caf8
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5994p-4k-110M
@@ -0,0 +1,140 @@ 
+#extradata 0:      572, 0x2348e09c
+#tb 0: 1001/60000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     3340, 0x2b378e80
+0,         -2,          3,        1,     1304, 0xf13b76b0, F=0x0
+0,         -1,          1,        1,      580, 0xb7a1dcc6, F=0x0
+0,          0,          0,        1,      199, 0xed4511e4, F=0x0
+1,          0,          0,      800,     2400, 0x8b64a70a
+1,        800,        800,      801,     2403, 0xd6c4b136
+0,          1,          2,        1,      179, 0x3c1d0949, F=0x0
+1,       1601,       1601,      801,     2403, 0x34abb30e
+0,          2,          5,        1,      181, 0x9edf0b1f, F=0x0
+1,       2402,       2402,      801,     2403, 0x7ab1a87d
+0,          3,          4,        1,      177, 0xa0d50727, F=0x0
+1,       3203,       3203,      801,     2403, 0x6a93aec7
+0,          4,          6,        1,      176, 0x630e0830, F=0x0
+0,          5,         15,        1,    23225, 0x2115707c, F=0x0
+1,       4004,       4004,      800,     2400, 0xa758b38c
+1,       4804,       4804,      801,     2403, 0x0b07a83e
+0,          6,         11,        1,     2789, 0x114c9a9d, F=0x0
+1,       5605,       5605,      801,     2403, 0x70edae1e
+0,          7,          9,        1,      431, 0x8e31d1e4, F=0x0
+1,       6406,       6406,      801,     2403, 0x21eeb423
+0,          8,          8,        1,      184, 0x956f23b0, F=0x0
+1,       7207,       7207,      801,     2403, 0x9904ab02
+0,          9,         10,        1,      176, 0x6a88062c, F=0x0
+0,         10,         13,        1,      185, 0x8283127a, F=0x0
+1,       8008,       8008,      800,     2400, 0x1c12a99c
+1,       8808,       8808,      801,     2403, 0x4d39b39e
+0,         11,         12,        1,      745, 0x27582e4b, F=0x0
+1,       9609,       9609,      801,     2403, 0x71a1acad
+0,         12,         14,        1,      176, 0xca5e067f, F=0x0
+1,      10410,      10410,      801,     2403, 0x424ea968
+0,         13,         23,        1,    24387, 0xdd76bf57, F=0x0
+1,      11211,      11211,      801,     2403, 0xb4a5b477
+0,         14,         19,        1,     3738, 0xbdcf4592, F=0x0
+0,         15,         17,        1,      568, 0xfddd0584, F=0x0
+1,      12012,      12012,      800,     2400, 0x9fd2ad05
+1,      12812,      12812,      801,     2403, 0x18b1a76a
+0,         16,         16,        1,      181, 0x127808ac, F=0x0
+1,      13613,      13613,      801,     2403, 0x85beb3f3
+0,         17,         18,        1,      182, 0xab780b8d, F=0x0
+1,      14414,      14414,      801,     2403, 0x34d2b160
+0,         18,         21,        1,      315, 0x0a354dc0, F=0x0
+1,      15215,      15215,      801,     2403, 0x8e66a86d
+0,         19,         20,        1,      181, 0xcc050e4a, F=0x0
+0,         20,         22,        1,      182, 0x795f095f, F=0x0
+1,      16016,      16016,      800,     2400, 0xc3c8af8d
+1,      16816,      16816,      801,     2403, 0xb395b27a
+0,         21,         31,        1,    41498, 0xc3bc40ee, F=0x0
+1,      17617,      17617,      801,     2403, 0x8439a980
+0,         22,         27,        1,     1595, 0x1b44fbd2, F=0x0
+1,      18418,      18418,      801,     2403, 0xe08caefb
+0,         23,         25,        1,     1783, 0x67876f68, F=0x0
+1,      19219,      19219,      801,     2403, 0x42e2b492
+0,         24,         24,        1,      280, 0x6a113f8d, F=0x0
+0,         25,         26,        1,      226, 0xaf7323b4, F=0x0
+1,      20020,      20020,      800,     2400, 0x14dca676
+1,      20820,      20820,      801,     2403, 0x1e27ae23
+0,         26,         29,        1,      667, 0x888e44c7, F=0x0
+1,      21621,      21621,      801,     2403, 0x8f94b4cd
+0,         27,         28,        1,      233, 0xad4f2bff, F=0x0
+1,      22422,      22422,      801,     2403, 0xe7cbaa3a
+0,         28,         30,        1,      254, 0x5fa6316e, F=0x0
+1,      23223,      23223,      801,     2403, 0xbd8eab7d
+0,         29,         39,        1,    29025, 0x0c80ca28, F=0x0
+0,         30,         35,        1,     1389, 0x7c26a18a, F=0x0
+1,      24024,      24024,      800,     2400, 0x3259b2ec
+1,      24824,      24824,      801,     2403, 0xf4b7abbc
+0,         31,         33,        1,     1478, 0xce6ad353, F=0x0
+1,      25625,      25625,      801,     2403, 0xa27ca9e7
+0,         32,         32,        1,      328, 0xe4837e4f, F=0x0
+1,      26426,      26426,      801,     2403, 0x4c2fb475
+0,         33,         34,        1,      301, 0x05f96a3b, F=0x0
+1,      27227,      27227,      801,     2403, 0x67f0ae2b
+0,         34,         37,        1,     1163, 0x23a62352, F=0x0
+0,         35,         36,        1,      329, 0x8fd3798a, F=0x0
+1,      28028,      28028,      800,     2400, 0x22d1a66c
+1,      28828,      28828,      801,     2403, 0xba47b4b5
+0,         36,         38,        1,      356, 0x24738321, F=0x0
+1,      29629,      29629,      801,     2403, 0x5692aed2
+0,         37,         47,        1,    21611, 0x5280bd2f, F=0x0
+1,      30430,      30430,      801,     2403, 0xc439a8d3
+0,         38,         43,        1,     1583, 0x2f3d05f0, F=0x0
+1,      31231,      31231,      801,     2403, 0x3352b1f1
+0,         39,         41,        1,      986, 0x24bacb28, F=0x0
+0,         40,         40,        1,      405, 0x6119c753, F=0x0
+1,      32032,      32032,      800,     2400, 0x9e5ab059
+1,      32832,      32832,      801,     2403, 0x849fa956
+0,         41,         42,        1,      417, 0xc930c756, F=0x0
+1,      33633,      33633,      801,     2403, 0x591ab044
+0,         42,         45,        1,      704, 0x672f585c, F=0x0
+1,      34434,      34434,      801,     2403, 0x9d7cb38e
+0,         43,         44,        1,      401, 0xb24bc180, F=0x0
+1,      35235,      35235,      801,     2403, 0x1172a87c
+0,         44,         46,        1,      398, 0x01ceb6ca, F=0x0
+0,         45,         55,        1,     5266, 0x5f462adc, F=0x0
+1,      36036,      36036,      800,     2400, 0x146dacee
+1,      36836,      36836,      801,     2403, 0xc596b58b
+0,         46,         51,        1,      605, 0xfc342820, F=0x0
+1,      37637,      37637,      801,     2403, 0x482aa900
+0,         47,         49,        1,      285, 0x68ef66af, F=0x0
+1,      38438,      38438,      801,     2403, 0x9b44ab92
+0,         48,         48,        1,      215, 0x27dd3a4f, F=0x0
+1,      39239,      39239,      801,     2403, 0x4d9bb488
+0,         49,         50,        1,      214, 0x420a3c9d, F=0x0
+0,         50,         53,        1,      401, 0xa495b658, F=0x0
+1,      40040,      40040,      800,     2400, 0xf39eaa68
+1,      40840,      40840,      801,     2403, 0x1af2aa7a
+0,         51,         52,        1,      236, 0x792d592d, F=0x0
+1,      41641,      41641,      801,     2403, 0x4373b373
+0,         52,         54,        1,      222, 0x77f2476e, F=0x0
+1,      42442,      42442,      801,     2403, 0xe951adf6
+0,         53,         63,        1,     4684, 0xaa67f61c, F=0x0
+1,      43243,      43243,      801,     2403, 0x9c28a864
+0,         54,         59,        1,      581, 0x9ea104f9, F=0x0
+0,         55,         57,        1,      419, 0xe86bab30, F=0x0
+1,      44044,      44044,      800,     2400, 0x9c5ab37f
+1,      44844,      44844,      801,     2403, 0xaa2aaece
+0,         56,         56,        1,      242, 0x97f14c2d, F=0x0
+1,      45645,      45645,      801,     2403, 0x4df0a828
+0,         57,         58,        1,      237, 0xf5c44e5c, F=0x0
+1,      46446,      46446,      801,     2403, 0xe545b2b9
+0,         58,         61,        1,      285, 0x3fbf5f40, F=0x0
+1,      47247,      47247,      801,     2403, 0x11bfb176
+0,         59,         60,        1,      203, 0x10be3131, F=0x0
+0,         60,         62,        1,      200, 0x0ec12f60, F=0x0
+1,      48048,      48048,      800,     2400, 0x8b64a70a
+1,      48848,      48848,      801,     2403, 0xd6c4b136
+1,      49649,      49649,      801,     2403, 0x34abb30e
+1,      50450,      50450,      801,     2403, 0x7ab1a87d
diff --git a/tests/ref/fate/mxf-xf-hevc-5994p-4k-160M b/tests/ref/fate/mxf-xf-hevc-5994p-4k-160M
new file mode 100644
index 0000000000..36f1c1a838
--- /dev/null
+++ b/tests/ref/fate/mxf-xf-hevc-5994p-4k-160M
@@ -0,0 +1,140 @@ 
+#extradata 0:      558, 0x9780de32
+#tb 0: 1001/60000
+#media_type 0: video
+#codec_id 0: hevc
+#dimensions 0: 3840x2160
+#sar 0: 1/1
+#tb 1: 1/48000
+#media_type 1: audio
+#codec_id 1: pcm_s24le
+#sample_rate 1: 48000
+#channel_layout 1: 4
+#channel_layout_name 1: mono
+0,         -3,          7,        1,     2900, 0x5f36df52
+0,         -2,          3,        1,     6459, 0x370c1bb3, F=0x0
+0,         -1,          1,        1,     5268, 0x3500c154, F=0x0
+0,          0,          0,        1,      306, 0xcf907157, F=0x0
+1,          0,          0,      800,     2400, 0xa302a76c
+1,        800,        800,      801,     2403, 0xb4a5b477
+0,          1,          2,        1,      179, 0xcda609d4, F=0x0
+1,       1601,       1601,      801,     2403, 0xaa2aaece
+0,          2,          5,        1,     2759, 0xdaeb8cf1, F=0x0
+1,       2402,       2402,      801,     2403, 0x4df0a828
+0,          3,          4,        1,     1061, 0x727a001a, F=0x0
+1,       3203,       3203,      801,     2403, 0xe545b2b9
+0,          4,          6,        1,      176, 0xab740631, F=0x0
+0,          5,         15,        1,    29968, 0xf41f9f40, F=0x0
+1,       4004,       4004,      800,     2400, 0xff3ab013
+1,       4804,       4804,      801,     2403, 0x8e66a86d
+0,          6,         11,        1,     2043, 0x77e40c5a, F=0x0
+1,       5605,       5605,      801,     2403, 0xd6c4b136
+0,          7,          9,        1,     1584, 0x2f032b83, F=0x0
+1,       6406,       6406,      801,     2403, 0x34abb30e
+0,          8,          8,        1,      265, 0x45896185, F=0x0
+1,       7207,       7207,      801,     2403, 0x7ab1a87d
+0,          9,         10,        1,      180, 0x69f70a58, F=0x0
+0,         10,         13,        1,      813, 0x0bbb7de1, F=0x0
+1,       8008,       8008,      800,     2400, 0x5e7eadc1
+1,       8808,       8808,      801,     2403, 0x42e2b492
+0,         11,         12,        1,      182, 0xe0cf0996, F=0x0
+1,       9609,       9609,      801,     2403, 0x0b07a83e
+0,         12,         14,        1,      177, 0x905906b3, F=0x0
+1,      10410,      10410,      801,     2403, 0x70edae1e
+0,         13,         23,        1,    16114, 0x6c693366, F=0x0
+1,      11211,      11211,      801,     2403, 0x21eeb423
+0,         14,         19,        1,      650, 0x6ea34998, F=0x0
+0,         15,         17,        1,      987, 0x8649bf26, F=0x0
+1,      12012,      12012,      800,     2400, 0x9a66a921
+1,      12812,      12812,      801,     2403, 0xbd8eab7d
+0,         16,         16,        1,      179, 0x24de0605, F=0x0
+1,      13613,      13613,      801,     2403, 0x4d39b39e
+0,         17,         18,        1,      178, 0xe3800733, F=0x0
+1,      14414,      14414,      801,     2403, 0x71a1acad
+0,         18,         21,        1,     1457, 0xfac6c9b3, F=0x0
+1,      15215,      15215,      801,     2403, 0x424ea968
+0,         19,         20,        1,      262, 0x7ef43275, F=0x0
+0,         20,         22,        1,      218, 0x026d1b12, F=0x0
+1,      16016,      16016,      800,     2400, 0x975bb351
+1,      16816,      16816,      801,     2403, 0x67f0ae2b
+0,         21,         31,        1,    17720, 0x1d8adf06, F=0x0
+1,      17617,      17617,      801,     2403, 0x18b1a76a
+0,         22,         27,        1,      343, 0x02e383c0, F=0x0
+1,      18418,      18418,      801,     2403, 0x85beb3f3
+0,         23,         25,        1,      337, 0x872f8393, F=0x0
+1,      19219,      19219,      801,     2403, 0x34d2b160
+0,         24,         24,        1,      254, 0x01f631fc, F=0x0
+0,         25,         26,        1,      227, 0x14c12258, F=0x0
+1,      20020,      20020,      800,     2400, 0x977ca609
+1,      20820,      20820,      801,     2403, 0x3352b1f1
+0,         26,         29,        1,      319, 0x36777d52, F=0x0
+1,      21621,      21621,      801,     2403, 0xb395b27a
+0,         27,         28,        1,      201, 0xa7ba168f, F=0x0
+1,      22422,      22422,      801,     2403, 0x8439a980
+0,         28,         30,        1,      248, 0xadce2b9c, F=0x0
+1,      23223,      23223,      801,     2403, 0xe08caefb
+0,         29,         39,        1,    17233, 0xf8cee8a8, F=0x0
+0,         30,         35,        1,     1201, 0xa2cb3876, F=0x0
+1,      24024,      24024,      800,     2400, 0x27e7b28c
+1,      24824,      24824,      801,     2403, 0x1172a87c
+0,         31,         33,        1,      305, 0x601768f5, F=0x0
+1,      25625,      25625,      801,     2403, 0x1e27ae23
+0,         32,         32,        1,      274, 0x33b039b1, F=0x0
+1,      26426,      26426,      801,     2403, 0x8f94b4cd
+0,         33,         34,        1,      280, 0x8c1b44a4, F=0x0
+1,      27227,      27227,      801,     2403, 0xe7cbaa3a
+0,         34,         37,        1,      726, 0xb6ed50e3, F=0x0
+0,         35,         36,        1,      218, 0xf6844563, F=0x0
+1,      28028,      28028,      800,     2400, 0xbbeca9e1
+1,      28828,      28828,      801,     2403, 0x4d9bb488
+0,         36,         38,        1,      213, 0x63614270, F=0x0
+1,      29629,      29629,      801,     2403, 0xf4b7abbc
+0,         37,         47,        1,     5842, 0x33be1b4e, F=0x0
+1,      30430,      30430,      801,     2403, 0xa27ca9e7
+0,         38,         43,        1,     1218, 0xe8d06375, F=0x0
+1,      31231,      31231,      801,     2403, 0x4c2fb475
+0,         39,         41,        1,      305, 0x2d286bac, F=0x0
+0,         40,         40,        1,      202, 0xd26a186e, F=0x0
+1,      32032,      32032,      800,     2400, 0x5ff0ac33
+1,      32832,      32832,      801,     2403, 0x9c28a864
+0,         41,         42,        1,      208, 0xaee01c21, F=0x0
+1,      33633,      33633,      801,     2403, 0xba47b4b5
+0,         42,         45,        1,      615, 0xf63c11f5, F=0x0
+1,      34434,      34434,      801,     2403, 0x5692aed2
+0,         43,         44,        1,      202, 0xa96b1b23, F=0x0
+1,      35235,      35235,      801,     2403, 0xc439a8d3
+0,         44,         46,        1,      200, 0x873d17f5, F=0x0
+0,         45,         55,        1,     4280, 0x205746a6, F=0x0
+1,      36036,      36036,      800,     2400, 0x1dd8b0d4
+1,      36836,      36836,      801,     2403, 0x11bfb176
+0,         46,         51,        1,      674, 0x48934294, F=0x0
+1,      37637,      37637,      801,     2403, 0x849fa956
+0,         47,         49,        1,      381, 0x0e769871, F=0x0
+1,      38438,      38438,      801,     2403, 0x591ab044
+0,         48,         48,        1,      189, 0x63410c75, F=0x0
+1,      39239,      39239,      801,     2403, 0x9d7cb38e
+0,         49,         50,        1,      201, 0x3a2e1893, F=0x0
+0,         50,         53,        1,      385, 0xdd449bf9, F=0x0
+1,      40040,      40040,      800,     2400, 0x1aa4a6a3
+1,      40840,      40840,      801,     2403, 0x6a93aec7
+0,         51,         52,        1,      199, 0x11aa147f, F=0x0
+1,      41641,      41641,      801,     2403, 0xc596b58b
+0,         52,         54,        1,      187, 0x5a240d27, F=0x0
+1,      42442,      42442,      801,     2403, 0x482aa900
+0,         53,         63,        1,     4061, 0x96cb22e0, F=0x0
+1,      43243,      43243,      801,     2403, 0x9b44ab92
+0,         54,         59,        1,      661, 0x05493181, F=0x0
+0,         55,         57,        1,      372, 0x4a939f60, F=0x0
+1,      44044,      44044,      800,     2400, 0x3067b3ee
+1,      44844,      44844,      801,     2403, 0x9904ab02
+0,         56,         56,        1,      189, 0x5ca50c15, F=0x0
+1,      45645,      45645,      801,     2403, 0x1af2aa7a
+0,         57,         58,        1,      197, 0xf9011356, F=0x0
+1,      46446,      46446,      801,     2403, 0x4373b373
+0,         58,         61,        1,      371, 0xc1179c4e, F=0x0
+1,      47247,      47247,      801,     2403, 0xe951adf6
+0,         59,         60,        1,      195, 0x670e10fc, F=0x0
+0,         60,         62,        1,      186, 0x729b0cab, F=0x0
+1,      48048,      48048,      800,     2400, 0xa302a76c
+1,      48848,      48848,      801,     2403, 0xb4a5b477
+1,      49649,      49649,      801,     2403, 0xaa2aaece
+1,      50450,      50450,      801,     2403, 0x4df0a828
-- 
2.11.0