Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Nicolas Gaullier via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Nicolas Gaullier <nicolas.gaullier@cji.paris>
Subject: [FFmpeg-devel] Re: [PATCH] av1_in_ts_v2 (PR #21307)
Date: Tue, 13 Jan 2026 10:50:19 +0100
Message-ID: <7e72fc96-7926-41c7-a17d-048822401f90@cji.paris> (raw)
In-Reply-To: <65245d69-f709-4ef7-a233-4a634e0cbf07@gmail.com>

On 1/12/26 22:05, James Almer via ffmpeg-devel wrote:
> On 1/12/2026 1:31 PM, Nicolas Gaullier via ffmpeg-devel wrote:
>> On 12/28/25 19:45, Jun Zhao via ffmpeg-devel wrote:
>>> PR #21307 opened by Jun Zhao (mypopydev)
>>> URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307
>>> Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21307.patch
>>>
>>> Add functions to parse AV1 OBUs in MPEG-TS start code format
>>> (0x000001 prefix). This is needed for AV1 streams from MPEG-TS
>>> containers per AOM AV1 in MPEG-2 TS specification.
>>
>> I have some questions around aligned PES and start codes; please correct
>> me if I am wrong.
>>
>> Start codes: it seems to me current PR autodetects start codes, which
>> means if a stream miss them, it would still be successfully decoded.
>> This is possible because, additionally, AV1 requires aligned PES (which
>
> Where does the spec say that?

3.4 : "All the PES shall have data_alignment_indicator set to 1. Usage 
of *data_stream_alignment_descriptor* is not specified and the only 
allowed *alignment_type* is 1 (Access unit level)."

But anyway, at the end, it does not matter if packet repacking is to be 
implemented just afterwards as you say (if I catch it correctly, it will 
be required for muxing).

> like that. We're reading a file and trying to make sense of its
> contents. What other readers can or can't do is irrelevant.

I understand your point, that makes it clear and it is ok if everybody 
is comfortable with that.

> I already wrote an implementation for Temporal Unit assembly in
> av1_parser, but I'm waiting until all is said and done, and probably an
> actual sample is provided.

This makes me think of a latest very specific question but again, I 
could be mistaken - correct me if am wrong - after this PR 21307, an 
out-of-spec stream with missing start codes will be playable (frames 
split at PES boundaries), but later on, once packet repacking 
implemented, it wont be (frames split by looking for start codes) ? In 
case I get this right, maybe the future merge of PR 21307 would have to 
be delayed until your complementary work is also ready to be merged at 
the same time ?

Nicolas

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

  reply	other threads:[~2026-01-13  9:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-28 18:45 [FFmpeg-devel] " Jun Zhao via ffmpeg-devel
2026-01-07 13:25 ` [FFmpeg-devel] " Christophe Gisquet via ffmpeg-devel
2026-01-07 23:30   ` James Almer via ffmpeg-devel
2026-01-08  1:23   ` mypopy--- via ffmpeg-devel
2026-01-08  7:32     ` Christophe Gisquet via ffmpeg-devel
2026-01-08  8:25       ` mypopy--- via ffmpeg-devel
2026-01-09 10:32       ` Nicolas Gaullier via ffmpeg-devel
2026-01-09 10:41         ` mypopy--- via ffmpeg-devel
2026-01-09 15:42         ` James Almer via ffmpeg-devel
2026-01-09 17:19           ` Nicolas Gaullier via ffmpeg-devel
2026-01-10  2:28             ` mypopy--- via ffmpeg-devel
2026-01-10  9:45             ` mypopy--- via ffmpeg-devel
2026-01-12 16:31 ` [FFmpeg-devel] " Nicolas Gaullier via ffmpeg-devel
2026-01-12 21:05   ` [FFmpeg-devel] " James Almer via ffmpeg-devel
2026-01-13  9:50     ` Nicolas Gaullier via ffmpeg-devel [this message]
2026-01-13 14:07       ` James Almer via ffmpeg-devel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e72fc96-7926-41c7-a17d-048822401f90@cji.paris \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=nicolas.gaullier@cji.paris \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git