From ffe7580d15e33dc69ea8d0c0d836a8a90d8aea94 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sun, 15 Nov 2026 04:48:16 -0800 Subject: [PATCH 1/4] chore(quest): claim quest/m1/ts-open-gop-trim.md Quest-Claim: c61129c68ffb843d From 92ba1c4540369e4c51ab386d9ee1b1f7645363ab Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sun, 15 Nov 2026 04:57:12 -0800 Subject: [PATCH 2/4] fix(moq-mux): TS export forwards MPEG-2 video whole, no open-GOP trimming Drop the MPEG-2 picture-header parser that trimmed open-GOP leading B-pictures on every frame, its tests, and the recovery harness's MPEG-2 profile. HEVC RASL and H.264 open-GOP trimming stay. Co-Authored-By: Claude Opus 5.5 --- quest/m1/ts-open-gop-trim.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 quest/m1/ts-open-gop-trim.md diff --git a/quest/m1/ts-open-gop-trim.md b/quest/m1/ts-open-gop-trim.md deleted file mode 100644 index 70f835aa7aa..00000000000 --- a/quest/m1/ts-open-gop-trim.md +++ /dev/null @@ -1,21 +0,0 @@ -# [XS] TS export stops trimming MPEG-2 open-GOP leading pictures - -## Goal - -The TS export forwards MPEG-2 video as whole PES without parsing picture -headers, unless a consumer that needs leading B-pictures trimmed is named. - -## Plan - -Found 2026-11-14 by the [feature review](/quest/m3/release/feature-review.md). -[moq-dev/moq#7365](https://github.com/moq-dev/moq/pull/7365) added -`Mpeg2Picture` to `rs/moq-mux/src/container/ts/export.rs`, a picture-header -parser that runs on every MPEG-2 video frame, plus 153 test lines. Its own -quest called it "Low priority: decoders usually skip these B-pictures", and no -consumer asked for it. Delete the parser, its call, and its tests; HEVC RASL -trimming, which the guide's evidence table also names, stays. - -Decided 2026-11-14 (maintainer, pick on [moq-dev/moq#8764](https://github.com/moq-dev/moq/pull/8764)): ✅ delete it (rejected: name a consumer). - -Public API: none. Wire: none. - From b2a93ab520e0fc894c42ed7ade5eeaf9d1b400f6 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sun, 15 Nov 2026 04:57:21 -0800 Subject: [PATCH 3/4] fix(moq-mux): drop the MPEG-2 picture-header parser from the TS export The code half of the previous commit, whose staging missed it. Co-Authored-By: Claude Opus 5.5 --- doc/bin/ts.md | 5 +- rs/moq-mux/src/container/ts/export.rs | 179 +------------------ rs/moq-mux/src/container/ts/recovery_test.rs | 68 +------ 3 files changed, 18 insertions(+), 234 deletions(-) diff --git a/doc/bin/ts.md b/doc/bin/ts.md index daa351a2626..cda5c4104f0 100644 --- a/doc/bin/ts.md +++ b/doc/bin/ts.md @@ -179,8 +179,9 @@ what the network drops, so random packet loss alone loses no content. hole longer than the export can pad over skips PCR slots, and then the first PCR after them flags the clock jump. PAT/PMT versions do not change either way. A group cut short keeps what arrived. Video resumes at its next - keyframe, dropping orphaned leading pictures; other tracks carry on. On a path slower than the media, whole groups - are shed and the latency holds. After an outage that exhausts the buffered + keyframe, dropping H.264 and H.265 leading pictures that reference the group + before; MPEG-2 video goes out whole. Other tracks carry on. On a path slower + than the media, whole groups are shed and the latency holds. After an outage that exhausts the buffered media, overdue padding can arrive in a burst when media resumes. - **Passthrough:** surviving packets go out unchanged, on their source schedule. A missing interval stays missing: the export never repairs continuity counters, diff --git a/rs/moq-mux/src/container/ts/export.rs b/rs/moq-mux/src/container/ts/export.rs index d397e5fc0a4..a01195453bd 100644 --- a/rs/moq-mux/src/container/ts/export.rs +++ b/rs/moq-mux/src/container/ts/export.rs @@ -371,13 +371,6 @@ struct Track { settle: bool, /// The PTS of the last keyframe queued, which leading pictures present before. keyframe: Option, - /// The `temporal_reference` of the I-picture the last MPEG-1/2 video group opened on, when - /// its GOP is open: the B-pictures presented before it reference the group before. - open_gop: Option, - /// The last MPEG-1/2 video PES read holds only pictures of the group before's: B-pictures - /// presented before the open GOP's I-picture, or the tail of one. The next PES's tail of - /// its last picture is one too. - orphan: bool, /// What the catalog and the SPS declare about the video's reordering. timing: Timing, /// The receiver's buffers for an audio or verbatim track; video's come from [`Timing`]. @@ -438,8 +431,6 @@ impl Track { held: None, settle: false, keyframe: None, - open_gop: None, - orphan: false, timing: Timing::default(), buffer: None, pack: None, @@ -470,13 +461,8 @@ impl Track { self.keyframe = None; self.leading_floor = None; } - // MPEG-1/2 video is placed, so its pictures rather than its timestamps say what leads. - let stream_type = match self.kind { - Kind::Video(stream_type) => Some(stream_type), - Kind::PesPacket { - stream_type: 0x01 | 0x02, - } => None, - _ => return self.push(name, pending, None, None, jitter), + let Kind::Video(stream_type) = self.kind else { + return self.push(name, pending, None, None, jitter); }; // A declared endpoint increments both counters; only delivery loss arms recovery. let gap = pending.skip.saturating_sub(pending.restart); @@ -485,30 +471,10 @@ impl Track { let ahead = self.held == Some(pending.cut); self.leading_floor = recover.then_some((pending.frame.timestamp, ahead)); } - let leading = match stream_type { - Some(stream_type) => { - self.leading_floor - .is_some_and(|(floor, _)| pending.frame.timestamp < floor) - && !radl(stream_type, self.source.description(), &pending.frame) - } - None => { - let (payload, after) = (&pending.frame.payload, self.orphan); - let pictures = Mpeg2Picture::read(payload); - if pending.frame.keyframe { - self.open_gop = (pictures.first()) - .filter(|picture| picture.gop == Some(false)) - .map(|picture| picture.temporal_reference); - } else if pictures.iter().any(|picture| picture.gop.is_some()) { - // A GOP inside the group: its leading pictures reference only the group's own. - self.open_gop = None; - } - // A PES that also holds a picture others reference goes out whole, its orphans - // with it. - self.orphan = !pending.frame.keyframe - && (self.open_gop).is_some_and(|opened| Mpeg2Picture::orphaned(payload, opened, after)); - self.orphan - } - }; + let leading = self + .leading_floor + .is_some_and(|(floor, _)| pending.frame.timestamp < floor) + && !radl(stream_type, self.source.description(), &pending.frame); if let Some((_, ahead)) = self.leading_floor && leading { @@ -524,9 +490,6 @@ impl Track { }; } self.held = Some(pending.cut); - let Some(stream_type) = stream_type else { - return self.push(name, pending, None, None, jitter); - }; if pending.frame.keyframe { self.timing.describe(stream_type, self.source.description(), name); // A group decodes on its own clock at the depth its rendition declares now. The @@ -894,8 +857,7 @@ impl Track { && self.keyframe.is_some_and(|keyframe| frame.timestamp < keyframe) && !radl(stream_type, description.as_ref(), &frame) } - // Read by [`Self::queue`] just before, for MPEG-1/2 video carried whole. - _ => self.orphan, + _ => false, }; if video && frame.keyframe { self.keyframe = Some(frame.timestamp); @@ -4860,76 +4822,6 @@ fn stream_id(kind: &Kind) -> Option { matches!(kind, Kind::Opus { .. }).then_some(StreamId::PRIVATE_STREAM_1) } -/// Where a picture of an MPEG-1/2 video PES sits in its GOP (ISO 13818-2 6.2.2.6, 6.2.3). -#[derive(Clone, Copy)] -struct Mpeg2Picture { - /// Whether a GOP header leads the picture, and if so whether it sets `closed_gop`. A leading - /// B-picture of a closed GOP references only the pictures after it. - gop: Option, - /// Its place in display order within the GOP. - temporal_reference: u16, - /// A B-picture (`picture_coding_type` 3). - bidirectional: bool, -} - -impl Mpeg2Picture { - /// Read every picture header of the whole PES `pes`, in order. `broken_link` is the - /// encoder's own mark of an edit, so an open GOP is judged by `closed_gop` alone. - fn read(pes: &[u8]) -> Vec { - psi::PesStart::parse(pes).map_or_else(|_| Vec::new(), |start| Self::scan(start.data)) - } - - /// Read every picture header of the elementary stream `es`, in order. - fn scan(es: &[u8]) -> Vec { - let (mut pictures, mut gop) = (Vec::new(), None); - for at in memchr::memmem::find_iter(es, &[0, 0, 1]) { - match &es[at + 3..] { - // time_code is 25 bits, then closed_gop. - [0xb8, _, _, _, flags, ..] => gop = Some(flags & 0x40 != 0), - [0x00, high, low, ..] => pictures.push(Self { - gop: gop.take(), - temporal_reference: u16::from(*high) << 2 | u16::from(low >> 6), - bidirectional: (low >> 3) & 0x07 == 3, - }), - _ => {} - } - } - pictures - } - - /// Whether the PES `pes` holds only B-pictures presented before the I-picture at temporal - /// reference `opened`, or the tail of one. - /// - /// A PES need not start a picture. One opening on bytes outside any start code, or on a - /// slice before its first picture header, carries the tail of the last picture of the PES - /// before, an orphan only when that PES was one (`after`). A PES that may end inside a start - /// code or the header after it is kept, since the next PES holds the rest of a picture it - /// cannot read. Trailing zero bytes are kept too: usually stuffing, but trimming half a - /// reference picture's start code would lose it, while an orphan kept is only skipped. - fn orphaned(pes: &[u8], opened: u16, after: bool) -> bool { - let Ok(start) = psi::PesStart::parse(pes) else { - return false; - }; - let es = start.data; - let mut codes = memchr::memmem::find_iter(es, &[0, 0, 1]).peekable(); - let first = codes.peek().copied().unwrap_or(es.len()); - let opens = es[..first].iter().all(|&byte| byte == 0); - let continues = !opens - || codes - .map(|at| es.get(at + 3).copied()) - .take_while(|&code| code != Some(0x00)) - .any(|code| matches!(code, Some(0x01..=0xaf))); - // A GOP header, the longest read, ends 8 bytes after its start code begins. - let cut = es.last() == Some(&0) || memchr::memmem::rfind(es, &[0, 0, 1]).is_some_and(|at| es.len() - at < 8); - let pictures = Self::scan(es); - let tail = match continues { - true => after, - false => !pictures.is_empty(), - }; - tail && !cut && (pictures.iter()).all(|picture| picture.bidirectional && picture.temporal_reference < opened) - } -} - /// Whether a video frame is an HEVC RADL picture, which leads its keyframe but references only /// it, so it goes out wherever that keyframe does rather than being trimmed as an orphan. fn radl(stream_type: StreamType, description: Option<&Bytes>, frame: &Frame) -> bool { @@ -5187,8 +5079,8 @@ mod tests { use moq_net::Timestamp; use super::{ - Buffer, DecodeClock, Dolby, Kind, Laid, Mpeg2Picture, PSI_INTERVAL, PesPacket, Psi, Settle, dolby_removals, - due, is_complete_section, si_due, slot, unwrap_pts, verbatim_buffer, + Buffer, DecodeClock, Dolby, Kind, Laid, PSI_INTERVAL, PesPacket, Psi, Settle, dolby_removals, due, + is_complete_section, si_due, slot, unwrap_pts, verbatim_buffer, }; /// The tables as they stand take the version after the last laid, whatever was set on the @@ -5955,59 +5847,6 @@ mod tests { pes } - #[test] - fn mpeg2_orphans_are_whole_pes_of_leading_b_pictures() { - // A picture header: temporal_reference, then picture_coding_type (1 I, 2 P, 3 B). - let picture = |reference: u16, coding: u8| { - [ - 0, - 0, - 1, - 0, - (reference >> 2) as u8, - ((reference & 3) as u8) << 6 | coding << 3, - 0xff, - 0xf8, - ] - }; - let slice = [0, 0, 1, 1, 0x12, 0x34, 0x56, 0x78]; - let video = |pictures: &[&[u8]]| pes(0xe0, 0x00, &[], &pictures.concat()); - for after in [false, true] { - assert!(Mpeg2Picture::orphaned( - &video(&[&picture(0, 3), &picture(1, 3)]), - 2, - after - )); - // A B-picture presented after the I-picture references only its own GOP. - assert!(!Mpeg2Picture::orphaned(&video(&[&picture(3, 3)]), 2, after)); - // The P-picture later pictures reference keeps its PES, orphans and all. - assert!(!Mpeg2Picture::orphaned( - &video(&[&picture(0, 3), &picture(1, 3), &picture(5, 2)]), - 2, - after - )); - assert!(!Mpeg2Picture::orphaned(&video(&[]), 2, after)); - // Zero stuffing before the first start code opens no tail. - assert!(Mpeg2Picture::orphaned(&video(&[&[0], &picture(0, 3)]), 2, after)); - // Half a start code or picture header: the next PES holds a picture this one cannot - // read. - assert!(!Mpeg2Picture::orphaned(&video(&[&picture(0, 3), &[0, 0]]), 2, after)); - assert!(!Mpeg2Picture::orphaned( - &video(&[&picture(0, 3), &[0, 0, 1, 0, 0]]), - 2, - after - )); - } - // The tail of a picture the PES before began, as slices or mid-slice bytes, is an orphan - // only when that PES was: it may finish the I-picture its group opened on. - for tail in [&slice[..], &slice[4..]] { - assert!(!Mpeg2Picture::orphaned(&video(&[tail, &picture(0, 3)]), 2, false)); - assert!(Mpeg2Picture::orphaned(&video(&[tail, &picture(0, 3)]), 2, true)); - assert!(!Mpeg2Picture::orphaned(&video(&[tail]), 2, false)); - assert!(Mpeg2Picture::orphaned(&video(&[tail]), 2, true)); - } - } - #[test] fn pes_packet_validation() { // A PTS of 0x1_2345_6789 behind the '0010' prefix, read back as written. diff --git a/rs/moq-mux/src/container/ts/recovery_test.rs b/rs/moq-mux/src/container/ts/recovery_test.rs index 2b21c45c31a..5183465acb9 100644 --- a/rs/moq-mux/src/container/ts/recovery_test.rs +++ b/rs/moq-mux/src/container/ts/recovery_test.rs @@ -90,9 +90,6 @@ enum Profile { Spliced, /// [`Closed`](Self::Closed) for two minutes. Long, - /// MPEG-2 open GOP, carried as whole PES: after the first every group opens on a sequence - /// header, behind two B-pictures that reference the group before. - Mpeg2, } /// One FFmpeg encode. @@ -109,8 +106,6 @@ struct Encode { enum Video { H264(&'static str), H265(&'static str), - /// FFmpeg's `mpeg2video`, a GOP every twelve pictures, each open but the first. - Mpeg2, } impl Encode { @@ -142,16 +137,6 @@ impl Encode { x265 = format!("{params}:pools=none:frame-threads=1:log-level=error"); args.extend(["-c:v", "libx265", "-x265-params", &x265]); } - Video::Mpeg2 => args.extend([ - "-c:v", - "mpeg2video", - "-g", - "12", - "-bf", - "2", - "-sc_threshold", - "1000000000", - ]), } args.extend([ "-preset", @@ -256,7 +241,7 @@ struct Clip { impl Profile { /// The clip, loaded once per process. fn clip(self) -> &'static Clip { - static CLIPS: [std::sync::OnceLock; 9] = [const { std::sync::OnceLock::new() }; 9]; + static CLIPS: [std::sync::OnceLock; 8] = [const { std::sync::OnceLock::new() }; 8]; CLIPS[self as usize].get_or_init(|| { const CLOSED: &str = "keyint=12:min-keyint=12:scenecut=0"; const OPEN: &str = "keyint=12:min-keyint=12:scenecut=0:open-gop=1:bframes=3:b-adapt=0"; @@ -296,7 +281,6 @@ impl Profile { seconds: "120", ..encode("320x240", Video::H264(CLOSED), 0) }), - Self::Mpeg2 => whole(encode("320x240", Video::Mpeg2, 0)), } }) } @@ -311,7 +295,7 @@ impl Profile { /// Whether its leading pictures reference the group before. fn orphans(self) -> bool { - matches!(self, Self::Open | Self::Rasl | Self::Mpeg2) + matches!(self, Self::Open | Self::Rasl) } /// The PCR discontinuities the source declares. @@ -476,7 +460,7 @@ struct Recording { /// Import `profile`'s clip whole and read back every frame of every track. async fn record(profile: Profile) -> Recording { let mut broadcast = moq_net::broadcast::Info::new().produce(); - // Kept whole, however long the clip, with the `mpegts` section that carries MPEG-2 video. + // Kept whole, however long the clip, with the `mpegts` section the export reads. let config = (crate::catalog::Config::default().with_max_age(Duration::from_secs(300))) .with_catalog(Catalog::::default()); let catalog = crate::catalog::Producer::new(&mut broadcast, config).unwrap(); @@ -486,14 +470,7 @@ async fn record(profile: Profile) -> Recording { let _finished = import.finish().unwrap(); let snapshot = catalog.snapshot(); - let whole = (snapshot.ext.mpegts.tracks.iter()).filter(|(_, track)| { - track - .pes_packet - .as_ref() - .is_some_and(|pes| matches!(pes.stream_type, 0x01 | 0x02)) - }); - let names = (snapshot.video.renditions.keys().chain(whole.map(|(name, _)| name))) - .map(|name| (name.clone(), true)) + let names = (snapshot.video.renditions.keys().map(|name| (name.clone(), true))) .chain(snapshot.audio.renditions.keys().map(|name| (name.clone(), false))); let mut tracks = Vec::new(); for (name, video) in names { @@ -559,18 +536,10 @@ fn skips(starts: impl IntoIterator) -> Vec> { } /// The presentation time of a published frame, in microseconds on the catalog clock, and -/// whether it is the marker of a declared discontinuity. A whole video PES is stamped with its -/// placement, so its own PTS says when it presents. +/// whether it is the marker of a declared discontinuity. fn decoded(frame: &moq_net::frame::Frame) -> (u64, bool) { let frame = hang::container::Frame::decode(frame.payload.clone()).unwrap(); - let pts = match frame.payload.get(..4) { - Some([0, 0, 1, 0xe0..=0xef]) => { - let pts = super::psi::PesStart::parse(&frame.payload).unwrap().pts.unwrap(); - pts * 100 / 9 - } - _ => frame.timestamp.as_micros().unwrap() as u64, - }; - (pts, frame.payload.is_empty()) + (frame.timestamp.as_micros().unwrap() as u64, frame.payload.is_empty()) } /// The presentation time of a published frame, in microseconds on the catalog clock. @@ -1727,31 +1696,6 @@ async fn open_gop_trims_only_the_orphans() { assert_eq!(run.stats.release.gaps, 2); } -/// MPEG-2 open GOP, whose pictures are stamped with their placement rather than their -/// presentation: the leading B-pictures a skip or a cut orphans are trimmed, and so are those of -/// the group the export joins at, while every group after a whole one keeps its own. -#[tokio::test(start_paused = true)] -async fn mpeg2_open_gop_trims_only_the_orphans() { - let run = recover(Arm { - join: Duration::from_millis(1100), - ..arm(Profile::Mpeg2, skip_and_cut).breaks(0) - }) - .await; - let video = run.ledger(true); - let first = video.units.iter().find(|unit| unit.output).unwrap().group; - assert_eq!(first, 2, "the export joins at the group in flight"); - assert_eq!( - (leading_out(video, 2), leading_out(video, 6), leading_out(video, 9)), - (0, 0, 0), - "the orphans are trimmed" - ); - assert!( - leading_out(video, 3) > 0 && leading_out(video, 7) > 0 && leading_out(video, 10) > 0, - "a continuous group keeps them" - ); - assert_eq!(run.stats.release.gaps, 2); -} - /// HEVC open GOP: the RASL pictures a skip or a cut orphans are trimmed, a continuous CRA keeps /// its own, and the output decodes straight through the CRA it resumes at. #[tokio::test(start_paused = true)] From 187f4e90b6f15ed63e8edde2ccd8811324a491f1 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Tue, 17 Nov 2026 05:01:33 -0800 Subject: [PATCH 4/4] chore(quest): rescope the open-GOP follow-up to the H.264/HEVC join coverage The MPEG-2 trimming it planned is deleted here; only its join arms remain. Co-Authored-By: Claude Opus 5.5 --- quest/m5/pes-hold-open-gop.md | 36 ----------------------------------- quest/m5/ts-open-gop-join.md | 24 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 36 deletions(-) delete mode 100644 quest/m5/pes-hold-open-gop.md create mode 100644 quest/m5/ts-open-gop-join.md diff --git a/quest/m5/pes-hold-open-gop.md b/quest/m5/pes-hold-open-gop.md deleted file mode 100644 index 518a510b0a1..00000000000 --- a/quest/m5/pes-hold-open-gop.md +++ /dev/null @@ -1,36 +0,0 @@ -# [S] Open-GOP MPEG-2 export trims leading B-pictures in zero-stuffed CBR streams - -## Goal - -A TS export starting or resuming inside an open GOP of MPEG-2 video drops -the orphaned leading B-pictures even when their PES ends on zero stuffing, -as CBR encoders emit, without ever trimming part of a reference picture -whose start code straddles two PES packets. The H.264 and HEVC open-GOP -recovery tests also cover a join at an in-flight group. - -## Plan - -Decided 2026-10-31 (user, /quest-plan of the follow-ups from the 2026-10-31 /quest-complete run), from [moq-dev/moq#7365](https://github.com/moq-dev/moq/pull/7365), -which finished the open-GOP MPEG-2 export quest. - -[moq-dev/moq#7365](https://github.com/moq-dev/moq/pull/7365) never trims a PES that ends on a zero byte or inside a picture -header, since the next PES may hold the rest of a reference picture's start -code. Zero-stuffed CBR streams therefore keep some leading B-pictures that -decoders skip. Hold each whole-PES MPEG-2 frame until the next one arrives -(or the track ends), then decide with both in hand: if the next PES does -not continue a start code, the trailing zeros were stuffing and the orphan -can go. At the track's end nothing can prove the start code was complete, -so a held PES is kept untrimmed, as today. The cost is one PES of latency on MPEG-2 video only, which the -export's existing `PesPacketStream::hold` path -(`rs/moq-mux/src/container/ts/import.rs`) and [moq-dev/moq#7365](https://github.com/moq-dev/moq/pull/7365)'s per-track `orphan` -state in `container/ts/export.rs` should absorb; check what the hold does -to the live edge before settling it. - -Extend `mpeg2_orphans_are_whole_pes_of_leading_b_pictures` with a -zero-stuffed orphan, a P-picture start code split across PES packets, and -a held final PES ending in an incomplete start code, which stays. -For H.264 (`Open`) and HEVC (`Rasl`) in -`rs/moq-mux/src/container/ts/recovery_test.rs`, add a join with a nonzero -`join` so the export starts at an in-flight group, as the MPEG-2 arm does. - -Public API: none. Wire: none. diff --git a/quest/m5/ts-open-gop-join.md b/quest/m5/ts-open-gop-join.md new file mode 100644 index 00000000000..662f3478515 --- /dev/null +++ b/quest/m5/ts-open-gop-join.md @@ -0,0 +1,24 @@ +# [XS] TS open-GOP recovery tests cover a join at an in-flight group + +## Goal + +The H.264 open-GOP and HEVC RASL recovery tests also cover a TS export +that starts at a group already in flight, so a regression in how a join +orphans that group's leading pictures fails the merge gate. + +## Plan + +Decided 2026-10-31 (user, /quest-plan of the follow-ups from the 2026-10-31 /quest-complete run), from [moq-dev/moq#7365](https://github.com/moq-dev/moq/pull/7365). +Rescoped 2026-11-17 on [moq-dev/moq#8830](https://github.com/moq-dev/moq/pull/8830), which deleted the MPEG-2 picture parser +and the MPEG-2 recovery arm: MPEG-2 video now goes out whole, so the +original goal of trimming zero-stuffed MPEG-2 leading B-pictures is dropped, +and that arm was the only one with a nonzero `join`. + +In `rs/moq-mux/src/container/ts/recovery_test.rs`, give +`open_gop_trims_only_the_orphans` (`Profile::Open`) and +`hevc_trims_only_orphaned_rasl` (`Profile::Rasl`) an arm with a nonzero +`join` that lands inside a group, and assert what the export does with the +leading pictures of the group it starts on. Check the grader's join-group +accounting (`joined` in `recover`) models that case before relying on it. + +Public API: none. Wire: none.