PR #25953 opened by Baptiste Coudurier (bcoudurier)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25953
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25953.patch

Fixes #20471.

Muxing an SCC file into MXF (EIA-608 converted to ST 436 ANC by the 
`eia608_to_smpte436m` bsf, set explicitly or inserted by the muxer) truncated 
the output to as many edit units as there were caption packets: a 10 s input 
gave a 0.067 s file.

### Cause

`mxf_interleave()` numbers the packets of each stream and, at flush, drops 
every edit unit that lacks a packet from any stream. The SCC demuxer outputs 
one packet per caption line, so the ANC stream only has a handful of packets 
and every edit unit past that count was dropped.

### Fix

**avcodec/bsf/eia608_to_smpte436m: split packets holding several frames**

A packet from the SCC demuxer holds the byte pairs of a whole caption line, 
which are meant to be sent one pair per frame. They were all put in a single 
CDP, and `cc_count` overflowed its 5 bits past 31 triples because the limit was 
computed with `FFMAX()` instead of `FFMIN()`.

The bsf now outputs one CDP per frame, each with as many byte pairs of a field 
as a frame carries at the CDP frame rate (one per frame, every other frame 
above 30 fps, two below 25 fps), and delays the following packets when needed.

**avformat/mxfenc: write empty ANC elements for frames without ANC packets**

MXF needs an ANC element in every content package (SMPTE ST 436-1:2013 section 
5.2). The ANC packets are queued and assigned to the edit unit matching their 
pts relative to the first video pts, and the edit units without one get an 
empty ANC element (2 bytes, packet count 0). A missing packet is waited for 
during `max_interleave_delta` at most.

Two ANC packets landing on the same edit unit are written in consecutive edit 
units rather than merged into one element. This does not happen with 436M input 
or with the output of the bsf, and for captions a late CDP is better than two 
CDPs in one frame.

New test `fate-mxf-eia608-sparse`.

### Open design points

1. Gaps are padded with empty ANC elements (packet count 0) rather than with a 
null CDP on every frame. SMPTE ST 436-1:2013 section 5.2 requires the number of 
elements of each type to be constant in every content package, so an element 
has to be written, and section 5.5 says the count can be zero so that every 
content package can have an element. This keeps the muxer from generating 
caption data; writing a null CDP on every frame is the alternative, if that is 
preferred.
2. The bsf gets a `split` option, enabled by default. The MCC muxer passes 
`split=0`, because with it `fate-sub-mcc` changes (SCTE-20 source with three 
pairs per field in one frame). The alternative is to make it opt-in and have 
only mxfenc enable it.

### Testing

With the commands from the issue the output has 300/300/300 packets and lasts 
10.01 s, and the captions come back on the right frames. Also checked with 
59.94p and with B-frames. `fate-mxf`, `fate-subtitles`, `fate-lavf-container` 
and `fate-lavf` pass.

Not covered here: the truncation when the audio source is shorter than the 
video, mentioned in a comment on the issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)



From 10c082f6db089c3e06b124345322ab268e230165 Mon Sep 17 00:00:00 2001
From: Baptiste Coudurier <[email protected]>
Date: Wed, 11 Nov 2026 13:08:57 -0800
Subject: [PATCH 1/2] avcodec/bsf/eia608_to_smpte436m: split packets holding
 several frames

A packet from the SCC demuxer holds the byte pairs of a whole caption
line, which are meant to be sent one pair per frame. They were all put
in a single CDP, and cc_count overflowed its 5 bits past 31 triples
since the limit was computed with FFMAX() instead of FFMIN().

Output one packet per frame instead, each with as many byte pairs of
a field as a frame carries at the CDP frame rate, and delay the
following packets when needed. The split option disables this, the MCC
muxer does so to keep writing one line per input packet.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: Baptiste Coudurier <[email protected]>
---
 doc/bitstream_filters.texi           |   4 +
 libavcodec/bsf/eia608_to_smpte436m.c | 109 ++++++++++++++++++++++-----
 libavformat/mccenc.c                 |   2 +-
 3 files changed, 97 insertions(+), 18 deletions(-)

diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi
index 1e6438d46b6..d16bb68cf5c 100644
--- a/doc/bitstream_filters.texi
+++ b/doc/bitstream_filters.texi
@@ -260,6 +260,10 @@ It accepts the values:
 The initial value of the CDP's 16-bit unsigned integer 
@code{cdp_hdr_sequence_cntr} and @code{cdp_ftr_sequence_cntr} fields. Defaults 
to 0.
 @item cdp_frame_rate
 Set the CDP's @code{cdp_frame_rate} field. This doesn't actually change the 
timing of the data stream, it just changes the values inserted in that field in 
the generated CDP packets. Defaults to @samp{30000/1001}.
+@item split
+Split the packets holding more EIA-608 byte pairs than one frame can carry,
+like the ones of an SCC file, into one packet per frame. The following packets
+are delayed when needed. Enabled by default.
 @end table
 
 @section extract_extradata
diff --git a/libavcodec/bsf/eia608_to_smpte436m.c 
b/libavcodec/bsf/eia608_to_smpte436m.c
index 36e57bbec22..d64e987a665 100644
--- a/libavcodec/bsf/eia608_to_smpte436m.c
+++ b/libavcodec/bsf/eia608_to_smpte436m.c
@@ -42,6 +42,14 @@ typedef struct EIA608ToSMPTE436MContext {
     AVSmpte436mPayloadSampleCoding sample_coding;
     AVRational                     cdp_frame_rate;
     uint8_t                        cdp_frame_rate_byte;
+    AVPacket                      *in;          ///< input packet being split
+    int                            in_pos;      ///< number of bytes of in 
already output
+    int                            in_frames;   ///< number of frames of in 
already output
+    int                            in_delayed;  ///< in was delayed by the 
split of the previous packets
+    int64_t                        next_pts;    ///< pts of the frame 
following the last split packet
+    int                            split;
+    int                            field_limit; ///< maximum number of byte 
pairs of one field in a frame
+    int                            frame_step;  ///< number of frames between 
the byte pairs of one field
 } EIA608ToSMPTE436MContext;
 
 // clang-format off
@@ -122,17 +130,51 @@ static av_cold int 
ff_eia608_to_smpte436m_init(AVBSFContext *ctx)
         return AVERROR(EINVAL);
     }
 
+    // a field carries 2 bytes at 30000/1001 Hz
+    priv->field_limit = av_cmp_q(priv->cdp_frame_rate, (AVRational){ 25, 1 }) 
< 0 ? 2 : 1;
+    if (!priv->split)
+        priv->field_limit = INT_MAX;
+    priv->frame_step  = av_cmp_q(priv->cdp_frame_rate, (AVRational){ 30, 1 }) 
> 0 ? 2 : 1;
+    priv->next_pts    = AV_NOPTS_VALUE;
+
     return 0;
 }
 
+static int64_t frames_to_ts(AVBSFContext *ctx, int frames)
+{
+    EIA608ToSMPTE436MContext *priv = ctx->priv_data;
+
+    if (ctx->time_base_in.num <= 0 || ctx->time_base_in.den <= 0)
+        return 0;
+    return av_rescale_q(frames, av_inv_q(priv->cdp_frame_rate), 
ctx->time_base_in);
+}
+
 static int ff_eia608_to_smpte436m_filter(AVBSFContext *ctx, AVPacket *out)
 {
     EIA608ToSMPTE436MContext *priv = ctx->priv_data;
-    AVPacket                 *in;
+    AVPacket                 *in   = priv->in;
+    int ret;
 
-    int ret = ff_bsf_get_packet(ctx, &in);
-    if (ret < 0)
-        return ret;
+    if (!in) {
+        ret = ff_bsf_get_packet(ctx, &priv->in);
+        if (ret < 0)
+            return ret;
+        in              = priv->in;
+        priv->in_pos    = 0;
+        priv->in_frames = 0;
+        // the previous packets were split over the frames up to next_pts
+        priv->in_delayed = priv->next_pts != AV_NOPTS_VALUE && in->pts != 
AV_NOPTS_VALUE &&
+                           in->pts < priv->next_pts;
+        if (priv->in_delayed) {
+            if (in->dts != AV_NOPTS_VALUE)
+                in->dts += priv->next_pts - in->pts;
+            in->pts = priv->next_pts;
+        }
+        priv->next_pts = AV_NOPTS_VALUE;
+    }
+
+    const uint8_t *data = in->data + priv->in_pos;
+    int in_count        = (in->size - priv->in_pos) / 3;
 
     AVSmpte291mAnc8bit anc;
     anc.did         = 0x61;
@@ -165,27 +207,27 @@ static int ff_eia608_to_smpte436m_filter(AVBSFContext 
*ctx, AVPacket *out)
     const uint8_t CC_COUNT_MASK   = 0x1F;
     const int     CDP_FOOTER_SIZE = 4;
 
-    int cc_count           = in->size / 3;
+    int cc_count;
     int space_left         = AV_SMPTE_291M_ANC_PAYLOAD_CAPACITY - (p - 
anc.payload);
     int cc_data_space_left = space_left - CDP_FOOTER_SIZE;
-    int max_cc_count       = FFMAX(cc_data_space_left / 3, CC_COUNT_MASK);
+    int max_cc_count       = FFMIN3(cc_data_space_left / 3, CC_COUNT_MASK, 
in_count);
+    int field_count[2]     = { 0 };
 
-    if (cc_count > max_cc_count) {
-        av_log(ctx,
-               AV_LOG_ERROR,
-               "cc_count (%d) is bigger than the maximum supported (%d), 
truncating captions packet\n",
-               cc_count,
-               max_cc_count);
-        cc_count = max_cc_count;
+    // a frame only carries field_limit byte pairs of each field,
+    // the remaining ones go in the following frames
+    for (cc_count = 0; cc_count < max_cc_count; cc_count++) {
+        int cc_type = data[cc_count * 3] & 3;
+        if (cc_type < 2 && field_count[cc_type]++ == priv->field_limit)
+            break;
     }
 
     *cc_count_p = cc_count | ~CC_COUNT_MASK; // other bits are reserved and 
set to ones
 
     for (size_t i = 0; i < cc_count; i++) {
         size_t start = i * 3;
-        *p++         = in->data[start] | 0xF8; // fill reserved bits with ones
-        *p++         = in->data[start + 1];
-        *p++         = in->data[start + 2];
+        *p++         = data[start] | 0xF8; // fill reserved bits with ones
+        *p++         = data[start + 1];
+        *p++         = data[start + 2];
     }
 
     const uint8_t CDP_FOOTER_ID = 0x74;
@@ -236,15 +278,45 @@ static int ff_eia608_to_smpte436m_filter(AVBSFContext 
*ctx, AVPacket *out)
     if (ret < 0)
         goto fail;
 
+    if (in->pts != AV_NOPTS_VALUE)
+        out->pts += frames_to_ts(ctx, priv->in_frames);
+    if (in->dts != AV_NOPTS_VALUE)
+        out->dts += frames_to_ts(ctx, priv->in_frames);
+
+    if (cc_count < in_count || priv->in_frames || priv->in_delayed) {
+        if (cc_count < in_count || priv->in_frames)
+            out->duration = frames_to_ts(ctx, priv->frame_step);
+        priv->in_pos    += cc_count * 3;
+        priv->in_frames += priv->frame_step;
+        if (in->pts != AV_NOPTS_VALUE)
+            priv->next_pts = in->pts + frames_to_ts(ctx, priv->in_frames);
+    }
+
     ret = 0;
 
 fail:
     if (ret < 0)
         av_packet_unref(out);
-    av_packet_free(&in);
+    if (ret < 0 || cc_count == in_count)
+        av_packet_free(&priv->in);
     return ret;
 }
 
+static void ff_eia608_to_smpte436m_flush(AVBSFContext *ctx)
+{
+    EIA608ToSMPTE436MContext *priv = ctx->priv_data;
+
+    av_packet_free(&priv->in);
+    priv->next_pts = AV_NOPTS_VALUE;
+}
+
+static av_cold void ff_eia608_to_smpte436m_close(AVBSFContext *ctx)
+{
+    EIA608ToSMPTE436MContext *priv = ctx->priv_data;
+
+    av_packet_free(&priv->in);
+}
+
 #define OFFSET(x) offsetof(EIA608ToSMPTE436MContext, x)
 #define FLAGS AV_OPT_FLAG_BSF_PARAM
 // clang-format off
@@ -256,6 +328,7 @@ static const AVOption options[] = {
     FF_SMPTE_436M_PAYLOAD_SAMPLE_CODING_ANC_AVOPTIONS(FLAGS, "sample_coding"),
     { "initial_cdp_sequence_cntr", "initial cdp_*_sequence_cntr value", 
OFFSET(cdp_sequence_cntr), AV_OPT_TYPE_UINT, { .i64 = 0 }, 0, 0xFFFF, FLAGS },
     { "cdp_frame_rate", "set the `cdp_frame_rate` fields", 
OFFSET(cdp_frame_rate), AV_OPT_TYPE_VIDEO_RATE, { .str = "30000/1001" }, 0, 
INT_MAX, FLAGS },
+    { "split", "split the packets holding the byte pairs of several frames", 
OFFSET(split), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, FLAGS },
     { NULL },
 };
 // clang-format on
@@ -274,4 +347,6 @@ const FFBitStreamFilter ff_eia608_to_smpte436m_bsf = {
     .priv_data_size = sizeof(EIA608ToSMPTE436MContext),
     .init           = ff_eia608_to_smpte436m_init,
     .filter         = ff_eia608_to_smpte436m_filter,
+    .flush          = ff_eia608_to_smpte436m_flush,
+    .close          = ff_eia608_to_smpte436m_close,
 };
diff --git a/libavformat/mccenc.c b/libavformat/mccenc.c
index 1c291f75b28..4fecd44e928 100644
--- a/libavformat/mccenc.c
+++ b/libavformat/mccenc.c
@@ -430,7 +430,7 @@ static int mcc_init(AVFormatContext *avf)
 
     if (st->codecpar->codec_id == AV_CODEC_ID_EIA_608) {
         char args[64];
-        snprintf(args, sizeof(args), "cdp_frame_rate=%d/%d", 
time_code_rate.num, time_code_rate.den);
+        snprintf(args, sizeof(args), "cdp_frame_rate=%d/%d:split=0", 
time_code_rate.num, time_code_rate.den);
         ret = ff_stream_add_bitstream_filter(st, "eia608_to_smpte436m", args);
         if (ret < 0)
             return ret;
-- 
2.54.0


From 860e1071dc0708b55facbf527448e0d7d16646a7 Mon Sep 17 00:00:00 2001
From: Baptiste Coudurier <[email protected]>
Date: Wed, 11 Nov 2026 13:08:57 -0800
Subject: [PATCH 2/2] avformat/mxfenc: write empty ANC elements for frames
 without ANC packets

The interleaver numbers the packets of each stream and only writes the
edit units having a packet of every stream, the others are dropped at
the end. ANC packets made from an SCC file only exist for the frames
carrying captions, so the output was truncated to as many edit units
as there were caption packets.

Every content package must have an ANC element (SMPTE ST 436-1 5.2),
so assign the ANC packets to the edit unit matching their pts, and
write an empty ANC element, with a packet count of 0, in the edit units
without one. A missing packet is waited for during max_interleave_delta
at most.

Fixes #20471.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: Baptiste Coudurier <[email protected]>
---
 libavformat/mxfenc.c             |  77 +++++++++-
 tests/fate/mxf.mak               |   4 +
 tests/ref/fate/mxf-eia608-sparse | 254 +++++++++++++++++++++++++++++++
 3 files changed, 332 insertions(+), 3 deletions(-)
 create mode 100644 tests/ref/fate/mxf-eia608-sparse

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 867a4abd4d2..8f6c4188473 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -42,6 +42,7 @@
 
 #include "libavutil/attributes.h"
 #include "libavutil/attributes_internal.h"
+#include "libavutil/intreadwrite.h"
 #include "libavutil/mem.h"
 #include "libavutil/opt.h"
 #include "libavutil/random_seed.h"
@@ -493,6 +494,9 @@ typedef struct MXFContext {
     int cbr_index;           ///< use a constant bitrate index
     uint8_t unused_tags[MXF_NUM_TAGS];  ///< local tags that we know will not 
be used
     MXFStreamContext timecode_track_priv;
+    PacketList anc_queue;    ///< ANC packets not yet assigned to an edit unit
+    AVPacket *anc_pkt;
+    int64_t start_pts;       ///< pts of the first video packet
 } MXFContext;
 
 static void mxf_write_uuid(AVIOContext *pb, enum MXFMetadataSetType type, int 
value)
@@ -2955,6 +2959,11 @@ static int mxf_init(AVFormatContext *s)
     if (!av_dict_get(s->metadata, "comment_", NULL, AV_DICT_IGNORE_SUFFIX))
         mxf->store_user_comments = 0;
 
+    mxf->start_pts = AV_NOPTS_VALUE;
+    mxf->anc_pkt = av_packet_alloc();
+    if (!mxf->anc_pkt)
+        return AVERROR(ENOMEM);
+
     for (i = 0; i < s->nb_streams; i++) {
         AVStream *st = s->streams[i];
         MXFStreamContext *sc = av_mallocz(sizeof(*sc));
@@ -3559,6 +3568,8 @@ static void mxf_deinit(AVFormatContext *s)
     av_freep(&mxf->index_entries);
     av_freep(&mxf->body_partition_offset);
     av_freep(&mxf->timecode_track);
+    ff_packet_list_free(&mxf->anc_queue);
+    av_packet_free(&mxf->anc_pkt);
 }
 
 static int mxf_interleave_get_packet(AVFormatContext *s, AVPacket *out, int 
flush)
@@ -3622,16 +3633,76 @@ static int mxf_compare_timestamps(AVFormatContext *s, 
const AVPacket *next,
         (next->dts == pkt->dts && sc->order < sc2->order);
 }
 
+static int mxf_is_anc_stream(AVFormatContext *s, int stream_index)
+{
+    MXFStreamContext *sc = s->streams[stream_index]->priv_data;
+
+    return stream_index && sc->index == INDEX_S436M;
+}
+
+/**
+ * ANC packets are sparse, so they are assigned to the edit unit matching
+ * their pts, and the edit units without one get an empty ANC element.
+ */
+static int mxf_interleave_anc_packet(AVFormatContext *s, int flush)
+{
+    MXFContext *mxf = s->priv_data;
+    AVStream *st = s->streams[s->nb_streams - 1];
+    MXFStreamContext *sc = st->priv_data;
+    MXFStreamContext *video_sc = s->streams[0]->priv_data;
+    PacketListEntry *pktl = mxf->anc_queue.head;
+    AVPacket *pkt = mxf->anc_pkt;
+    int i, ret;
+
+    // only the next edit unit is assigned, to give the following packets time 
to come
+    if (!mxf_is_anc_stream(s, st->index) || 
ffstream(st)->last_in_packet_buffer)
+        return 0;
+
+    // the other streams must have a packet for this edit unit
+    for (i = 0; i < s->nb_streams - 1; i++)
+        if (!ffstream(s->streams[i])->last_in_packet_buffer)
+            return 0;
+
+    if (pktl && (pktl->pkt.pts == AV_NOPTS_VALUE ||
+                 av_rescale_q(pktl->pkt.pts, st->time_base, mxf->time_base) - 
mxf->start_pts <= sc->pkt_cnt)) {
+        ff_packet_list_get(&mxf->anc_queue, pkt);
+    } else if (pktl || flush ||
+               (s->max_interleave_delta > 0 &&
+                av_rescale_q(video_sc->pkt_cnt - sc->pkt_cnt, mxf->time_base,
+                             AV_TIME_BASE_Q) > s->max_interleave_delta)) {
+        if ((ret = av_new_packet(pkt, 2)) < 0)
+            return ret;
+        AV_WB16(pkt->data, 0); // number of ANC packets
+        pkt->stream_index = st->index;
+    } else
+        return 0;
+
+    pkt->pts = pkt->dts = sc->pkt_cnt++;
+    return ff_interleave_add_packet(s, pkt, mxf_compare_timestamps);
+}
+
 static int mxf_interleave(AVFormatContext *s, AVPacket *pkt,
                           int flush, int has_packet)
 {
+    MXFContext *mxf = s->priv_data;
     int ret;
     if (has_packet) {
         MXFStreamContext *sc = s->streams[pkt->stream_index]->priv_data;
-        pkt->pts = pkt->dts = sc->pkt_cnt++;
-        if ((ret = ff_interleave_add_packet(s, pkt, mxf_compare_timestamps)) < 
0)
-            return ret;
+        if (mxf_is_anc_stream(s, pkt->stream_index)) {
+            if ((ret = ff_packet_list_put(&mxf->anc_queue, pkt, NULL, 0)) < 0) 
{
+                av_packet_unref(pkt);
+                return ret;
+            }
+        } else {
+            if (!pkt->stream_index && mxf->start_pts == AV_NOPTS_VALUE)
+                mxf->start_pts = pkt->pts == AV_NOPTS_VALUE ? 0 : pkt->pts;
+            pkt->pts = pkt->dts = sc->pkt_cnt++;
+            if ((ret = ff_interleave_add_packet(s, pkt, 
mxf_compare_timestamps)) < 0)
+                return ret;
+        }
     }
+    if ((ret = mxf_interleave_anc_packet(s, flush)) < 0)
+        return ret;
     return mxf_interleave_get_packet(s, pkt, flush);
 }
 
diff --git a/tests/fate/mxf.mak b/tests/fate/mxf.mak
index 766488b62a8..5a10d10bf13 100644
--- a/tests/fate/mxf.mak
+++ b/tests/fate/mxf.mak
@@ -61,6 +61,10 @@ fate-mxf-user-comments: CMD = md5 -y -i 
$(TARGET_SAMPLES)/mxf/Sony-00001.mxf -c
 FATE_MXF_FFMPEG_FFPROBE-$(call REMUX, MXF_D10 MXF, DVVIDEO_DECODER 
SCALE_FILTER MPEG2VIDEO_ENCODER EXTRACT_EXTRADATA_BSF MPEGVIDEO_PARSER) += 
fate-mxf-d10-user-comments
 fate-mxf-d10-user-comments: CMD = transcode mxf 
$(TARGET_SAMPLES)/mxf/Avid-00005.mxf mxf_d10 "-c:v mpeg2video -b:v 30000k 
-minrate:v 30000k -maxrate:v 30000k -bufsize:v 30000k -rc_init_occupancy 30000k 
-vf scale=w=1280:h=720 -an -metadata comment_test=value -metadata 
company_name=FATE-company -metadata product_name=FATE-test -metadata 
product_version=3.14159 -store_user_comments 1" "-c copy -frames:v 5" 
"-show_entries format_tags"
 
+# Tests muxing sparse EIA-608 packets, each holding the byte pairs of several 
frames.
+FATE_MXF_FFMPEG_FFPROBE-$(call REMUX, MXF, LAVFI_INDEV TESTSRC2_FILTER 
MPEG2VIDEO_ENCODER SCC_DEMUXER EIA608_TO_SMPTE436M_BSF) += 
fate-mxf-eia608-sparse
+fate-mxf-eia608-sparse: CMD = transcode lavfi testsrc2=r=30000/1001:d=4 mxf 
"-map 0:v -map 1:s -c:v mpeg2video -bf 2 -c:s copy" "-map 0 -c copy" 
"-show_entries format=duration" "-ss 59 -i $(TARGET_SAMPLES)/sub/witch.scc"
+
 FATE_MXF-$(call DEMMUX, MXF, MXF_OPATOM, MPEGVIDEO_PARSER MPEG2VIDEO_DECODER) 
+= fate-mxf-opatom-user-comments
 fate-mxf-opatom-user-comments: CMD = md5 -y -i 
$(TARGET_SAMPLES)/mxf/Sony-00001.mxf -an -vcodec copy -metadata 
"comment_test=value" -fflags +bitexact -f mxf_opatom
 
diff --git a/tests/ref/fate/mxf-eia608-sparse b/tests/ref/fate/mxf-eia608-sparse
new file mode 100644
index 00000000000..7f01ad5d151
--- /dev/null
+++ b/tests/ref/fate/mxf-eia608-sparse
@@ -0,0 +1,254 @@
+2ba83bbd9c540f6c1691b4c26fbd42c4 *tests/data/fate/mxf-eia608-sparse.mxf
+390201 tests/data/fate/mxf-eia608-sparse.mxf
+#extradata 0:       22, 0x4e760627
+#tb 0: 1001/30000
+#media_type 0: video
+#codec_id 0: mpeg2video
+#dimensions 0: 320x240
+#sar 0: 1/1
+#tb 1: 1001/30000
+#media_type 1: data
+#codec_id 1: smpte_436m_anc
+0,         -1,          0,        1,    10592, 0xabb3f832
+0,          0,          3,        1,    11445, 0x5c70c1d4, F=0x0
+1,          0,          0,        1,       36, 0x452b06a9
+0,          1,          1,        1,     5313, 0xc5afa480, F=0x0
+1,          1,          1,        1,       36, 0x453506a9
+0,          2,          2,        1,     4250, 0x9eaab14b, F=0x0
+1,          2,          2,        1,       36, 0x460f06a9
+0,          3,          6,        1,    10779, 0xec6f7a46, F=0x0
+1,          3,          3,        1,       36, 0x461906a9
+0,          4,          4,        1,     4761, 0x0bd9845a, F=0x0
+1,          4,          4,        1,       36, 0x423605a9
+0,          5,          5,        1,     5065, 0xa598f116, F=0x0
+1,          5,          5,        1,       36, 0x471006a9
+0,          6,          9,        1,     9016, 0x282bc63f, F=0x0
+1,          6,          6,        1,       36, 0x4c8a07a9
+0,          7,          7,        1,     4616, 0x7338d898, F=0x0
+1,          7,          7,        1,       36, 0x428105a9
+0,          8,          8,        1,     3120, 0xc5453585, F=0x0
+1,          8,          8,        1,       36, 0x45e806a9
+0,          9,         12,        1,    13700, 0xa9f7b26f
+1,          9,          9,        1,       36, 0x48d506a9
+0,         10,         10,        1,     5315, 0x584c8eb1, F=0x0
+1,         10,         10,        1,       36, 0x48df06a9
+0,         11,         11,        1,     4992, 0x0d47fc18, F=0x0
+1,         11,         11,        1,       36, 0x4b5307a9
+0,         12,         15,        1,     6512, 0x44b6712f, F=0x0
+1,         12,         12,        1,       36, 0x471106a9
+0,         13,         13,        1,     2365, 0x17a72f73, F=0x0
+1,         13,         13,        1,       36, 0x460906a9
+0,         14,         14,        1,     1788, 0x93d90ef8, F=0x0
+1,         14,         14,        1,       36, 0x44f406a9
+0,         15,         18,        1,     3344, 0x3bd7bcde, F=0x0
+1,         15,         15,        1,       36, 0x458106a9
+0,         16,         16,        1,     1253, 0x1cfb2840, F=0x0
+1,         16,         16,        1,       36, 0x418705a9
+0,         17,         17,        1,     1412, 0x3038763b, F=0x0
+1,         17,         17,        1,       36, 0x4b8f07a9
+0,         18,         21,        1,     2652, 0x5ecfa474, F=0x0
+1,         18,         18,        1,       36, 0x474d06a9
+0,         19,         19,        1,     1008, 0xae89ad15, F=0x0
+1,         19,         19,        1,       36, 0x464506a9
+0,         20,         20,        1,     1027, 0xa97ac5aa, F=0x0
+1,         20,         20,        1,       36, 0x453006a9
+0,         21,         24,        1,     6756, 0x70089cba
+1,         21,         21,        1,       36, 0x45bd06a9
+0,         22,         22,        1,     1339, 0xdc73542f, F=0x0
+1,         22,         22,        1,       36, 0x463706a9
+0,         23,         23,        1,     1402, 0x5be971de, F=0x0
+1,         23,         23,        1,       36, 0x464106a9
+0,         24,         27,        1,     2096, 0xa6c29939, F=0x0
+1,         24,         24,        1,       36, 0x465706a9
+0,         25,         25,        1,     1114, 0xe666efd6, F=0x0
+1,         25,         25,        1,       36, 0x466106a9
+0,         26,         26,        1,      803, 0xa36d4ea4, F=0x0
+1,         26,         26,        1,        2, 0x00000000
+0,         27,         30,        1,     1637, 0x43fdce20, F=0x0
+1,         27,         27,        1,        2, 0x00000000
+0,         28,         28,        1,      588, 0xe898f471, F=0x0
+1,         28,         28,        1,        2, 0x00000000
+0,         29,         29,        1,      564, 0xcfb9f0d8, F=0x0
+1,         29,         29,        1,        2, 0x00000000
+0,         30,         33,        1,     1285, 0x7fda3607, F=0x0
+1,         30,         30,        1,        2, 0x00000000
+0,         31,         31,        1,      471, 0xfdd1c2e6, F=0x0
+1,         31,         31,        1,        2, 0x00000000
+0,         32,         32,        1,      502, 0x7a17d363, F=0x0
+1,         32,         32,        1,        2, 0x00000000
+0,         33,         36,        1,     4994, 0x061a2e5f
+1,         33,         33,        1,        2, 0x00000000
+0,         34,         34,        1,      527, 0x44b5e137, F=0x0
+1,         34,         34,        1,        2, 0x00000000
+0,         35,         35,        1,      608, 0xccd9103e, F=0x0
+1,         35,         35,        1,        2, 0x00000000
+0,         36,         39,        1,      918, 0x03e68cc4, F=0x0
+1,         36,         36,        1,        2, 0x00000000
+0,         37,         37,        1,      604, 0x859a0610, F=0x0
+1,         37,         37,        1,        2, 0x00000000
+0,         38,         38,        1,      487, 0x8e2bcb41, F=0x0
+1,         38,         38,        1,        2, 0x00000000
+0,         39,         42,        1,      860, 0xc46f6e9b, F=0x0
+1,         39,         39,        1,       36, 0x462f06a9
+0,         40,         40,        1,      485, 0x9741cbaa, F=0x0
+1,         40,         40,        1,       36, 0x463906a9
+0,         41,         41,        1,      457, 0x0e28bd05, F=0x0
+1,         41,         41,        1,       36, 0x467e06a9
+0,         42,         45,        1,      905, 0x291f8532, F=0x0
+1,         42,         42,        1,       36, 0x468806a9
+0,         43,         43,        1,      465, 0x150cbf58, F=0x0
+1,         43,         43,        1,       36, 0x481706a9
+0,         44,         44,        1,      466, 0xdf95c15c, F=0x0
+1,         44,         44,        1,       36, 0x453006a9
+0,         45,         48,        1,     4678, 0xe949a6ea
+1,         45,         45,        1,       36, 0x481706a9
+0,         46,         46,        1,      559, 0x3be5f9ef, F=0x0
+1,         46,         46,        1,       36, 0x471506a9
+0,         47,         47,        1,      691, 0xc7dc2d45, F=0x0
+1,         47,         47,        1,       36, 0x47fa06a9
+0,         48,         51,        1,      938, 0x67c88e8d, F=0x0
+1,         48,         48,        1,       36, 0x46f106a9
+0,         49,         49,        1,      564, 0x904ce8d9, F=0x0
+1,         49,         49,        1,       36, 0x487106a9
+0,         50,         50,        1,      460, 0xf578c592, F=0x0
+1,         50,         50,        1,       36, 0x46ec06a9
+0,         51,         54,        1,      854, 0x9c6b7028, F=0x0
+1,         51,         51,        1,       36, 0x456206a9
+0,         52,         52,        1,      471, 0x69a1c3bf, F=0x0
+1,         52,         52,        1,       36, 0x456c06a9
+0,         53,         53,        1,      447, 0x9336c351, F=0x0
+1,         53,         53,        1,       36, 0x4c9607a9
+0,         54,         57,        1,      918, 0x3957843d, F=0x0
+1,         54,         54,        1,       36, 0x453a06a9
+0,         55,         55,        1,      473, 0x8898be80, F=0x0
+1,         55,         55,        1,       36, 0x482406a9
+0,         56,         56,        1,      472, 0x1669c456, F=0x0
+1,         56,         56,        1,       36, 0x471906a9
+0,         57,         60,        1,     4515, 0xb2da4b27
+1,         57,         57,        1,       36, 0x457b06a9
+0,         58,         58,        1,      601, 0x0cb4fe3f, F=0x0
+1,         58,         58,        1,       36, 0x464606a9
+0,         59,         59,        1,      595, 0x64dff257, F=0x0
+1,         59,         59,        1,       36, 0x480206a9
+0,         60,         63,        1,      949, 0x7e4699dc, F=0x0
+1,         60,         60,        1,       36, 0x473906a9
+0,         61,         61,        1,      594, 0xe1c8feaf, F=0x0
+1,         61,         61,        1,       36, 0x486306a9
+0,         62,         62,        1,      526, 0x0faae299, F=0x0
+1,         62,         62,        1,       36, 0x486d06a9
+0,         63,         66,        1,      944, 0x6fc09a1c, F=0x0
+1,         63,         63,        1,       36, 0x4cfa07a9
+0,         64,         64,        1,      511, 0xf411dc5d, F=0x0
+1,         64,         64,        1,       36, 0x459e06a9
+0,         65,         65,        1,      465, 0x19f7c2b1, F=0x0
+1,         65,         65,        1,       36, 0x468706a9
+0,         66,         69,        1,      835, 0xf7446b56, F=0x0
+1,         66,         66,        1,       36, 0x489006a9
+0,         67,         67,        1,      517, 0x73b3d244, F=0x0
+1,         67,         67,        1,       36, 0x488206a9
+0,         68,         68,        1,      501, 0xbabad4a1, F=0x0
+1,         68,         68,        1,       36, 0x468d06a9
+0,         69,         72,        1,     4716, 0xf6bbd3e1
+1,         69,         69,        1,       36, 0x490206a9
+0,         70,         70,        1,      645, 0xa2ce206d, F=0x0
+1,         70,         70,        1,       36, 0x45dd06a9
+0,         71,         71,        1,      659, 0xab39143c, F=0x0
+1,         71,         71,        1,       36, 0x492506a9
+0,         72,         75,        1,      839, 0xdb9a6d01, F=0x0
+1,         72,         72,        1,       36, 0x473906a9
+0,         73,         73,        1,      504, 0x611cd1d8, F=0x0
+1,         73,         73,        1,       36, 0x47b306a9
+0,         74,         74,        1,      485, 0xfc51cd49, F=0x0
+1,         74,         74,        1,       36, 0x47bd06a9
+0,         75,         78,        1,      875, 0xffe6776c, F=0x0
+1,         75,         75,        1,       36, 0x47d306a9
+0,         76,         76,        1,      530, 0x51ecec9b, F=0x0
+1,         76,         76,        1,       36, 0x47dd06a9
+0,         77,         77,        1,      533, 0xbbbae791, F=0x0
+1,         77,         77,        1,        2, 0x00000000
+0,         78,         81,        1,      811, 0xa5cf65a9, F=0x0
+1,         78,         78,        1,        2, 0x00000000
+0,         79,         79,        1,      474, 0x6980d64f, F=0x0
+1,         79,         79,        1,        2, 0x00000000
+0,         80,         80,        1,      505, 0xa56cd778, F=0x0
+1,         80,         80,        1,        2, 0x00000000
+0,         81,         84,        1,     4270, 0x907c0bd4
+1,         81,         81,        1,        2, 0x00000000
+0,         82,         82,        1,      507, 0xe39ceda0, F=0x0
+1,         82,         82,        1,        2, 0x00000000
+0,         83,         83,        1,      530, 0x9b89ef6c, F=0x0
+1,         83,         83,        1,        2, 0x00000000
+0,         84,         87,        1,      769, 0x5ad5436f, F=0x0
+1,         84,         84,        1,        2, 0x00000000
+0,         85,         85,        1,      555, 0x678fe858, F=0x0
+1,         85,         85,        1,        2, 0x00000000
+0,         86,         86,        1,      567, 0x70f5f47e, F=0x0
+1,         86,         86,        1,        2, 0x00000000
+0,         87,         90,        1,      753, 0x372b3695, F=0x0
+1,         87,         87,        1,        2, 0x00000000
+0,         88,         88,        1,      552, 0x979fec27, F=0x0
+1,         88,         88,        1,        2, 0x00000000
+0,         89,         89,        1,      597, 0x9b5b06e6, F=0x0
+1,         89,         89,        1,        2, 0x00000000
+0,         90,         93,        1,      887, 0x3a867638, F=0x0
+1,         90,         90,        1,        2, 0x00000000
+0,         91,         91,        1,      522, 0x4760e250, F=0x0
+1,         91,         91,        1,        2, 0x00000000
+0,         92,         92,        1,      537, 0x1b20ee9a, F=0x0
+1,         92,         92,        1,        2, 0x00000000
+0,         93,         96,        1,     4460, 0x2e62500e
+1,         93,         93,        1,        2, 0x00000000
+0,         94,         94,        1,      559, 0x9bcfe8d7, F=0x0
+1,         94,         94,        1,        2, 0x00000000
+0,         95,         95,        1,      649, 0xfcd11212, F=0x0
+1,         95,         95,        1,        2, 0x00000000
+0,         96,         99,        1,      988, 0x4206ad6c, F=0x0
+1,         96,         96,        1,        2, 0x00000000
+0,         97,         97,        1,      678, 0xe123263b, F=0x0
+1,         97,         97,        1,        2, 0x00000000
+0,         98,         98,        1,      609, 0x6431fe46, F=0x0
+1,         98,         98,        1,        2, 0x00000000
+0,         99,        102,        1,     1014, 0xda8db4cd, F=0x0
+1,         99,         99,        1,        2, 0x00000000
+0,        100,        100,        1,      717, 0x913c3cfc, F=0x0
+1,        100,        100,        1,        2, 0x00000000
+0,        101,        101,        1,      672, 0x8e001493, F=0x0
+1,        101,        101,        1,        2, 0x00000000
+0,        102,        105,        1,      844, 0x591466f1, F=0x0
+1,        102,        102,        1,        2, 0x00000000
+0,        103,        103,        1,      665, 0x237f213d, F=0x0
+1,        103,        103,        1,        2, 0x00000000
+0,        104,        104,        1,      766, 0xec2c469e, F=0x0
+1,        104,        104,        1,        2, 0x00000000
+0,        105,        108,        1,     3860, 0x330a6d5e
+1,        105,        105,        1,        2, 0x00000000
+0,        106,        106,        1,      684, 0x272e4044, F=0x0
+1,        106,        106,        1,        2, 0x00000000
+0,        107,        107,        1,      713, 0xe2d042d8, F=0x0
+1,        107,        107,        1,        2, 0x00000000
+0,        108,        111,        1,      989, 0x5de2bbd1, F=0x0
+1,        108,        108,        1,        2, 0x00000000
+0,        109,        109,        1,      731, 0xeba446b2, F=0x0
+1,        109,        109,        1,        2, 0x00000000
+0,        110,        110,        1,      756, 0x3bcc419a, F=0x0
+1,        110,        110,        1,        2, 0x00000000
+0,        111,        114,        1,      944, 0xfca1a260, F=0x0
+1,        111,        111,        1,        2, 0x00000000
+0,        112,        112,        1,      727, 0x3e68462f, F=0x0
+1,        112,        112,        1,        2, 0x00000000
+0,        113,        113,        1,      676, 0x749d2a0e, F=0x0
+1,        113,        113,        1,        2, 0x00000000
+0,        114,        117,        1,      788, 0x804c4faf, F=0x0
+1,        114,        114,        1,        2, 0x00000000
+0,        115,        115,        1,      703, 0x4ee12bc3, F=0x0
+1,        115,        115,        1,        2, 0x00000000
+0,        116,        116,        1,      606, 0x0d8905e2, F=0x0
+1,        116,        116,        1,        2, 0x00000000
+0,        117,        119,        1,     3964, 0x2cbaa8f8
+1,        117,        117,        1,        2, 0x00000000
+0,        118,        118,        1,      525, 0x2a4de387, F=0x0
+1,        118,        118,        1,        2, 0x00000000
+1,        119,        119,        1,        2, 0x00000000
+[FORMAT]
+duration=4.004000
+[/FORMAT]
-- 
2.54.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to