WIP: av1_in_ts_v2 #21307

Draft
Jun Zhao wants to merge 14 commits from mypopydev/FFmpeg:av1_in_ts_v2 into master
Member

This patch series V2 adds support for carrying AV1 video streams in MPEG-2 Transport Stream
containers, following the AOM "Carriage of AV1 in MPEG-2 TS" specification.

Key Features

  • MPEG-TS Muxer: Converts AV1 from Section 5 (low overhead) format to start code format,
    where each OBU is prefixed with a 0x000001 start code. Includes Registration Descriptor ('AV01')
    and AV1 Video Descriptor (0x80) in PMT.
  • MPEG-TS Demuxer: Identifies AV1 streams by stream_type 0x06 (private data) and
    Registration Descriptor. Outputs AV1 data in start code format.
  • av1_tstosection5 BSF: Converts AV1 from MPEG-TS start code format back to Section 5
    format for compatibility with other containers and decoders. Automatically inserted when
    remuxing to MP4, MKV, FLV, IVF, and raw OBU files.
  • Decoder Support: Both libdav1d and libaom decoders can directly decode AV1 in start code format.
This patch series V2 adds support for carrying AV1 video streams in MPEG-2 Transport Stream containers, following the AOM "Carriage of AV1 in MPEG-2 TS" specification. Key Features - MPEG-TS Muxer: Converts AV1 from Section 5 (low overhead) format to start code format, where each OBU is prefixed with a 0x000001 start code. Includes Registration Descriptor ('AV01') and AV1 Video Descriptor (0x80) in PMT. - MPEG-TS Demuxer: Identifies AV1 streams by stream_type 0x06 (private data) and Registration Descriptor. Outputs AV1 data in start code format. - av1_tstosection5 BSF: Converts AV1 from MPEG-TS start code format back to Section 5 format for compatibility with other containers and decoders. Automatically inserted when remuxing to MP4, MKV, FLV, IVF, and raw OBU files. - Decoder Support: Both libdav1d and libaom decoders can directly decode AV1 in start code format.
@ -146,6 +146,7 @@
#define STREAM_TYPE_VIDEO_HEVC 0x24
#define STREAM_TYPE_VIDEO_JPEGXS 0x32
#define STREAM_TYPE_VIDEO_VVC 0x33
#define STREAM_TYPE_VIDEO_AV1 0x06 /* Per AOM AV1-MPEG2-TS draft spec */
Member

Do not add this, simply use PRIVATE_DATA.

Do not add this, simply use PRIVATE_DATA.
cus marked this conversation as resolved
@ -376,1 +459,4 @@
break;
case AV_CODEC_ID_AV1:
stream_type = STREAM_TYPE_PRIVATE_DATA;
break;
Member

There is already a branch below which returns STREAM_TYPE_PRIVATE_DATA.

There is already a branch below which returns STREAM_TYPE_PRIVATE_DATA.
Author
Member

make sense, will chaneg, thx

make sense, will chaneg, thx
Author
Member

fixed, thx

fixed, thx
mypopydev marked this conversation as resolved
@ -807,6 +893,9 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
put_registration_descriptor(&q, MKTAG('V', 'C', '-', '1'));
} else if (stream_type == STREAM_TYPE_VIDEO_HEVC && s->strict_std_compliance <= FF_COMPLIANCE_NORMAL) {
put_registration_descriptor(&q, MKTAG('H', 'E', 'V', 'C'));
} else if (codec_id == AV_CODEC_ID_AV1 && s->strict_std_compliance <= FF_COMPLIANCE_NORMAL) {
Member

I don't think the complicance check is needed here, it was added for HEVC because the HEVC registration descriptor is not standard, but improves compatiblity.

I don't think the complicance check is needed here, it was added for HEVC because the HEVC registration descriptor is not standard, but improves compatiblity.
Author
Member

Ok

Ok
Author
Member

changed as review

changed as review
mypopydev marked this conversation as resolved
Member

The specs is still a draft. How close is to become final?

The specs is still a draft. How close is to become final?
Jun Zhao force-pushed av1_in_ts_v2 from 3f86ff1701
Some checks failed
/ lint (pull_request) Successful in 38s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m0s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 9m6s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 17m53s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m16s
/ pr_labeler (pull_request_target) Has been skipped
to 486e1b8355
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 42s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m5s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 11m48s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 16m57s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m8s
2025-12-29 02:35:50 +00:00
Compare
Gyan Doshi approved these changes 2025-12-29 04:40:47 +00:00
Gyan Doshi left a comment

Docs lgtm

Docs lgtm
@ -95,0 +111,4 @@
@itemize
@item
Convert an AV1 stream from MPEG-TS to MP4:
Member

"Convert an AV1 stream from MPEG-TS to MP4" --> "Remux an AV1 stream from MPEG-TS into MP4"

"Convert an AV1 stream from MPEG-TS to MP4" --> "Remux an AV1 stream from MPEG-TS into MP4"
Author
Member

Ok, I don't have any particular preference, as a non-native English speaker.

Ok, I don't have any particular preference, as a non-native English speaker.
GyanD marked this conversation as resolved
Jun Zhao force-pushed av1_in_ts_v2 from 486e1b8355
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 42s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m5s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 11m48s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 16m57s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m8s
to ffbededa06
Some checks failed
/ lint (pull_request) Successful in 34s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m26s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 12m38s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 16m53s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m13s
/ pr_labeler (pull_request_target) Has been skipped
2025-12-29 06:29:37 +00:00
Compare
Author
Member

@cus wrote in #21307 (comment):

The specs is still a draft. How close is to become final?

Actually, I don't know for sure, but we've already started using the spec. Additionally, we need an implementation to cross-validate with the spec.

@cus wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-20506: > The specs is still a draft. How close is to become final? Actually, I don't know for sure, but we've already started using the spec. Additionally, we need an implementation to cross-validate with the spec.
@ -354,0 +427,4 @@
(seq.chroma_sample_position & 0x03);
/* Byte 3: hdr_wcg_idc (2) | reserved_zeros (1) | initial_presentation_delay_present (1) |
* reserved_zeros (4) */
/* We don't use initial_presentation_delay, so set to 0 */
Member

Surely you should use it from the bitstream if it's there?

Surely you should use it from the bitstream if it's there?
Author
Member

I will add handling for the initial_presentation_delay field.

I will add handling for the initial_presentation_delay field.
@ -1792,0 +1911,4 @@
*
* Note: Per AOM AV1-MPEG2-TS spec section 3.6.2.1, emulation prevention bytes
* should be handled, but for now we rely on the obu_size field for boundary
* detection which makes emulation prevention optional in practice.
Member

That's not how emulation prevention works or the purpose of emulation prevention. It is not optional.

That's not how emulation prevention works or the purpose of emulation prevention. It is not optional.
Author
Member

Now support the EPB (Emulation Prevention Byte), thx

Now support the EPB (Emulation Prevention Byte), thx
Owner

In libavcodec you can use ff_startcode_find_candidate_c() and avpriv_find_start_code(), and in libavformat you can use the latter. No need to write yet another implementation for it.
ff_startcode_find_candidate_c() even has target specific optimized versions if you use function pointers for them, like how h264dsp.c and vc1dsp.c do.

Also, you can't use any ff_* symbol from libavcodec in libavformat, as they will not be available in shared builds.

In libavcodec you can use ff_startcode_find_candidate_c() and avpriv_find_start_code(), and in libavformat you can use the latter. No need to write yet another implementation for it. ff_startcode_find_candidate_c() even has target specific optimized versions if you use function pointers for them, like how h264dsp.c and vc1dsp.c do. Also, you can't use any ff_* symbol from libavcodec in libavformat, as they will not be available in shared builds.
@ -893,6 +894,7 @@ static const StreamType DESC_types[] = {
{ AC3_DESCRIPTOR, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_AC3 },
{ ENHANCED_AC3_DESCRIPTOR, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_EAC3 },
{ DTS_DESCRIPTOR, AVMEDIA_TYPE_AUDIO, AV_CODEC_ID_DTS },
{ AV1_VIDEO_DESCRIPTOR, AVMEDIA_TYPE_VIDEO, AV_CODEC_ID_AV1 },
Member

Considering that AV1_VIDEO_DESCRIPTOR is in the User-Defined area, this should not be needed, and it should not be added here, otherwise other (future) codecs using the same 0x80 descriptor ID can be misdetected as AV1. The registration descriptor (its presence is mandatory in the stream) should be enough to detect the AV1 codec.

Considering that AV1_VIDEO_DESCRIPTOR is in the User-Defined area, this should not be needed, and it should not be added here, otherwise other (future) codecs using the same 0x80 descriptor ID can be misdetected as AV1. The registration descriptor (its presence is mandatory in the stream) should be enough to detect the AV1 codec.
Author
Member

Yes, will remove thhis part, thx

Yes, will remove thhis part, thx
cus marked this conversation as resolved
Author
Member

@jamrial wrote in #21307 (comment):

In libavcodec you can use ff_startcode_find_candidate_c() and avpriv_find_start_code(), and in libavformat you can use the latter. No need to write yet another implementation for it. ff_startcode_find_candidate_c() even has target specific optimized versions if you use function pointers for them, like how h264dsp.c and vc1dsp.c do.

Also, you can't use any ff_* symbol from libavcodec in libavformat, as they will not be available in shared builds.

Thanks for the review.

  1. avpriv_find_start_code() is used in libavcodec/av1_parse.c for searching start codes when parsing OBUs.

  2. No cross-library ff_* calls: libavformat/av1.c has independent OBU parsing implementation. All ff_av1_* functions are defined locally within each library, ensuring shared builds work correctly.

@jamrial wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-20577: > In libavcodec you can use ff_startcode_find_candidate_c() and avpriv_find_start_code(), and in libavformat you can use the latter. No need to write yet another implementation for it. ff_startcode_find_candidate_c() even has target specific optimized versions if you use function pointers for them, like how h264dsp.c and vc1dsp.c do. > > Also, you can't use any ff_* symbol from libavcodec in libavformat, as they will not be available in shared builds. Thanks for the review. 1. avpriv_find_start_code() is used in libavcodec/av1_parse.c for searching start codes when parsing OBUs. 2. No cross-library ff_* calls: libavformat/av1.c has independent OBU parsing implementation. All ff_av1_* functions are defined locally within each library, ensuring shared builds work correctly.
Jun Zhao force-pushed av1_in_ts_v2 from ffbededa06
Some checks failed
/ lint (pull_request) Successful in 34s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m26s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 12m38s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 16m53s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m13s
/ pr_labeler (pull_request_target) Has been skipped
to 3c18a3d38b
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 21s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m0s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 13m6s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 16m30s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m4s
2025-12-30 05:18:46 +00:00
Compare
Jun Zhao force-pushed av1_in_ts_v2 from 3c18a3d38b
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 21s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m0s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 13m6s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 16m30s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m4s
to 60c0cf9718
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 25s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m14s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 12m51s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 16m28s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m18s
2025-12-30 06:08:22 +00:00
Compare
Jun Zhao force-pushed av1_in_ts_v2 from 60c0cf9718
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 25s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m14s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 12m51s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 16m28s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m18s
to 1de2505608
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 40s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m12s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 12m32s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 16m54s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Failing after 15m33s
2025-12-30 06:34:00 +00:00
Compare
Jun Zhao force-pushed av1_in_ts_v2 from 1de2505608
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 40s
/ run_fate (64, linux-aarch64, static) (pull_request) Failing after 9m12s
/ run_fate (32, linux-amd64, static) (pull_request) Failing after 12m32s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 16m54s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Failing after 15m33s
to d74c13a088
All checks were successful
/ lint (pull_request) Successful in 30s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m24s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 15m53s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 21m33s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m8s
/ pr_labeler (pull_request_target) Has been skipped
2025-12-30 07:25:04 +00:00
Compare
@ -53,2 +57,4 @@
};
/**
* Convert start code format to Section 5 format for parsing.
Owner

No, an AVCodecParser must not remove or replace data, and much less allocate buffers like you're doing here. It's only supposed to assemble data into complete packets if required/requested, and parsing them for stream parameters.

The start codes and emulation prevention 3bytes must be removed by a bsf, like the one you wrote, or a splitter like in av1_parse.c, one of which should be used by decoders and muxer.

See my comment in av1_parse.c for how to handle CBS support, so you don't need to touch this parser.

No, an AVCodecParser must not remove or replace data, and much less allocate buffers like you're doing here. It's only supposed to assemble data into complete packets if required/requested, and parsing them for stream parameters. The start codes and emulation prevention 3bytes must be removed by a bsf, like the one you wrote, or a splitter like in av1_parse.c, one of which should be used by decoders and muxer. See my comment in av1_parse.c for how to handle CBS support, so you don't need to touch this parser.
Author
Member

fixed

fixed
@ -172,0 +204,4 @@
* @return 0 on success, negative error code on failure
*/
int ff_av1_packet_split_startcode(AV1Packet *pkt, const uint8_t *buf,
int length, void *logctx);
Owner

See https://code.ffmpeg.org/jamrial/FFmpeg/commits/branch/mpegts for an alternative (and more complete, as it removes the emulation prevention bytes) implementation of this.

See https://code.ffmpeg.org/jamrial/FFmpeg/commits/branch/mpegts for an alternative (and more complete, as it removes the emulation prevention bytes) implementation of this.
Owner

I did not fully test the emulation prevention byte removal, fwiw.

I did not fully test the emulation prevention byte removal, fwiw.
Author
Member

I reused the patch from this branch, thx

I reused the patch from this branch, thx
@ -1006,0 +1033,4 @@
@end example
The bitstream filter is automatically applied when needed.
Member

This is way too verbose to be in the MPEGTS demuxer user documentation. Some of this docs is for programmers working on mpegts demuxer code, some of it is already explained in the bitstream filter documentation. So I'd rather keep the mpegts demuxer docs unmodified and delete this whole chunk.

This is way too verbose to be in the MPEGTS demuxer user documentation. Some of this docs is for programmers working on mpegts demuxer code, some of it is already explained in the bitstream filter documentation. So I'd rather keep the mpegts demuxer docs unmodified and delete this whole chunk.
Author
Member

It will remain as it was before; I have no particular preference regarding this.

It will remain as it was before; I have no particular preference regarding this.
Jun Zhao force-pushed av1_in_ts_v2 from d74c13a088
All checks were successful
/ lint (pull_request) Successful in 30s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m24s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 15m53s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 21m33s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m8s
/ pr_labeler (pull_request_target) Has been skipped
to 907f00c596
All checks were successful
/ pr_labeler (pull_request_target) Successful in 10s
/ lint (pull_request) Successful in 29s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m25s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 16m25s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 23m45s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 24m34s
2025-12-30 18:20:12 +00:00
Compare
Jun Zhao force-pushed av1_in_ts_v2 from 907f00c596
All checks were successful
/ pr_labeler (pull_request_target) Successful in 10s
/ lint (pull_request) Successful in 29s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m25s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 16m25s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 23m45s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 24m34s
to 3bae92406b
All checks were successful
/ lint (pull_request) Successful in 31s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 8m15s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 11m45s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 12m19s
/ pr_labeler (pull_request_target) Has been skipped
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m13s
2025-12-30 18:29:51 +00:00
Compare
Owner

You're still not adding emulation prevention bytes in the mpegts muxer. You're also not removing them from the packets after they are exported by the mpegts demuxer.
See the branch i linked in a previous comment for the latter, which is a cleaner and complete implementation of the splitter in av1_parse.c. av1_tstosection5 bsf can then use said updated splitter.

You're still not adding emulation prevention bytes in the mpegts muxer. You're also not removing them from the packets after they are exported by the mpegts demuxer. See the branch i linked in a previous comment for the latter, which is a cleaner and complete implementation of the splitter in av1_parse.c. av1_tstosection5 bsf can then use said updated splitter.
Author
Member

@jamrial wrote in #21307 (comment):

You're still not adding emulation prevention bytes in the mpegts muxer. You're also not removing them from the packets after they are exported by the mpegts demuxer.
See the branch i linked in a previous comment for the latter, which is a cleaner and complete implementation of the splitter in av1_parse.c. av1_tstosection5 bsf can then use said updated splitter.

The next commit will be added, but first I need a nap :)

@jamrial wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-20697: > You're still not adding emulation prevention bytes in the mpegts muxer. You're also not removing them from the packets after they are exported by the mpegts demuxer. > See the branch i linked in a previous comment for the latter, which is a cleaner and complete implementation of the splitter in av1_parse.c. av1_tstosection5 bsf can then use said updated splitter. The next commit will be added, but first I need a nap :)
Jun Zhao force-pushed av1_in_ts_v2 from 3bae92406b
All checks were successful
/ lint (pull_request) Successful in 31s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 8m15s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 11m45s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 12m19s
/ pr_labeler (pull_request_target) Has been skipped
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m13s
to 4fc83b36bc
Some checks failed
/ lint (pull_request) Successful in 33s
/ pr_labeler (pull_request_target) Has been skipped
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 8m51s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m22s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 22m6s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 23m30s
2026-01-01 08:46:01 +00:00
Compare
Author
Member

@jamrial wrote in #21307 (comment):

You're still not adding emulation prevention bytes in the mpegts muxer. You're also not removing them from the packets after they are exported by the mpegts demuxer. See the branch i linked in a previous comment for the latter, which is a cleaner and complete implementation of the splitter in av1_parse.c. av1_tstosection5 bsf can then use said updated splitter.

Now support the EPB (Emulation Prevention Byte) as you review and patch:

Muxing (libavformat/av1.c): av1_epb_count() calculates required EPBs for buffer allocation, then av1_write_with_epb() writes data with EPB insertion. Called by ff_av1_section5_to_startcode().

Demuxing (libavcodec/av1_parse.c): ff_av1_extract_obu() removes EPB during OBU extraction. When 00 00 03 is detected, the 03 byte is skipped. Result: escaped_data/escaped_size contains clean data (EPB removed), raw_data/raw_size contains original data.

thx

@jamrial wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-20697: > You're still not adding emulation prevention bytes in the mpegts muxer. You're also not removing them from the packets after they are exported by the mpegts demuxer. See the branch i linked in a previous comment for the latter, which is a cleaner and complete implementation of the splitter in av1_parse.c. av1_tstosection5 bsf can then use said updated splitter. Now support the EPB (Emulation Prevention Byte) as you review and patch: Muxing (libavformat/av1.c): av1_epb_count() calculates required EPBs for buffer allocation, then av1_write_with_epb() writes data with EPB insertion. Called by ff_av1_section5_to_startcode(). Demuxing (libavcodec/av1_parse.c): ff_av1_extract_obu() removes EPB during OBU extraction. When 00 00 03 is detected, the 03 byte is skipped. Result: escaped_data/escaped_size contains clean data (EPB removed), raw_data/raw_size contains original data. thx
Jun Zhao force-pushed av1_in_ts_v2 from 4fc83b36bc
Some checks failed
/ lint (pull_request) Successful in 33s
/ pr_labeler (pull_request_target) Has been skipped
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 8m51s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m22s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 22m6s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 23m30s
to 118d052138
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Failing after 24s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 8m44s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m27s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 22m27s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m11s
2026-01-01 09:47:52 +00:00
Compare
Jun Zhao force-pushed av1_in_ts_v2 from 118d052138
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Failing after 24s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 8m44s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m27s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 22m27s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m11s
to 90a444e6ef
Some checks failed
/ pr_labeler (pull_request_target) Successful in 9s
/ lint (pull_request) Successful in 31s
/ run_fate (64, linux-amd64, shared) (pull_request) Failing after 9m9s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m26s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 22m17s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m26s
2026-01-01 11:29:04 +00:00
Compare
@ -377,3 +479,1 @@
int start_pos, type, temporal_id, spatial_id;
int len = parse_obu_header(buf, size, &obu_size, &start_pos,
&type, &temporal_id, &spatial_id);
int len = obu_parse_header(buf, size, &obu_type, &obu_size, &header_len);
Owner

Why are you reimplementing parse_obu_header() locally but with a different name? It's an inline function that can be used anywhere. Let's no duplicate stuff that can be trivially reused.

Why are you reimplementing parse_obu_header() locally but with a different name? It's an inline function that can be used anywhere. Let's no duplicate stuff that can be trivially reused.
Author
Member

I mistakenly thought this was a cross-libs call.

I mistakenly thought this was a cross-libs call.
@ -751,6 +751,7 @@ SHLIBOBJS-$(CONFIG_IMAGE_JPEGXL_PIPE_DEMUXER) += jpegxl_parse.o
SHLIBOBJS-$(CONFIG_JNI) += ffjni.o
SHLIBOBJS-$(CONFIG_JPEGXL_ANIM_DEMUXER) += jpegxl_parse.o
SHLIBOBJS-$(CONFIG_MATROSKA_DEMUXER) += mpeg4audio_sample_rates.o
SHLIBOBJS-$(CONFIG_MOV_MUXER) += cbs_av1.o startcode.o av1_parse.o
Owner

Adding cbs_av1.o here is not required. cbs_av1.c in lavf includes cbs_av1.c from lavc.

If you want CBS writing support in lavf, remove the CBS_WRITE define from libavformat/cbs.h

Adding cbs_av1.o here is not required. cbs_av1.c in lavf includes cbs_av1.c from lavc. If you want CBS writing support in lavf, remove the CBS_WRITE define from libavformat/cbs.h
Owner

Looking a bit more close, you don't need CBS writing support, so just add av1_parse.o to SHLIBOBJS-$(CONFIG_MOV_MUXER)

Looking a bit more close, you don't need CBS writing support, so just add av1_parse.o to SHLIBOBJS-$(CONFIG_MOV_MUXER)
Author
Member

cbs_av1.o can be removed, but need to keep startcode.o (for ff_startcode_find_candidate_c) av1_parse.o

cbs_av1.o can be removed, but need to keep startcode.o (for ff_startcode_find_candidate_c) av1_parse.o
@ -1,3 +1,3 @@
194cd796f3d28a890b516b2507f57180 *tests/data/lavf-fate/lavf.av1.mp4
55960 tests/data/lavf-fate/lavf.av1.mp4
d6afef355cf1bcf1a71b9cfb98c32fba *tests/data/lavf-fate/lavf.av1.mp4
55976 tests/data/lavf-fate/lavf.av1.mp4
Owner

This shouldn't happen. This test has nothing to do with mpeg-ts encapsulation, so it shouldn't insert av1_tstosection5 or be affected at all.

This shouldn't happen. This test has nothing to do with mpeg-ts encapsulation, so it shouldn't insert av1_tstosection5 or be affected at all.
Author
Member

Yes,this change is due to the current parser's support for SAR updates, as noted in the review below

Yes,this change is due to the current parser's support for SAR updates, as noted in the review below
Owner

Yes, noticed after making this comment. The updated references should be in the same commit that introduced the relevant change.

Yes, noticed after making this comment. The updated references should be in the same commit that introduced the relevant change.
Author
Member

I've messed up the submit granularity. Will fix this issue later.

I've messed up the submit granularity. Will fix this issue later.
@ -87,0 +104,4 @@
static inline int av1_is_startcode_format(const uint8_t *buf, int size)
{
return (size >= 3 && AV_RB24(buf) == 0x000001) ||
(size >= 4 && AV_RB32(buf) == 0x00000001);
Owner

I thought start code for av1 in mpegts was only 0x000001, and never 0x00000001.

I thought start code for av1 in mpegts was only 0x000001, and never 0x00000001.
Author
Member

From a specification perspective, yes. It's just that codecs like AVC and HEVC have included the same code verification logic as a feature for compatibility.

From a specification perspective, yes. It's just that codecs like AVC and HEVC have included the same code verification logic as a feature for compatibility.
Owner

AVC, HEVC and VVC Annex B define start code 0x00000001 for parameter set NALUs, and 0x000001 for every other NALU type, so it's needed for them.
For AV1 in MPEG-TS, only 0x000001 is defined. Notice how it even mentions that 0x000000 shall not happen, so a four byte start code is invalid.

AVC, HEVC and VVC Annex B define start code 0x00000001 for parameter set NALUs, and 0x000001 for every other NALU type, so it's needed for them. For AV1 in MPEG-TS, only 0x000001 is defined. Notice how it even mentions that 0x000000 shall not happen, so a four byte start code is invalid.
Author
Member

fixed, now implemented stricter checks in the code, as you suggested.

fixed, now implemented stricter checks in the code, as you suggested.
@ -789,0 +757,4 @@
// For extradata, try removing trailing padding bytes
size_t trimmed_size = size;
while (trimmed_size > 0 && data[trimmed_size - 1] == 0x00) {
trimmed_size--;
Owner

Can you explain this? In what scenario extradata would have trailing zeroes and why would it make ff_av1_packet_split() fail?

Can you explain this? In what scenario extradata would have trailing zeroes and why would it make ff_av1_packet_split() fail?
Author
Member

fixed

fixed
@ -733,2 +729,2 @@
goto fail;
}
// If version is not 1, this might be raw OBU data that happens to
// have the high bit set. Try parsing it as raw OBU data instead.
Owner

In what scenario the first byte in extradata could have the very first bit set with config_record_version != 1 that we could want to handle?
That bit being set is strictly for AV1CodecConfigurationRecord, so it should not be attempted to be parsed as anything else.

In what scenario the first byte in extradata could have the very first bit set with config_record_version != 1 that we could want to handle? That bit being set is strictly for AV1CodecConfigurationRecord, so it should not be attempted to be parsed as anything else.
Author
Member

Will fix, thx

Will fix, thx
@ -136,1 +136,4 @@
ctx->picture_structure = AV_PICTURE_STRUCTURE_FRAME;
/* Extract SAR from render_size if different from frame_size */
if (av1->render_width && av1->render_height &&
Owner

No need for this check. None of these will be zero. Also, don't use av1->render_*, use frame->render_*_minus_1 + 1. The values in CodedBitstreamAV1Context belong to the last parsed frame in a TU, which may not be the shown one.

This commit is the one changing the output of fate-lavf-fate-av1.mp4 and fate-lavf-fate-av1.mkv, so they should be updated here (And also, ensure the new output is correct).

No need for this check. None of these will be zero. Also, don't use `av1->render_*`, use `frame->render_*_minus_1 + 1`. The values in `CodedBitstreamAV1Context` belong to the last parsed frame in a TU, which may not be the shown one. This commit is the one changing the output of `fate-lavf-fate-av1.mp4` and `fate-lavf-fate-av1.mkv`, so they should be updated here (And also, ensure the new output is correct).
Author
Member

Will remove the check and use frame->render_*_minus_1 + 1, thx

Will remove the check and use frame->render_*_minus_1 + 1, thx
@ -2328,0 +2440,4 @@
* Most AV1 encoders (libaom, SVT-AV1) produce single-frame TUs, so the
* current implementation works without av1_frame_split. For multi-frame TUs
* (e.g., SVC content), users should manually apply av1_frame_split with
* appropriate timestamp handling.
Owner

This is not ok. First of all, all encoders produce files with more than one frame per TU depending on encoding parameters. What's more, the sample you used for the test, av1-1-b8-05-mv.ivf, does!
Muxing valid files can't depend on users knowing when to insert a bitstream filter and handle timestamps. Either we do it in a compliant way, or we don't do it at all.

So my suggestion is, if you can't implement https://aomediacodec.github.io/av1-mpeg2-ts/#assignment-of-dts-and-pts, then we should skip adding muxing altogether, and only introduce demuxing (Which should always use av1_frame_merge). FFmpeg must not be the source of an incomplete implementation and invalid files. The end result will be readers being written to handle libavformat created files rather than spec compliant files.

This is not ok. First of all, all encoders produce files with more than one frame per TU depending on encoding parameters. What's more, the sample you used for the test, av1-1-b8-05-mv.ivf, does! Muxing valid files can't depend on users knowing when to insert a bitstream filter and handle timestamps. Either we do it in a compliant way, or we don't do it at all. So my suggestion is, if you can't implement https://aomediacodec.github.io/av1-mpeg2-ts/#assignment-of-dts-and-pts, then we should skip adding muxing altogether, and only introduce demuxing (Which should always use av1_frame_merge). FFmpeg must not be the source of an incomplete implementation and invalid files. The end result will be readers being written to handle libavformat created files rather than spec compliant files.
Author
Member

I haven't found a straightforward way to handle DTS and PTS in the MPEG-TS muxer. As a result, this commit doesn't support AV1 in the MPEG-TS muxer yet. I have validated other features using an experimental version of AV1 in the MPEG-TS muxer.

I haven't found a straightforward way to handle DTS and PTS in the MPEG-TS muxer. As a result, this commit doesn't support AV1 in the MPEG-TS muxer yet. I have validated other features using an experimental version of AV1 in the MPEG-TS muxer.
Owner

This crashes:

==77044== Invalid read of size 4
==77044==    at 0x92F649: get_bits (get_bits.h:342)
==77044==    by 0x93137C: cbs_av1_get_payload_bytes_left (cbs_av1.c:472)
==77044==    by 0x93B645: cbs_av1_read_metadata_unknown (cbs_av1_syntax_template.c:2064)
==77044==    by 0x93B8C0: cbs_av1_read_metadata_obu (cbs_av1_syntax_template.c:2102)
==77044==    by 0x949673: cbs_av1_read_unit (cbs_av1.c:984)
==77044==    by 0x92758B: cbs_read_fragment_content (cbs.c:221)
==77044==    by 0x927879: cbs_read_data (cbs.c:289)
==77044==    by 0x92795F: ff_cbs_read_packet (cbs.c:314)
==77044==    by 0x8F50DC: av1_receive_frame (av1dec.c:1523)
==77044==    by 0xA0F09D: ff_decode_receive_frame_internal (decode.c:625)
==77044==    by 0xA0F1C1: decode_receive_frame_internal (decode.c:658)
==77044==    by 0xA0F4D2: avcodec_send_packet (decode.c:734)
==77044==  Address 0x9caa0b6 is 838 bytes inside a block of size 841 alloc'd
==77044==    at 0x484DB80: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==77044==    by 0x14D7FBE: av_realloc (mem.c:164)
==77044==    by 0x14B2960: av_buffer_realloc (buffer.c:192)
==77044==    by 0x705EF3: ebml_read_binary (matroskadec.c:1091)
==77044==    by 0x706EF5: ebml_parse (matroskadec.c:1488)
==77044==    by 0x70FBC8: matroska_parse_cluster (matroskadec.c:4277)
==77044==    by 0x70FDD1: matroska_read_packet (matroskadec.c:4321)
==77044==    by 0x68A48A: ff_read_packet (demux.c:659)
==77044==    by 0x68D4B7: read_frame_internal (demux.c:1381)
==77044==    by 0x692A10: avformat_find_stream_info (demux.c:2781)
==77044==    by 0x25A106: ifile_open (ffmpeg_demux.c:1995)
==77044==    by 0x27D94C: open_files (ffmpeg_opt.c:1457)
==77044== 
==77044== Conditional jump or move depends on uninitialised value(s)
==77044==    at 0x93137F: cbs_av1_get_payload_bytes_left (cbs_av1.c:472)
==77044==    by 0x93B645: cbs_av1_read_metadata_unknown (cbs_av1_syntax_template.c:2064)
==77044==    by 0x93B8C0: cbs_av1_read_metadata_obu (cbs_av1_syntax_template.c:2102)
==77044==    by 0x949673: cbs_av1_read_unit (cbs_av1.c:984)
==77044==    by 0x92758B: cbs_read_fragment_content (cbs.c:221)
==77044==    by 0x927879: cbs_read_data (cbs.c:289)
==77044==    by 0x92795F: ff_cbs_read_packet (cbs.c:314)
==77044==    by 0x8F50DC: av1_receive_frame (av1dec.c:1523)
==77044==    by 0xA0F09D: ff_decode_receive_frame_internal (decode.c:625)
==77044==    by 0xA0F1C1: decode_receive_frame_internal (decode.c:658)
==77044==    by 0xA0F4D2: avcodec_send_packet (decode.c:734)
==77044==    by 0x69068C: try_decode_frame (demux.c:2187)
==77044== 
==77044== Invalid read of size 8
==77044==    at 0x926B53: get_bits_long (get_bits.h:436)
==77044==    by 0x928945: cbs_read_unsigned (cbs.c:633)
==77044==    by 0x928AAB: ff_cbs_read_unsigned (cbs.c:653)
==77044==    by 0x93B6DB: cbs_av1_read_metadata_unknown (cbs_av1_syntax_template.c:2073)
==77044==    by 0x93B8C0: cbs_av1_read_metadata_obu (cbs_av1_syntax_template.c:2102)
==77044==    by 0x949673: cbs_av1_read_unit (cbs_av1.c:984)
==77044==    by 0x92758B: cbs_read_fragment_content (cbs.c:221)
==77044==    by 0x927879: cbs_read_data (cbs.c:289)
==77044==    by 0x92795F: ff_cbs_read_packet (cbs.c:314)
==77044==    by 0x8F50DC: av1_receive_frame (av1dec.c:1523)
==77044==    by 0xA0F09D: ff_decode_receive_frame_internal (decode.c:625)
==77044==    by 0xA0F1C1: decode_receive_frame_internal (decode.c:658)
==77044==  Address 0x9caa0b2 is 834 bytes inside a block of size 841 alloc'd
==77044==    at 0x484DB80: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==77044==    by 0x14D7FBE: av_realloc (mem.c:164)
==77044==    by 0x14B2960: av_buffer_realloc (buffer.c:192)
==77044==    by 0x705EF3: ebml_read_binary (matroskadec.c:1091)
==77044==    by 0x706EF5: ebml_parse (matroskadec.c:1488)
==77044==    by 0x70FBC8: matroska_parse_cluster (matroskadec.c:4277)
==77044==    by 0x70FDD1: matroska_read_packet (matroskadec.c:4321)
==77044==    by 0x68A48A: ff_read_packet (demux.c:659)
==77044==    by 0x68D4B7: read_frame_internal (demux.c:1381)
==77044==    by 0x692A10: avformat_find_stream_info (demux.c:2781)
==77044==    by 0x25A106: ifile_open (ffmpeg_demux.c:1995)
==77044==    by 0x27D94C: open_files (ffmpeg_opt.c:1457)


Bisect points to:
commit c1aba801a18b5006b750c045341ca74c686c260c
Author: Jun Zhao [email protected]
Date: Thu Jan 1 16:18:59 2026 +0800

lavc/cbs_av1: Support start code format in fragment split

Allow CBS (Coded Bitstream) to handle AV1 streams with start codes.
If start codes are detected, the splitter will look for the 0x000001
pattern instead of relying solely on OBU size fields.

Based on a patch by James Almer.

Signed-off-by: Jun Zhao <[email protected]>
This crashes: ``` ==77044== Invalid read of size 4 ==77044== at 0x92F649: get_bits (get_bits.h:342) ==77044== by 0x93137C: cbs_av1_get_payload_bytes_left (cbs_av1.c:472) ==77044== by 0x93B645: cbs_av1_read_metadata_unknown (cbs_av1_syntax_template.c:2064) ==77044== by 0x93B8C0: cbs_av1_read_metadata_obu (cbs_av1_syntax_template.c:2102) ==77044== by 0x949673: cbs_av1_read_unit (cbs_av1.c:984) ==77044== by 0x92758B: cbs_read_fragment_content (cbs.c:221) ==77044== by 0x927879: cbs_read_data (cbs.c:289) ==77044== by 0x92795F: ff_cbs_read_packet (cbs.c:314) ==77044== by 0x8F50DC: av1_receive_frame (av1dec.c:1523) ==77044== by 0xA0F09D: ff_decode_receive_frame_internal (decode.c:625) ==77044== by 0xA0F1C1: decode_receive_frame_internal (decode.c:658) ==77044== by 0xA0F4D2: avcodec_send_packet (decode.c:734) ==77044== Address 0x9caa0b6 is 838 bytes inside a block of size 841 alloc'd ==77044== at 0x484DB80: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==77044== by 0x14D7FBE: av_realloc (mem.c:164) ==77044== by 0x14B2960: av_buffer_realloc (buffer.c:192) ==77044== by 0x705EF3: ebml_read_binary (matroskadec.c:1091) ==77044== by 0x706EF5: ebml_parse (matroskadec.c:1488) ==77044== by 0x70FBC8: matroska_parse_cluster (matroskadec.c:4277) ==77044== by 0x70FDD1: matroska_read_packet (matroskadec.c:4321) ==77044== by 0x68A48A: ff_read_packet (demux.c:659) ==77044== by 0x68D4B7: read_frame_internal (demux.c:1381) ==77044== by 0x692A10: avformat_find_stream_info (demux.c:2781) ==77044== by 0x25A106: ifile_open (ffmpeg_demux.c:1995) ==77044== by 0x27D94C: open_files (ffmpeg_opt.c:1457) ==77044== ==77044== Conditional jump or move depends on uninitialised value(s) ==77044== at 0x93137F: cbs_av1_get_payload_bytes_left (cbs_av1.c:472) ==77044== by 0x93B645: cbs_av1_read_metadata_unknown (cbs_av1_syntax_template.c:2064) ==77044== by 0x93B8C0: cbs_av1_read_metadata_obu (cbs_av1_syntax_template.c:2102) ==77044== by 0x949673: cbs_av1_read_unit (cbs_av1.c:984) ==77044== by 0x92758B: cbs_read_fragment_content (cbs.c:221) ==77044== by 0x927879: cbs_read_data (cbs.c:289) ==77044== by 0x92795F: ff_cbs_read_packet (cbs.c:314) ==77044== by 0x8F50DC: av1_receive_frame (av1dec.c:1523) ==77044== by 0xA0F09D: ff_decode_receive_frame_internal (decode.c:625) ==77044== by 0xA0F1C1: decode_receive_frame_internal (decode.c:658) ==77044== by 0xA0F4D2: avcodec_send_packet (decode.c:734) ==77044== by 0x69068C: try_decode_frame (demux.c:2187) ==77044== ==77044== Invalid read of size 8 ==77044== at 0x926B53: get_bits_long (get_bits.h:436) ==77044== by 0x928945: cbs_read_unsigned (cbs.c:633) ==77044== by 0x928AAB: ff_cbs_read_unsigned (cbs.c:653) ==77044== by 0x93B6DB: cbs_av1_read_metadata_unknown (cbs_av1_syntax_template.c:2073) ==77044== by 0x93B8C0: cbs_av1_read_metadata_obu (cbs_av1_syntax_template.c:2102) ==77044== by 0x949673: cbs_av1_read_unit (cbs_av1.c:984) ==77044== by 0x92758B: cbs_read_fragment_content (cbs.c:221) ==77044== by 0x927879: cbs_read_data (cbs.c:289) ==77044== by 0x92795F: ff_cbs_read_packet (cbs.c:314) ==77044== by 0x8F50DC: av1_receive_frame (av1dec.c:1523) ==77044== by 0xA0F09D: ff_decode_receive_frame_internal (decode.c:625) ==77044== by 0xA0F1C1: decode_receive_frame_internal (decode.c:658) ==77044== Address 0x9caa0b2 is 834 bytes inside a block of size 841 alloc'd ==77044== at 0x484DB80: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==77044== by 0x14D7FBE: av_realloc (mem.c:164) ==77044== by 0x14B2960: av_buffer_realloc (buffer.c:192) ==77044== by 0x705EF3: ebml_read_binary (matroskadec.c:1091) ==77044== by 0x706EF5: ebml_parse (matroskadec.c:1488) ==77044== by 0x70FBC8: matroska_parse_cluster (matroskadec.c:4277) ==77044== by 0x70FDD1: matroska_read_packet (matroskadec.c:4321) ==77044== by 0x68A48A: ff_read_packet (demux.c:659) ==77044== by 0x68D4B7: read_frame_internal (demux.c:1381) ==77044== by 0x692A10: avformat_find_stream_info (demux.c:2781) ==77044== by 0x25A106: ifile_open (ffmpeg_demux.c:1995) ==77044== by 0x27D94C: open_files (ffmpeg_opt.c:1457) ``` Bisect points to: commit c1aba801a18b5006b750c045341ca74c686c260c Author: Jun Zhao <[email protected]> Date: Thu Jan 1 16:18:59 2026 +0800 lavc/cbs_av1: Support start code format in fragment split Allow CBS (Coded Bitstream) to handle AV1 streams with start codes. If start codes are detected, the splitter will look for the 0x000001 pattern instead of relying solely on OBU size fields. Based on a patch by James Almer. Signed-off-by: Jun Zhao <[email protected]>
Owner

@michaelni wrote in #21307 (comment):

This crashes:

A Fate test or some sample?

@michaelni wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21107: > This crashes: A Fate test or some sample?
Author
Member

Could you kindly send me the reproduction command and the
corresponding test stream privately? @Michael Niedermayer

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer
Owner

@mypopydev wrote in #21307 (comment):

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer

sample sent privately to james and jun
the command line is boring its just
valgrind ./ffmpeg_g -i sample

@mypopydev wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21115: > Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample
Owner

@michaelni wrote in #21307 (comment):

@mypopydev wrote in #21307 (comment):

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer

sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample

fwiw, the failure happens in c1aba801a1 but not in my original commit jamrial/FFmpeg@d235a48dc0 that @mypopydev modified for this PR.

@michaelni wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21129: > @mypopydev wrote in #21307 (comment): > > > Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer > > sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample fwiw, the failure happens in c1aba801a1 but not in my original commit https://code.ffmpeg.org/jamrial/FFmpeg/commit/d235a48dc04f21a8e303e264af01c909903abb70 that @mypopydev modified for this PR.
Author
Member

@michaelni wrote in #21307 (comment):

@mypopydev wrote in #21307 (comment):

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer

sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample

thx,I will investigate the cause of this issue.

@michaelni wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21129: > @mypopydev wrote in #21307 (comment): > > > Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer > > sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample thx,I will investigate the cause of this issue.
Jun Zhao force-pushed av1_in_ts_v2 from e3b2feff13
All checks were successful
/ lint (pull_request) Successful in 30s
/ run_fate (64, linux-aarch64, static) (pull_request) Successful in 11m23s
/ run_fate (64, linux-amd64, shared) (pull_request) Successful in 15m30s
/ run_fate (32, linux-amd64, static) (pull_request) Successful in 23m7s
/ run_fate_full (ghcr.io/btbn/ffmpeg-builds/win64-gpl:latest, wine) (pull_request) Successful in 25m14s
/ pr_labeler (pull_request_target) Has been skipped
Autolabel / Labeler (pull_request_target) Has been skipped
to 028dfedf7a
Some checks failed
Lint / Pre-Commit (pull_request) Failing after 38s
Autolabel / Labeler (pull_request_target) Has been skipped
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Failing after 9m9s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m28s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 23m21s
Test / Fate (Full, wine) (pull_request) Successful in 24m56s
2026-01-05 14:48:51 +00:00
Compare
Author
Member

@jamrial wrote in #21307 (comment):

@michaelni wrote in #21307 (comment):

@mypopydev wrote in #21307 (comment):

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer

sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample

fwiw, the failure happens in c1aba801a1 but not in my original commit jamrial/FFmpeg@d235a48dc0 that @mypopydev modified for this PR.

fixed, and fix a new crash by 03b93d6d2e

@jamrial wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21138: > @michaelni wrote in #21307 (comment): > > > @mypopydev wrote in #21307 (comment): > > > Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer > > > > > > sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample > > fwiw, the failure happens in [`c1aba801a1`](/FFmpeg/FFmpeg/commit/c1aba801a1) but not in my original commit [`jamrial/FFmpeg@d235a48dc0`](https://code.ffmpeg.org/jamrial/FFmpeg/commit/d235a48dc04f21a8e303e264af01c909903abb70) that @mypopydev modified for this PR. fixed, and fix a new crash by 03b93d6d2e
Jun Zhao force-pushed av1_in_ts_v2 from 028dfedf7a
Some checks failed
Lint / Pre-Commit (pull_request) Failing after 38s
Autolabel / Labeler (pull_request_target) Has been skipped
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Failing after 9m9s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m28s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 23m21s
Test / Fate (Full, wine) (pull_request) Successful in 24m56s
to e0b71d6f82
Some checks failed
Autolabel / Labeler (pull_request_target) Successful in 9s
Lint / Pre-Commit (pull_request) Failing after 35s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m32s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 15m12s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 22m38s
Test / Fate (Full, wine) (pull_request) Successful in 24m30s
2026-01-06 02:44:28 +00:00
Compare
Jun Zhao force-pushed av1_in_ts_v2 from e0b71d6f82
Some checks failed
Autolabel / Labeler (pull_request_target) Successful in 9s
Lint / Pre-Commit (pull_request) Failing after 35s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m32s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 15m12s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 22m38s
Test / Fate (Full, wine) (pull_request) Successful in 24m30s
to ecaa9bad6a
All checks were successful
Lint / Pre-Commit (pull_request) Successful in 34s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m21s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 15m33s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 22m28s
Test / Fate (Full, wine) (pull_request) Successful in 24m31s
Autolabel / Labeler (pull_request_target) Has been skipped
2026-01-06 04:41:57 +00:00
Compare
Author
Member

@jamrial wrote in #21307 (comment):

@michaelni wrote in #21307 (comment):

@mypopydev wrote in #21307 (comment):

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer

sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample

fwiw, the failure happens in c1aba801a1 but not in my original commit jamrial/FFmpeg@d235a48dc0 that @mypopydev modified for this PR.

Any other comments?

@jamrial wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21138: > @michaelni wrote in #21307 (comment): > > > @mypopydev wrote in #21307 (comment): > > > Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer > > > > > > sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample > > fwiw, the failure happens in [`c1aba801a1`](/FFmpeg/FFmpeg/commit/c1aba801a1) but not in my original commit [`jamrial/FFmpeg@d235a48dc0`](https://code.ffmpeg.org/jamrial/FFmpeg/commit/d235a48dc04f21a8e303e264af01c909903abb70) that @mypopydev modified for this PR. Any other comments?
Jun Zhao force-pushed av1_in_ts_v2 from ecaa9bad6a
All checks were successful
Lint / Pre-Commit (pull_request) Successful in 34s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m21s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 15m33s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 22m28s
Test / Fate (Full, wine) (pull_request) Successful in 24m31s
Autolabel / Labeler (pull_request_target) Has been skipped
to fa447a5267
All checks were successful
Lint / Pre-Commit (pull_request) Successful in 42s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m33s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 15m28s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 21m28s
Test / Fate (Full, wine) (pull_request) Successful in 25m15s
Autolabel / Labeler (pull_request_target) Has been skipped
2026-01-10 03:15:45 +00:00
Compare
Author
Member

@mypopydev wrote in #21307 (comment):

@jamrial wrote in #21307 (comment):

@michaelni wrote in #21307 (comment):

@mypopydev wrote in #21307 (comment):

Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer

sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample

fwiw, the failure happens in c1aba801a1 but not in my original commit jamrial/FFmpeg@d235a48dc0 that @mypopydev modified for this PR.

Any other comments?

Ping :)

@mypopydev wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21705: > @jamrial wrote in #21307 (comment): > > > @michaelni wrote in #21307 (comment): > > > @mypopydev wrote in #21307 (comment): > > > > Could you kindly send me the reproduction command and the corresponding test stream privately? @Michael Niedermayer > > > > > > > > > sample sent privately to james and jun the command line is boring its just valgrind ./ffmpeg_g -i sample > > > > > > fwiw, the failure happens in [`c1aba801a1`](/FFmpeg/FFmpeg/commit/c1aba801a1) but not in my original commit [`jamrial/FFmpeg@d235a48dc0`](https://code.ffmpeg.org/jamrial/FFmpeg/commit/d235a48dc04f21a8e303e264af01c909903abb70) that @mypopydev modified for this PR. > > Any other comments? Ping :)
@ -1006,0 +1010,4 @@
When remuxing to other containers (MP4, MKV, FLV, IVF, etc.), the
@code{av1_tstosection5} bitstream filter is automatically inserted.
Member

IMHO this is still unneeded. Even mentioning AV1 support is questionable, we don't mention other codecs we support in mpegts, yet we support plenty...

IMHO this is still unneeded. Even mentioning AV1 support is questionable, we don't mention other codecs we support in mpegts, yet we support plenty...
Author
Member

I can simplify this part. thx

I can simplify this part. thx
Author
Member

@cus wrote in #21307 (comment):

IMHO this is still unneeded. Even mentioning AV1 support is questionable, we don't mention other codecs we support in mpegts, yet we support plenty...

Done

@cus wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-21915: > IMHO this is still unneeded. Even mentioning AV1 support is questionable, we don't mention other codecs we support in mpegts, yet we support plenty... Done
Author
Member

Any other comments?thx @jamrial @cus

Any other comments?thx @jamrial @cus
Jun Zhao force-pushed av1_in_ts_v2 from fa447a5267
All checks were successful
Lint / Pre-Commit (pull_request) Successful in 42s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m33s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 15m28s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 21m28s
Test / Fate (Full, wine) (pull_request) Successful in 25m15s
Autolabel / Labeler (pull_request_target) Has been skipped
to c1d816b01b
All checks were successful
Lint / Pre-Commit (pull_request) Successful in 26s
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m33s
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 15m1s
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 21m36s
Test / Fate (Full, wine) (pull_request) Successful in 25m6s
Autolabel / Labeler (pull_request_target) Successful in 10s
2026-01-12 03:16:24 +00:00
Compare
Member

@mypopydev Could you please test whether your codes work for av1_d3d12va encoder?

The sample command line:

ffmpeg -hwaccel d3d12va -hwaccel_output_format d3d12 -i input_h264.mp4 -c:v av1_d3d12va -rc_mode VBR -b:v 3M -g 120 -bf 0 -y av1_output.ts

Thx.

@mypopydev Could you please test whether your codes work for av1_d3d12va encoder? The sample command line: ffmpeg -hwaccel d3d12va -hwaccel_output_format d3d12 -i input_h264.mp4 -c:v av1_d3d12va -rc_mode VBR -b:v 3M -g 120 -bf 0 -y av1_output.ts Thx.
Member

I found the av1 stream encoded by av1_d3d12va and av1_vaapi can't use mkv or mp4 container, there were errors, while there was s no such kind of issue for libaom-av1 encoder and .

I checked the syntax, I found they are different.

For av1_d3d12va and av1_vaapi, the structure is:
OBU_FRAME_HEADER
OBU_TILE_GROUP
OBU_TD
OBU_FRAME_HEADER
OBU_TILE_GROUP
OBU_TD
OBU_FRAME_HEADER
OBU_TILE_GROUP
OBU_TD
...

For libaom-av1, the structure is:
OBU_FRAME
OBU_FRAME
OBU_FRAME
...

I think the current mkv and mp4 container don't support the structure of av1_d3d12va and av1_vaapi although this structure is valid.

Because you are supporting mpeg2 ts container right now, maybe this information will be useful to you.

I found the av1 stream encoded by av1_d3d12va and av1_vaapi can't use mkv or mp4 container, there were errors, while there was s no such kind of issue for libaom-av1 encoder and . I checked the syntax, I found they are different. For av1_d3d12va and av1_vaapi, the structure is: OBU_FRAME_HEADER OBU_TILE_GROUP OBU_TD OBU_FRAME_HEADER OBU_TILE_GROUP OBU_TD OBU_FRAME_HEADER OBU_TILE_GROUP OBU_TD ... For libaom-av1, the structure is: OBU_FRAME OBU_FRAME OBU_FRAME ... I think the current mkv and mp4 container don't support the structure of av1_d3d12va and av1_vaapi although this structure is valid. Because you are supporting mpeg2 ts container right now, maybe this information will be useful to you.
Owner

@younengxiao wrote in #21307 (comment):

I found the av1 stream encoded by av1_d3d12va and av1_vaapi can't use mkv or mp4 container, there were errors, while there was s no such kind of issue for libaom-av1 encoder and .

I checked the syntax, I found they are different.

Both those coded OBU orders are valid.

I think the current mkv and mp4 container don't support the structure of av1_d3d12va and av1_vaapi although this structure is valid.

It should, i don't see why it would not, as long as it includes a sequence header in some form.

Because you are supporting mpeg2 ts container right now, maybe this information will be useful to you.

This PR does not include muxing in TS. Supporting that is not trivial.

@younengxiao wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-24017: > I found the av1 stream encoded by av1_d3d12va and av1_vaapi can't use mkv or mp4 container, there were errors, while there was s no such kind of issue for libaom-av1 encoder and . > > I checked the syntax, I found they are different. Both those coded OBU orders are valid. > I think the current mkv and mp4 container don't support the structure of av1_d3d12va and av1_vaapi although this structure is valid. It should, i don't see why it would not, as long as it includes a sequence header in some form. > Because you are supporting mpeg2 ts container right now, maybe this information will be useful to you. This PR does not include muxing in TS. Supporting that is not trivial.
Contributor

It seems like this PR wants to add a second way for how AV1 is put in AVPackets, namely with the start code format, similarly to how we support ISOBMFF and annex B framing for H2645. But why should we add this complexity everywhere instead of only exporting the data in low-overhead format from every demuxer (even if this entails two unnecessary repacketization steps for certain remuxing scenarios)?

It seems like this PR wants to add a second way for how AV1 is put in AVPackets, namely with the start code format, similarly to how we support ISOBMFF and annex B framing for H2645. But why should we add this complexity everywhere instead of only exporting the data in low-overhead format from every demuxer (even if this entails two unnecessary repacketization steps for certain remuxing scenarios)?
Owner

@mkver wrote in #21307 (comment):

It seems like this PR wants to add a second way for how AV1 is put in AVPackets, namely with the start code format, similarly to how we support ISOBMFF and annex B framing for H2645. But why should we add this complexity everywhere instead of only exporting the data in low-overhead format from every demuxer (even if this entails two unnecessary repacketization steps for certain remuxing scenarios)?

Unless i understood it wrong, being in mpegts means packets may not be complete and require assembling. I'm not 100% sure if there's anything in the mpeg-ts spec that states packets should be complete and readers should read them fully, but at least for h26x this is not the case. And the fact this av1 in ts spec came up with the start code framing hints that it'd be the same here.

If the above is true, then we can't remove the start code framing within the demuxer, and instead require an AVParser to assemble full AUs, which will retain the start code and emulation prevention bytes. I already wrote one, but since there are no samples and seemingly nobody can say if this draft spec is actually used in real world scenarios, i didn't bother to post it.

@mkver wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-24503: > It seems like this PR wants to add a second way for how AV1 is put in AVPackets, namely with the start code format, similarly to how we support ISOBMFF and annex B framing for H2645. But why should we add this complexity everywhere instead of only exporting the data in low-overhead format from every demuxer (even if this entails two unnecessary repacketization steps for certain remuxing scenarios)? Unless i understood it wrong, being in mpegts means packets may not be complete and require assembling. I'm not 100% sure if there's anything in the mpeg-ts spec that states packets should be complete and readers should read them fully, but at least for h26x this is not the case. And the fact this av1 in ts spec came up with the start code framing hints that it'd be the same here. If the above is true, then we can't remove the start code framing within the demuxer, and instead require an AVParser to assemble full AUs, which will retain the start code and emulation prevention bytes. I already wrote one, but since there are no samples and seemingly nobody can say if this draft spec is actually used in real world scenarios, i didn't bother to post it.
Member

@jamrial wrote in #21307 (comment):

@mkver wrote in #21307 (comment):

It seems like this PR wants to add a second way for how AV1 is put in AVPackets, namely with the start code format, similarly to how we support ISOBMFF and annex B framing for H2645. But why should we add this complexity everywhere instead of only exporting the data in low-overhead format from every demuxer (even if this entails two unnecessary repacketization steps for certain remuxing scenarios)?

Unless i understood it wrong, being in mpegts means packets may not be complete and require assembling. I'm not 100% sure if there's anything in the mpeg-ts spec that states packets should be complete and readers should read them fully, but at least for h26x this is not the case. And the fact this av1 in ts spec came up with the start code framing hints that it'd be the same here.

If the above is true, then we can't remove the start code framing within the demuxer, and instead require an AVParser to assemble full AUs, which will retain the start code and emulation prevention bytes. I already wrote one, but since there are no samples and seemingly nobody can say if this draft spec is actually used in real world scenarios, i didn't bother to post it.

"I'm not 100% sure if there's anything in the mpeg-ts spec that states packets should be complete and readers should read them fully, ": No, there is no this requirement in MPEG-2 TS (13818-1) spec.
There are two layer of packets in MPEG-2 TS: TS packet (usually fix size of 188 byte) and PES packet. One PES packet usually crosses multiple TS packets. One video frame can either in one PES packet, or cross more than 1 PES packet. One PES packet can carry one video frame or multiple video frames.

@jamrial wrote in https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307#issuecomment-24507: > @mkver wrote in #21307 (comment): > > > It seems like this PR wants to add a second way for how AV1 is put in AVPackets, namely with the start code format, similarly to how we support ISOBMFF and annex B framing for H2645. But why should we add this complexity everywhere instead of only exporting the data in low-overhead format from every demuxer (even if this entails two unnecessary repacketization steps for certain remuxing scenarios)? > > Unless i understood it wrong, being in mpegts means packets may not be complete and require assembling. I'm not 100% sure if there's anything in the mpeg-ts spec that states packets should be complete and readers should read them fully, but at least for h26x this is not the case. And the fact this av1 in ts spec came up with the start code framing hints that it'd be the same here. > > If the above is true, then we can't remove the start code framing within the demuxer, and instead require an AVParser to assemble full AUs, which will retain the start code and emulation prevention bytes. I already wrote one, but since there are no samples and seemingly nobody can say if this draft spec is actually used in real world scenarios, i didn't bother to post it. "I'm not 100% sure if there's anything in the mpeg-ts spec that states packets should be complete and readers should read them fully, ": No, there is no this requirement in MPEG-2 TS (13818-1) spec. There are two layer of packets in MPEG-2 TS: TS packet (usually fix size of 188 byte) and PES packet. One PES packet usually crosses multiple TS packets. One video frame can either in one PES packet, or cross more than 1 PES packet. One PES packet can carry one video frame or multiple video frames.
Jun Zhao changed title from av1_in_ts_v2 to WIP: av1_in_ts_v2 2026-04-09 09:59:00 +00:00
All checks were successful
Lint / Pre-Commit (pull_request) Successful in 26s
Required
Details
Test / Fate (linux-aarch64, static, 64 bit) (pull_request) Successful in 11m33s
Required
Details
Test / Fate (linux-amd64, shared, 64 bit) (pull_request) Successful in 15m1s
Required
Details
Test / Fate (linux-amd64, static, 32 bit) (pull_request) Successful in 21m36s
Required
Details
Test / Fate (Full, wine) (pull_request) Successful in 25m6s
Required
Details
Autolabel / Labeler (pull_request_target) Successful in 10s
This pull request has changes conflicting with the target branch.
  • libavcodec/Makefile
  • libavcodec/cbs_av1.c
  • libavformat/Makefile
  • libavformat/movenc.c
  • tests/ref/lavf-fate/av1.mp4
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'av1_in_ts_v2:mypopydev-av1_in_ts_v2'
git switch 'mypopydev-av1_in_ts_v2'
Sign in to join this conversation.
No milestone
No assignees
8 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
FFmpeg/FFmpeg!21307
No description provided.