Correzioni dopo la revisione del decodificatore H.264, dei lettori FLV e della CI (#58)

- CI: le due prove MVC di FeaturesStillToDo finivano con «da verificare: …», che
  riepilogo-prove.sh contava come saltate: ogni verifica del ramo sarebbe fallita.
  Ora cominciano con «da fare: », e lo script esenta solo le inconclusive di
  FeaturesStillToDo il cui motivo comincia con «da fare: » subito dopo la cornice
  di MSTest (prima bastava la parola in qualunque punto di qualunque prova).
  PipelineTests prova lo script su .trx con le cornici inglese e italiana;
  processo.md, Sviluppo.md e verifica.yml descrivono la categoria.
- Partizionamento dei dati: una partizione B o C sperduta (partizione A persa)
  sovrascriveva il buffer delle partizioni della slice in attesa. Ora slice_id e
  redundant_pic_cnt si leggono prima di copiare, e contano l'ordine A, B, C.
- MVC: le viste tengono insieme al massimo 2 × MaxDpbMbs di immagini, e il
  decodificatore di una vista nuova si tiene solo dopo il controllo dell'SPS di
  sottoinsieme; Wanted vale per ogni vista.
- FLV: senza durata nei metadati la durata arriva alla fine dell'ultimo
  fotogramma, come per MPEG; «solo audio» solo con una prova vera nella testa
  (un onMetaData grande non fa più scartare un video).
- Flussi di conformità: tolti i 48 readme e schede di terzi (decisione di
  Alberto: nel repository solo flussi e MD5).
- Prove nuove: partizioni A perse, limite delle viste e Wanted in MVC, unità di
  estensione troncate, flussi rovinati 4:2:2, 10 bit, 4:0:0, SVC e MVC.
- Commenti sulla provenienza che citano i file di ricostruzione ufficiali e
  §8.7 invece del decodificatore di riferimento; commento di
  ImportEnvironment.VideoProbe aggiornato; righe nuove in decisioni.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-18 19:30:45 +01:00
1 parent 6c8b228333
commit cdc3cc11b9
71 files changed
+668 -2223

No files matched your search

@@ -125,7 +125,13 @@ public sealed class LegacyContainerTests
{
var es = ElementaryStream.Load("BA1_Sony_D");
var file = LegacyTestVideos.Flv(es, metadata: false, audio: true);
var expected = Math.Round((es.Count - 1) * 1000.0 / 30) / 1000;
// The last video tag plus one frame (the interval from the tag before it), as the MPEG reader counts the last
// frame and as the metadata of the same stream say: es.Count frames at 30 per second, to the millisecond of the
// tag times.
static double Dts(int i) => Math.Round(i * 1000.0 / 30);
var expected = ((2 * Dts(es.Count - 1)) - Dts(es.Count - 2)) / 1000;
Assert.AreEqual(expected, es.Count / 30.0, 0.002, "the metadata of the same stream");
foreach (var samples in new[] { false, true })
{
var container = Read(file, samples);
@@ -162,7 +168,7 @@ public sealed class LegacyContainerTests
var container = Read(LegacyTestVideos.SorensonFlv(code, width, height));
Assert.AreEqual(VideoCodec.H263, container.Video!.Codec);
Assert.AreEqual((width, height), (container.Video.Width, container.Video.Height));
Assert.AreEqual(0.36, container.Duration!.Value.TotalSeconds, 1e-6, "dal primo all'ultimo tag");
Assert.AreEqual(0.4, container.Duration!.Value.TotalSeconds, 1e-6, "dal primo tag alla fine dell'ultimo fotogramma: dieci da 40 ms");
Assert.IsEmpty(container.Video.Samples, "solo H.264 si decodifica");
}
@@ -186,6 +192,45 @@ public sealed class LegacyContainerTests
Assert.AreEqual(MediaKind.Video, MediaSniffer.Detect(hevc)?.Kind);
}
[TestMethod]
public void AnFlvIsAudioOnlyOnlyWithProofInItsHead()
{
using var temp = new TempFolder("flv-solo-audio");
// A header that says audio without video, an onMetaData larger than the 512 bytes of MediaSniffer.HeadLength and
// video tags after it: the head ends inside the metadata, which proves nothing, so it stays a video.
var video = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 4000, seconds: 3, videoFromMs: 500);
Assert.IsGreaterThan(MediaSniffer.HeadLength, video.Length);
Assert.IsFalse(FlvReader.IsAudioOnly(video.AsSpan(0, MediaSniffer.HeadLength)));
Assert.AreEqual(MediaKind.Video, MediaSniffer.DetectFile(TestVideos.Write(temp, "video.flv", video))?.Kind);
Assert.AreEqual(MediaKind.Video, MediaSniffer.Detect(Head(video))?.Kind);
Assert.IsNotNull(Read(video).Video, "il video c'è");
// The same with audio only: a whole file, or a head with five seconds of audio and no video tag, proves it; the
// first 512 bytes, or a head that holds only a little audio after the metadata, do not.
var audio = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 4000, seconds: 8);
Assert.IsTrue(FlvReader.IsAudioOnly(audio));
Assert.IsNull(MediaSniffer.Detect(Head(audio)));
Assert.IsTrue(FlvReader.IsAudioOnly(audio.AsSpan(0, audio.Length - 100)), "più di cinque secondi di solo audio");
Assert.AreEqual(MediaKind.Video, MediaSniffer.DetectFile(TestVideos.Write(temp, "audio.flv", audio))?.Kind);
var audioStart = 13 + 11 + ((audio[14] << 16) | (audio[15] << 8) | audio[16]) + 4; // after onMetaData
Assert.IsFalse(FlvReader.IsAudioOnly(audio.AsSpan(0, audioStart + (20 * 23) + 7)), "venti tag d'audio, mezzo secondo");
Assert.IsFalse(FlvReader.IsAudioOnly(audio.AsSpan(0, 13 + 11 + 3000)), "la testa finisce dentro i metadati");
// Video after five seconds of audio alone: a head that holds it sees the video tag.
var late = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 100, seconds: 8, videoFromMs: 6000);
Assert.IsFalse(FlvReader.IsAudioOnly(late));
}
[TestMethod]
public void WithoutADurationAnAudioFlvLastsUntilItsLastFrameEnds()
{
// onMetaData without a duration and no video: the last audio tag plus the interval from the one before it.
var audio = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 0, seconds: 2);
var last = (2000 - 1) / 26 * 26;
Assert.AreEqual((last + 26) / 1000.0, Read(audio, samples: false).Duration!.Value.TotalSeconds, 1e-6);
}
// ----- MPEG program stream -----
[TestMethod]
@@ -289,6 +289,32 @@ internal static class LegacyTestVideos
return output.ToArray();
}
/// <summary>
/// An FLV whose header says audio and no video, opened by an onMetaData tag of about <paramref name="metadataBytes"/>
/// bytes (a keyframe index), then MP3 tags every 26 ms for <paramref name="seconds"/>, and from
/// <paramref name="videoFromMs"/> on (when given) H.263 video tags among them every 40 ms.
/// </summary>
public static byte[] AudioFlaggedFlv(int metadataBytes, double seconds, int? videoFromMs = null)
{
using var output = new MemoryStream();
FlvHeader(output, audio: true, video: false);
var times = Enumerable.Range(0, Math.Max(1, metadataBytes / 9)).Select(i => i * 0.04);
FlvTag(output, 18, 0, [.. AmfString("onMetaData"), 8, .. U32(1), .. AmfProperty("times", AmfArray(times)), 0, 0, 9]);
var nextVideo = videoFromMs ?? int.MaxValue;
for (var time = 0; time < seconds * 1000; time += 26)
{
while (nextVideo <= time)
{
FlvTag(output, 9, nextVideo, [0x22, 0, 0, 0x80, 0, 0x0A, 0x00, 0x00, 0x00, 0x00]);
nextVideo += 40;
}
FlvTag(output, 8, time, [0x2F, 0xFF, 0xFB, 0x90, 0x64, 0, 0, 0]); // MP3, 44 kHz, stereo
}
return output.ToArray();
}
private static void FlvHeader(MemoryStream output, bool audio, bool video)
{
output.Write("FLV"u8);
@@ -1,30 +0,0 @@
Stream Name: BA1_Sony_D
Stream Source: Sony
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 17
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: I
I Period: 0
Slices per Picture: 1
Conformance Point: JVT-G050 (2003/4/02)
POC Type: 0
Number Ref Frames: 1
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Slices per Picture: 1
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: BA3_SVA_C
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 33
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: IPB
Intra Period: 0
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: No
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: Spatial
Direct 8x8 Inference: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,34 +0,0 @@
Stream Name: BASQP1_Sony_C
Stream Source: Sony
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 4
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: I
I Period: 1
Slices per Picture: 20
Conformance Point: JVT-G050r1
POC Type: 0
Number Reference Frames: 1
IDR: First frame
Ref Pic List Reordering: No
Adaptive Ref Pic Marking Mode: Off
Constrained Intra Prediction: Off (Unconstrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
Loop Filter: ON
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Slices per Picture: 20
Arbitrary Slice Order: No
Redundant Slices: No
Test variable slice QP delta.
@@ -1,30 +0,0 @@
Stream Name: CABA1_SVA_B
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 17
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: I
Intra Period: 1
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: Yes
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: CABA2_SVA_B
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 17
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IP
Intra Period: 10
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: Yes
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: CABA3_SVA_B
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 33
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IPB
Intra Period: 10
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: Yes
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: Temporal
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: CAFI1_SVA_C
Stream Source: SVA & Tsinghua
Video Sequence: Stefan
Video Resolution: 720x480
Video Frames: 33
Frame/Field Coding: Field
Entropy Coding: CABAC
Slice Types: IPB
Intra Period: 0
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: Yes
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: Spatial
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: CAMACI3_Sony_C
Stream Source: Sony
Video Sequence: cheer_tiny
Video Resolution: 192x128
Video Frames: 17
Frame/Field Coding: Frame MB AFF
Entropy Coding: CABAC
Slice Types: IPB
I Period: 15
Slices per Picture: 1
Conformance Point: JVT-G050r1 (2003/6/02)
POC Type: 0
Number Reference Frames: 5
IDR: First frame
Ref Pic List Reordering: No
Adaptive Ref Pic Marking Mode: Off
Constrained Intra Prediction: On (Constrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: CAMASL3_Sony_B
Stream Source: Sony
Video Sequence: cheer_tiny
Video Resolution: 192x128
Video Frames: 17
Frame/Field Coding: Frame MB AFF
Entropy Coding: CABAC
Slice Types: IPB
I Period: 15
Slices per Picture: 4
Conformance Point: JVT-G050r1 (2003/6/02)
POC Type: 0
Number Reference Frames: 5
IDR: First frame
Ref Pic List Reordering: No
Adaptive Ref Pic Marking Mode: Off
Constrained Intra Prediction: Off (Unconstrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,30 +0,0 @@
Stream Name: CANL1_SVA_B
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 17
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: I
Intra Period: 1
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 2
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: Off
delta_QP always zero: Yes
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,35 +0,0 @@
Files in the folder
CAPAMA3_Sand_F_Readme.txt This file
CAPAMA3_Sand_F.264 Bitstream
CAPAMA3_Sand_F.yuv Reconstructed YUV file
CAPAMA3_Sand_F.trc Decoder trace file
----------------------------------------------------------------------
Encoder configuration:
Stream Name: CAPAMA3_Sand_F
Stream Source: Sand Video
Video Sequence: Mobile
Video Resolution: CIF
Video Frames: 30
Frame/Field Coding: Picture-level adaptive and MB-level Adaptive
Entropy Coding: CABAC
GOP Structure: IDR B B P...
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 4
IDR: First frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: No
Constrained Intra Pred: No
Weighted Pred (P): No
Weighted Bipred (B): No
Direct Prediction: Temporal
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,34 +0,0 @@
Bitstream source Mcubeworks Inc.
Bitstream CI_MW_D
Conformance Point JVT-G050r1
Profile Baseline
Video Sequence Foreman
Video Resolution/FPS QCIF / 15fps
Video Coded num. of frames 100
Entropy coding CAVLC
Slice type IPPIPP...
Picture structure Frame only
Slice structure 1 slice / picture
Intra period 30 ( = 2 sec.)
POC Type 0
Loop filter ON
Ref Pic List Reorder NO
Adapt Ref Pic Mark OFF
Weighted Pred (P) OFF
Weighted Bipred (B) OFF
Direct Prediction NO
Direct 8x8 Inference OFF
SEI NO
VUI NO
Number Slice Groups 1
Long-term Ref Frames NO
MMCO NO
Arbitrary Slice Order NO
Redundant Slices No
############ Changing Parameters ################
Num. of ref-frames 4
IDR all-I
Constrained intra ON
Non-reference frame use NO
Access unit delimiter OFF
@@ -1,30 +0,0 @@
Stream Name: CVFI1_SVA_C
Stream Source: SVA & Tsinghua
Video Sequence: Stefan
Video Resolution: 720x480
Video Frames: 7
Frame/Field Coding: Field
Entropy Coding: CAVLC
Slice Types: IP
Intra Period: 0
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 0
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: No
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,32 +0,0 @@
Stream Name: CVMAQP3_Sony_D
Stream Source: Sony
Video Sequence: cheer_tiny
Video Resolution: 192x128
Video Frames: 17
Frame/Field Coding: Frame MB AFF
Entropy Coding: CAVLC
Slice Types: IPB
I Period: 15
Slices per Picture: 1
Conformance Point: JVT-G050r1 (2003/6/02)
POC Type: 0
Number Reference Frames: 5
IDR: First frame
Ref Pic List Reordering: No
Adaptive Ref Pic Marking Mode: Off
Constrained Intra Prediction: Off (Unconstrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: None
Direct 8x8 Inference: on
Loop Filter: On
SEI: Yes
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
The QP is changed for each MB based on MB encoding order.
@@ -1,30 +0,0 @@
Stream Name: FI1_Sony_E
Stream Source: Sony
Video Sequence: Cheer
Video Resolution: 192x128
Video Frames: 17
Frame/Field Coding: Field
Entropy Coding: CAVLC
Slice Types: I
I Period: 0
Slices per Picture: 1
Conformance Point: JVT-G050r1 (2003/6/2)
POC Type: 0
Number Ref Frames: 1
IDR: No
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Slices per Picture: 1
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,23 +0,0 @@
FRANCE TELECOM R&D
-------------------
Stream Name : FM1_FT_E
Stream Source : France Telecom R&D
Video Sequence : Foreman
Video Resolution : QCIF
Video Frames : 298
FrameRate : 25 fps
Frame/Field Coding : Frame
Entropy Coding : CAVLC
POC Type : 2
Number Ref Frames : 1
IDR : Every I
Ref Pic List Reorder : No
Adapt Ref Pic Mark : No
Constrained Intra Pred : Yes
Inter Type : 16x16 8x16 16x8 8x8
Deblocking Filter : Yes
FMO : Used
SEI : Used (Gradual Recovery Procedure)
@@ -1,30 +0,0 @@
Stream Name: FM2_SVA_C
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 17
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: IP
Intra Period: 0
Slices per Picture: 3
Conformance Point: JVT-G050r1
POC Type: 1
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: No
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
SEI: No
VUI: No
Number Slice Groups: 3
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,45 +0,0 @@
Bitsteam Name :FREXT01_JVC_D
Profile :High Profile
Level :3.1
Chroma Format :4:2:0
Bit Depth :8
Sequence :Foreman
Width :352
Height :288
Num of Frames :16
Entropy Coding :CABAC
Coding Type :MBAFF
IDR Intervals :1st I picture only
POC type :0
Slice per Pic :1
Mixed Slice Type :OFF
No of B Frms :2
Num of Ref Frms :2
Ref Pic List Reordering :OFF
Direct Type :Spatial
Direct8x8 Inference Flag:1
Loop Filter :ON
Constrained Intra Flag :OFF
Transform Mode :Adaptive 8x8/4x4
Sequence Qmatrix :OFF
Picture Qmatrix :OFF
Weighted Pred(P) :OFF
Weighted Pred(B) :OFF
Chroma Qp Offset :OFF
MMCO :OFF
VUI :OFF
SEI :OFF
HRD Parameters :OFF
Conformance Point :AVC 3rd Edition(w6540)
Test Point :mb_type=0 and CBP=0 at MBAFF
@@ -1,45 +0,0 @@
Bitsteam Name :FREXT02_JVC_C
Profile :High Profile
Level :3.1
Chroma Format :4:2:0
Bit Depth :8
Sequence :Foreman
Width :352
Height :288
Num of Frames :16
Entropy Coding :CAVLC
Coding Type :MBAFF
IDR Intervals :1st I picture only
POC type :0
Slice per Pic :1
Mixed Slice Type :OFF
No of B Frms :2
Num of Ref Frms :2
Ref Pic List Reordering :OFF
Direct Type :Spatial
Direct8x8 Inference Flag:1
Loop Filter :ON
Constrained Intra Flag :OFF
Transform Mode :Adaptive 8x8/4x4
Sequence Qmatrix :OFF
Picture Qmatrix :OFF
Weighted Pred(P) :OFF
Weighted Pred(B) :OFF
Chroma Qp Offset :OFF
MMCO :OFF
VUI :OFF
SEI :OFF
HRD Parameters :OFF
Conformance Point :AVC 3rd Edition(w6540)
Test Point :mb_type=0 and CBP=0 at MBAFF
@@ -1,30 +0,0 @@
Stream Name: FREXT2_TANDBERG_A
Stream Source: TANDBERG
Video Sequence: F1
Video Resolution: CIF - 4:2:2/8
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: IPPPP
I Period: 0
Slices per Picture: 1
Conformance Point: JVT-L012d2
POC Type: 0
Number Ref Frames: 1
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
@@ -1,30 +0,0 @@
Stream Name: FREXT3_TANDBERG_A
Stream Source: TANDBERG
Video Sequence: F1
Video Resolution: CIF - 4:2:2/8
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: IBPBP
I Period: 0
Slices per Picture: 1
Conformance Point: JVT-L012d2
POC Type: 0
Number Ref Frames: 1
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
@@ -1,55 +0,0 @@
Bitsteam Name :FRExt1_Panasonic
Profile :Hi
Level :2.1
Category :4:2:0 8
Sequence :Foreman
Width :352
Height :288
Num of Frms :8
Entropy Coding :CAVLC
IDR Intervals :All I pictures
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :Frame only
Num of Ref Frms :2
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Spatial
Direct8x8 Inference Flag:0
Stored B Pic :No
Transform Mode :8x8 only
Sequence Qmatrix :On
Picture Qmatrix :On
MMCO :Off
RPSL :Off
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L047d5
Comments :I - B - B - P
:Display Order ->
: 1st IDR - SPS all
: 2nd B - PPS fall-back rule
: 3rd B - PPS all - default
: 4th P - PPS all
: 5th B - PPS all - max_min
: 6th B - PPS all - delta_scale
: 7th IDR - SPS fall-back rule
: 8th P - PPS fall-back rule
@@ -1,62 +0,0 @@
Bitsteam Name :FRExt2_Panasonic
Profile :Hi
Level :2.1
Category :4:2:0 8
Sequence :Mobile
Width :352
Height :288
Num of Frms :15
Entropy Coding :CAVLC
IDR Intervals :All I pictures
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :MBAFF/AFF
Num of Ref Frms :5
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Temporal
Direct8x8 Inference Flag:1
Stored B Pic :Yes
Transform Mode :Adaptive 8x8/4x4
Sequence Qmatrix :On
Picture Qmatrix :On
MMCO :On
RPSL :On
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L047d5
Comments :I - Bs - B - P
:Display Order ->
: 1st IDR - FLD SPS all
: 2nd Bs - MBAFF PPS all - delta_scale
: 3rd B - MBAFF PPS fall-back rule
: 4th P - FLD PPS all - default
: 5th Bs - FLD PPS fall-back rule
: 6th B - MBAFF PPS all - max_min
: 7th p - MBAFF PPS fall-back rule
: 8th Bs - MBAFF PPS fall-back rule
: 9th B - FLD PPS fall-back rule
:10th IDR - MBAFF SPS fall-back rule
:11th Bs - MBAFF PPS fall-back rule
:12th B - FLD PPS fall-back rule
:13th P - FLD
:14th P - MBAFF PPS all - delta_scale
:15th P - FLD PPS all - max_min
@@ -1,58 +0,0 @@
Bitsteam Name :FRExt3_Panasonic
Profile :Hi
Level :2.1
Category :4:2:0 8
Sequence :Foreman
Width :352
Height :288
Num of Frms :11
Entropy Coding :CABAC
IDR Intervals :1st I picture only
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :FRM only
Num of Ref Frms :4
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Temporal
Direct8x8 Inference Flag:0
Stored B Pic :No
Transform Mode :Adaptive 8x8/4x4
Sequence Qmatrix :On
Picture Qmatrix :On
MMCO :Off
RPSL :Off
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L047d10
Comments :I - B - B - P
:Display Order ->
: 1st IDR - SPS all
: 2nd B - PPS fall-back rule
: 3rd B - PPS fall-back rule
: 4th P - PPS all - max_min
: 5th B - PPS all - default
: 6th B - PPS all - delta_scale
: 7th I - PPS fall-back rule
: 8th B - PPS all - default
: 9th B - PPS all - delta_scale
:10th P -
:11th P - PPS fall-back rule
@@ -1,57 +0,0 @@
Bitsteam Name :FRExt4_Panasonic
Profile :Hi
Level :2.1
Category :4:2:0 8
Sequence :Mobile
Width :352
Height :288
Num of Frms :10
Entropy Coding :CABAC
IDR Intervals :1st I picture only
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :MBAFF/AFF
Num of Ref Frms :3
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Spatial
Direct8x8 Inference Flag:1
Stored B Pic :No
Transform Mode :8x8 only
Sequence Qmatrix :On
Picture Qmatrix :On
MMCO :Off
RPSL :Off
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L047d10
Comments :I - B - B - P
:Display Order ->
: 1st IDR - MBAFF SPS all
: 2nd B - FLD PPS fall-back rule
: 3rd B - MBAFF PPS all - default
: 4th P - FLD PPS all - max_min
: 5th B - MBAFF PPS fall-back rule
: 6th B - FLD PPS all - delta_scale
: 7th I - FLD PPS fall-back rule
: 8th B - FLD PPS all - default
: 9th B - MBAFF PPS all - delta_scale
:10th P - MBAFF
@@ -1,45 +0,0 @@
Bitsteam Name :HCAFF1_HHI
Profile :Hi
Level :3.0
Category :4:2:0 8
Sequence :Foreman
Width :352
Height :288
Num of Frms :10
Entropy Coding :CABAC (adaptive initilaization)
IDR Intervals :Only first pic
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :picture AFF only
Num of Ref Frms :5
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Spatial
Direct8x8 Inference Flag:1
Stored B Pic :No
Transform Mode :rd-based including 8x8
Sequence Qmatrix :default flag
Picture Qmatrix :Off
MMCO :Off
RPSL :Off
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L050d3
Comments :I - B - B - P
@@ -1,45 +0,0 @@
Bitsteam Name :HCAFR1_HHI
Profile :Hi
Level :3.0
Category :4:2:0 8
Sequence :Foreman
Width :352
Height :288
Num of Frms :10
Entropy Coding :CABAC (adaptive initilaization)
IDR Intervals :Only first pic
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :Frame only
Num of Ref Frms :5
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Spatial
Direct8x8 Inference Flag:1
Stored B Pic :No
Transform Mode :rd-based including 8x8
Sequence Qmatrix :default flag
Picture Qmatrix :Off
MMCO :Off
RPSL :Off
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L050d3
Comments :I - B - B - P
@@ -1,45 +0,0 @@
Bitsteam Name :HCAMFF1_HHI
Profile :Hi
Level :3.0
Category :4:2:0 8
Sequence :Foreman
Width :352
Height :288
Num of Frms :10
Entropy Coding :CABAC (adaptive initilaization)
IDR Intervals :Only first pic
Slice per Pic :1
Mixed Slice Type :No
POC type :0
Coding Type :macroblock AFF only
Num of Ref Frms :5
Loop Filter :On
Constrained Intra Flag :Off
No of B Frms :2
Direct Type :Spatial
Direct8x8 Inference Flag:1
Stored B Pic :No
Transform Mode :rd-based including 8x8
Sequence Qmatrix :default flag
Picture Qmatrix :Off
MMCO :Off
RPSL :Off
Weighted Pred :Off
PCM Mode :No
Chroma Offset :No
SP Pic Periodicity :No
VUI :No
SEI :No
HRD Parameters :No
Partition Mode :0
Conformance Point :L050d3
Comments :I - B - B - P
@@ -1,39 +0,0 @@
Files in the folder
HPCAMOLQ_BRCM_B_Readme.txt This file
HPCAMOLQ_BRCM_B.264 Bitstream
HPCAMOLQ_BRCM_B.YUV Reconstructed YUV file
HPCAMOLQ_BRCM_B.trc Decoder trace file
----------------------------------------------------------------------
Encoder configuration:
Stream Name: HPCAMOLQ_BRCM_B
Stream Source: Broadcom
Video Sequence: Foreman
Video Resolution: CIF
Video Frames: 100
Profile: High
Frame/Field Coding: Frame Coded
Entropy Coding: CABAC
GOP Structure: I B B P B B P...
Slices per Picture: 1
Conformance Point: JVT-L047d11
POC Type: 0
Number Ref Frames: 1
IDR: First frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: No
Constrained Intra Pred: No
Weighted Pred (P): No
Weighted Bipred (B): No
Direct Prediction: Temporal
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
PCM Coded MB: No
Quantization Matrices: Loaded
Chroma Mode: Monochrome
@@ -1,39 +0,0 @@
Files in the folder
HPCVMOLQ_BRCM_B_Readme.txt This file
HPCVMOLQ_BRCM_B.264 Bitstream
HPCVMOLQ_BRCM_B.YUV Reconstructed YUV file
HPCVMOLQ_BRCM_B.trc Decoder trace file
----------------------------------------------------------------------
Encoder configuration:
Stream Name: HPCVMOLQ_BRCM_B
Stream Source: Broadcom
Video Sequence: Foreman
Video Resolution: CIF
Video Frames: 100
Profile: High
Frame/Field Coding: Frame Coded
Entropy Coding: CAVLC
GOP Structure: I B B P B B P...
Slices per Picture: 1
Conformance Point: JVT-L047d11
POC Type: 0
Number Ref Frames: 1
IDR: First frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: No
Constrained Intra Pred: No
Weighted Pred (P): No
Weighted Bipred (B): No
Direct Prediction: Temporal
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
PCM Coded MB: No
Quantization Matrices: Loaded
Chroma Mode: Monochrome
@@ -1,34 +0,0 @@
Stream Name: Hi422FR10_SONY_B
Stream Source: SONY
Video Sequence: mobile
Video Resolution: CIF - 4:2:2
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IIIII
I Period: 1
Slices per Picture: 1
Conformance Point:
POC Type: 0
Number Ref Frames: 0
IDR: 1
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
Bit Depth Luma: 8
Bit Depth Chroma: 8
Transform 8x8 Mode On
Weighting Matrix On
@@ -1,34 +0,0 @@
Stream Name: Hi422FR11_SONY_B
Stream Source: SONY
Video Sequence: mobile
Video Resolution: CIF - 4:2:2
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IPPPP
I Period: 0
Slices per Picture: 1
Conformance Point:
POC Type: 0
Number Ref Frames: 0
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
Bit Depth Luma: 8
Bit Depth Chroma: 8
Transform 8x8 Mode On
Weighting Matrix On
@@ -1,34 +0,0 @@
Stream Name: Hi422FR12_SONY_B
Stream Source: SONY
Video Sequence: mobile
Video Resolution: CIF - 4:2:2
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IPBPB
I Period: 0
Slices per Picture: 1
Conformance Point:
POC Type: 0
Number Ref Frames: 0
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
Bit Depth Luma: 8
Bit Depth Chroma: 8
Transform 8x8 Mode On
Weighting Matrix On
@@ -1,34 +0,0 @@
Stream Name: Hi422FR13_SONY_B
Stream Source: SONY
Video Sequence: tomatoes
Video Resolution: CIF - 4:2:2
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IIIII
I Period: 1
Slices per Picture: 1
Conformance Point:
POC Type: 0
Number Ref Frames: 0
IDR: 1
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
Bit Depth Luma: 10
Bit Depth Chroma: 10
Transform 8x8 Mode On
Weighting Matrix On
@@ -1,34 +0,0 @@
Stream Name: Hi422FR14_SONY_B
Stream Source: SONY
Video Sequence: tomatoes
Video Resolution: CIF - 4:2:2
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IPPPP
I Period: 0
Slices per Picture: 1
Conformance Point:
POC Type: 0
Number Ref Frames: 0
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
Bit Depth Luma: 10
Bit Depth Chroma: 10
Transform 8x8 Mode On
Weighting Matrix On
@@ -1,34 +0,0 @@
Stream Name: Hi422FR15_SONY_B
Stream Source: SONY
Video Sequence: tomatoes
Video Resolution: CIF - 4:2:2
Video Frames: 5
Frame/Field Coding: Frame
Entropy Coding: CABAC
Slice Types: IPBPB
I Period: 0
Slices per Picture: 1
Conformance Point:
POC Type: 0
Number Ref Frames: 0
IDR: First only
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off (Unconstrained)
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: Off
Loop Filter: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
Gaps in frame_num: No
Bit Depth Luma: 10
Bit Depth Chroma: 10
Transform 8x8 Mode On
Weighting Matrix On
@@ -9,9 +9,11 @@ scrittore MP4.
Sono flussi della serie di conformità ufficiale **ITU-T H.264.1** («Conformance specification for ITU-T H.264
advanced video coding»), pubblicata dall'ITU-T con i flussi di bit, i file `readme` dei loro autori e la ricostruzione
di riferimento di ogni flusso, in https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/ (cartelle `AVCv1`,
`FRExt`, `Professional_profiles`, `MVC`, `SVC`). Ogni cartella qui contiene il flusso così com'è (Annex B: `.264`,
`.jsv`, `.avc`, `.h264` o `.jvt`, come l'hanno chiamato gli autori) e il suo `readme` originale, quando lo zip ne ha
uno; per SVC i `readme` sono le schede `<flusso>-L<n>.txt`, una per strato. La cartella prende il nome dello zip.
`FRExt`, `Professional_profiles`, `MVC`, `SVC`). Nel repository stanno **solo i flussi e gli MD5** (decisione di
Alberto del 18 novembre 2026): ogni cartella contiene il flusso così com'è (Annex B: `.264`, `.jsv`, `.avc`, `.h264` o
`.jvt`, come l'hanno chiamato gli autori) e i suoi `riferimento*.md5`; mai i `readme` degli autori, le schede degli
strati SVC o le uscite decodificate. Ciò che le prove ne usano (profilo, formato, numero di fotogrammi, che cosa prova
ogni flusso) è nelle tabelle qui sotto. La cartella prende il nome dello zip.
I flussi aggiunti il 18 novembre 2026 sono stati scaricati quel giorno; di ogni zip si è controllato il CRC-32 con
l'elenco dell'indice `00readme_H.264.1(2010).html` della stessa cartella, o, per gli zip letti a pezzi, il CRC-32 di
@@ -75,7 +77,7 @@ rimasto senza il suo compagno esce da solo, con le righe dell'altro campo grigie
| `CAMASL3_Sony_B` | Main, 192×128, 17 | MBAFF, CABAC, 4 slice per immagine, diretta spaziale |
| `HCAMFF1_HHI_B` | High, CIF, 10 | MBAFF, CABAC adattivo, trasformata 8×8, slice B |
| `FREXT01_JVC_D` | High, CIF, 16 | MBAFF, CABAC, 8×8 adattiva, `mb_type` 0 con CBP 0 |
| `CAPAMA3_Sand_F` | Main, CIF, 50 (il `readme` dice 30) | PAFF e MBAFF insieme, CABAC, diretta temporale |
| `CAPAMA3_Sand_F` | Main, CIF, 50 (il `readme` dell'ITU-T dice 30) | PAFF e MBAFF insieme, CABAC, diretta temporale |
| `cama1_vtc_c` | Main, 720×480, 4 | primo fotogramma a campi con il campo inferiore per primo, poi MBAFF, CABAC |
| `FRExt2_Panasonic_C` | High, CIF, 15 | campi e MBAFF alternati, CAVLC, matrici con le regole di ripiego, MMCO, riordino, B di riferimento |
| `FRExt4_Panasonic_B` | High, CIF, 10 | campi e MBAFF alternati, CABAC, solo 8×8, matrici con le regole di ripiego |
@@ -88,9 +90,9 @@ Strumenti di Baseline ed Extended, QCIF 4:2:0 a 8 bit:
|---|---|---|
| `FM2_SVA_C` | Baseline, 17 | FMO con 3 gruppi di slice di tipo 0, ASO, POC di tipo 1 |
| `FM1_FT_E` | Baseline, 300 | FMO di tipo 1, 2, 3 e 4 che cambiano lungo il flusso (11 PPS), POC di tipo 2, SEI di recupero graduale |
| `FM1_BT_B` | Baseline, 400 | FMO di tutti i tipi da 0 a 6, ASO (lo zip non ha `readme`) |
| `sp1_bt_a` | Extended, 400 | slice SP (39 immagini) con QS diverso da QP e deblocking spento, POC di tipo 1 (lo zip non ha `readme`) |
| `sp2_bt_b` | Extended, 400 | slice SP con deblocking attivo (lo zip non ha `readme`) |
| `FM1_BT_B` | Baseline, 400 | FMO di tutti i tipi da 0 a 6, ASO |
| `sp1_bt_a` | Extended, 400 | slice SP (39 immagini) con QS diverso da QP e deblocking spento, POC di tipo 1 |
| `sp2_bt_b` | Extended, 400 | slice SP con deblocking attivo |
Nessuno di questi flussi usa la predizione pesata, i salti di `frame_num` o gli I_PCM: quelle parti del decodificatore
non hanno qui un riferimento ufficiale. Le slice SP dei due flussi hanno tutte `sp_for_switch_flag` a 0.
@@ -142,8 +144,10 @@ strato base dei tre flussi qui sotto, con `riferimento-base.md5`, chiesto al dec
## I flussi delle parti ancora da fare
`H264ConformanceTests.FeaturesStillToDo`: la prova è **inconclusiva** con il messaggio «da fare: …» (o «da
verificare: …» quando manca il riferimento), così la serie resta verde e il vuoto si vede. Quando uno di questi flussi
`H264ConformanceTests.FeaturesStillToDo`: la prova è **inconclusiva** con un messaggio che comincia sempre con «da
fare: …» (anche quando manca il riferimento, come per MVC), così la serie resta verde e il vuoto si vede. Nella CI
`.gitea/scripts/riepilogo-prove.sh` conta a parte, come «da fare», solo le inconclusive di `FeaturesStillToDo` il cui
motivo comincia con «da fare: »; ogni altra inconclusiva è una prova saltata, e la CI non ne ammette. Quando uno di questi flussi
coincide con il riferimento la prova **fallisce** apposta, per ricordare di spostarlo fra i flussi verificati.
**SVC**: per questi due il decodificatore dà lo strato base e dice perché non va oltre
@@ -1,31 +0,0 @@
Stream Name: MR6_BT_A
Stream Source: BT
Video Sequence: Foreman, Cheer and Bus
Video Resolution: 192x128
Video Frames: 60
Frame/Field Coding: Field
Entropy Coding: CAVLC
Slice Types: IPPP
I Period: 0
Slices per Picture: variable
POC Type: 1
Number Reference Frames: 5
IDR: First frame
Ref Pic List Reordering: Yes
Adaptive Ref Pic Marking Mode: Yes
Constrained Intra Prediction: Off (Unconstrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: Yes
Number Slice Groups: 1
Long-term Ref Frames: 2
MMCO: Yes
Arbitrary Slice Order: No
Redundant Slices: No
Fixed QP.
@@ -1,31 +0,0 @@
Stream Name: MR8_BT_A
Stream Source: BT
Video Sequence: Foreman, Cheer and Bus
Video Resolution: 192x128
Video Frames: 58
Frame/Field Coding: Macroblock and Picture Frame/Field Adaptive
Entropy Coding: CABAC
Slice Types: IBBP
I Period: 0
Slices per Picture: variable
POC Type: 1
Number Reference Frames: 5
IDR: First frame
Ref Pic List Reordering: Yes
Adaptive Ref Pic Marking Mode: Yes
Constrained Intra Prediction: Off (Unconstrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: Yes
Direct 8x8 Inference: On
Loop Filter: On
SEI: No
VUI: Yes
Number Slice Groups: 1
Long-term Ref Frames: 2
MMCO: Yes
Arbitrary Slice Order: No
Redundant Slices: No
Fixed QP.
@@ -1,30 +0,0 @@
Stream Name: SVA_BA1_B
Stream Source: SVA & Tsinghua
Video Sequence: Foreman
Video Resolution: QCIF
Video Frames: 17
Frame/Field Coding: Frame
Entropy Coding: CAVLC
Slice Types: I
Intra Period: 0
Slices per Picture: 1
Conformance Point: JVT-G050r1
POC Type: 2
Number Ref Frames: 5
Constrained Intra Pred: Off (Unconstrained)
Loop Filter: On
delta_QP always zero: No
IDR: First Frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: None
Direct 8x8 Inference: On
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,98 +0,0 @@
Volunteer HHI
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
Scalability Type CGS/Temporal
Bitstream SVCBCT-1
Bitstream Number 0
Width 320
Height 240
Frame rate 15.00
Number of frames 150
chroma_format_idc -
bit_depth_luma_minus8 -
bit_depth_chroma_minus8 -
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 66
level_idc 12
constraint_set0_flag 1
constraint_set1_flag 1
constraint_set2_flag 1
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag -
transform_8x8_mode_flag 0
pic_scaling_matrix_present_flag 0
qpprime_y_zero_transform_bypass_flag 0
slice_qp_delta == 0 0
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 0
disable_deblocking_filter_idc -
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 0
I_PCM ?
direct_spatial_mv_pred_flag 1
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 7
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 1
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI -
priority_id 0
dependency_id 0
quality_id 0
ref_layer_dq_id -1
DependencyIdMax 0
TemporalIdMax 3
DQIdMax 0
DependentDId 1
Number of EIDR slices -
extended_spatial_scalability -
SpatialResolutionChangeFlag -
chroma_phase_x_plus1_flag -
chroma_phase_y_plus1 -
seq_ref_layer_chroma_phase_x_plus1_flag -
seq_ref_layer_chroma_phase_y_plus1 -
seq_scaled_ref_layer_left_offset -
seq_scaled_ref_layer_top_offset -
seq_scaled_ref_layer_right_offset -
seq_scaled_ref_layer_bottom_offset -
ref_layer_chroma_phase_x_plus1_flag
ref_layer_chroma_phase_y_plus1
constrained_intra_resampling_flag -
no_inter_layer_pred_flag -
use_ref_base_pic_flag -
store_ref_base_pic_flag -
output_flag 1
discardable_flag -
slice_header_restriction_flag -
scan_idx_start -
scan_idx_end -
seq_tcoeff_level_prediction_flag -
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag -
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag -
default_base_mode_flag -
adaptive_motion_prediction_flag -
default_motion_prediction_flag -
adaptive_residual_prediction_flag -
default_residual_prediction_flag
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag -
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,98 +0,0 @@
Volunteer HHI
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
Scalability Type CGS/Temporal
Bitstream SVCBCT-1
Bitstream Number 1
Width 320
Height 240
Frame rate 30.00
Number of frames 300
chroma_format_idc 1
bit_depth_luma_minus8 0
bit_depth_chroma_minus8 0
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 83
level_idc 21
constraint_set0_flag 1
constraint_set1_flag 1
constraint_set2_flag 0
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag 0
transform_8x8_mode_flag 1
pic_scaling_matrix_present_flag 0
qpprime_y_zero_transform_bypass_flag 0
slice_qp_delta == 0 0
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 0
disable_deblocking_filter_idc -
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 1
I_PCM ?
direct_spatial_mv_pred_flag 1
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 12
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 1
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI -
priority_id 0
dependency_id 1
quality_id 0
ref_layer_dq_id 0
DependencyIdMax 1
TemporalIdMax 4
DQIdMax 16
DependentDId 1
Number of EIDR slices 1
extended_spatial_scalability 0
SpatialResolutionChangeFlag 0
chroma_phase_x_plus1_flag 1
chroma_phase_y_plus1 1
seq_ref_layer_chroma_phase_x_plus1_flag -
seq_ref_layer_chroma_phase_y_plus1 -
seq_scaled_ref_layer_left_offset -
seq_scaled_ref_layer_top_offset -
seq_scaled_ref_layer_right_offset -
seq_scaled_ref_layer_bottom_offset -
ref_layer_chroma_phase_x_plus1_flag
ref_layer_chroma_phase_y_plus1
constrained_intra_resampling_flag 0
no_inter_layer_pred_flag 0
use_ref_base_pic_flag 0
store_ref_base_pic_flag 0
output_flag 1
discardable_flag 0
slice_header_restriction_flag 0
scan_idx_start 0
scan_idx_end 15
seq_tcoeff_level_prediction_flag 0
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag 0
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag 1
default_base_mode_flag -
adaptive_motion_prediction_flag 1
default_motion_prediction_flag -
adaptive_residual_prediction_flag 1
default_residual_prediction_flag
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag 0
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,98 +0,0 @@
Volunteer Vidyo
Description MT-1 + 1M, SEI, adaptive_base_mode_flag=1, adaptive_motion_prediction_flag=1
Scalability Type MGS/Temporal
Bitstream SVCBMT-13
Bitstream Number 0
Width 352
Height 240
Frame rate 30.00
Number of frames 20
chroma_format_idc -
bit_depth_luma_minus8 -
bit_depth_chroma_minus8 -
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 66
level_idc 13
constraint_set0_flag 1
constraint_set1_flag 1
constraint_set2_flag 1
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag -
transform_8x8_mode_flag -
pic_scaling_matrix_present_flag -
qpprime_y_zero_transform_bypass_flag -
slice_qp_delta == 0 1
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 1
disable_deblocking_filter_idc 1
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 0
I_PCM -
direct_spatial_mv_pred_flag -
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 4
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 0
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI 1
priority_id 0
dependency_id 0
quality_id 0
ref_layer_dq_id -1
DependencyIdMax 0
TemporalIdMax 2
DQIdMax 0
DependentDId
Number of EIDR slices -
extended_spatial_scalability -
SpatialResolutionChangeFlag -
chroma_phase_x_plus1_flag -
chroma_phase_y_plus1 -
seq_ref_layer_chroma_phase_x_plus1_flag -
seq_ref_layer_chroma_phase_y_plus1 -
seq_scaled_ref_layer_left_offset -
seq_scaled_ref_layer_top_offset -
seq_scaled_ref_layer_right_offset -
seq_scaled_ref_layer_bottom_offset -
ref_layer_chroma_phase_x_plus1_flag
ref_layer_chroma_phase_y_plus1
constrained_intra_resampling_flag -
no_inter_layer_pred_flag -
use_ref_base_pic_flag 0
store_ref_base_pic_flag 0
output_flag 1
discardable_flag 0
slice_header_restriction_flag -
scan_idx_start -
scan_idx_end -
seq_tcoeff_level_prediction_flag -
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag -
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag -
default_base_mode_flag -
adaptive_motion_prediction_flag -
default_motion_prediction_flag -
adaptive_residual_prediction_flag -
default_residual_prediction_flag -
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag -
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,98 +0,0 @@
Volunteer Vidyo
Description MT-1 + 1M, SEI, adaptive_base_mode_flag=1, adaptive_motion_prediction_flag=1
Scalability Type MGS/Temporal
Bitstream SVCBMT-13
Bitstream Number 1
Width 352
Height 240
Frame rate 30.00
Number of frames 20
chroma_format_idc 1
bit_depth_luma_minus8 0
bit_depth_chroma_minus8 0
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 83
level_idc 13
constraint_set0_flag 1
constraint_set1_flag 0
constraint_set2_flag 0
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag 0
transform_8x8_mode_flag 0
pic_scaling_matrix_present_flag 0
qpprime_y_zero_transform_bypass_flag 0
slice_qp_delta == 0 1
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 1
disable_deblocking_filter_idc 1
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 0
I_PCM -
direct_spatial_mv_pred_flag -
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 4
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 0
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI 1
priority_id 0
dependency_id 0
quality_id 1
ref_layer_dq_id 0
DependencyIdMax 0
TemporalIdMax 2
DQIdMax 1
DependentDId
Number of EIDR slices 1
extended_spatial_scalability 0
SpatialResolutionChangeFlag 0
chroma_phase_x_plus1_flag 1
chroma_phase_y_plus1 1
seq_ref_layer_chroma_phase_x_plus1_flag -
seq_ref_layer_chroma_phase_y_plus1 -
seq_scaled_ref_layer_left_offset -
seq_scaled_ref_layer_top_offset -
seq_scaled_ref_layer_right_offset -
seq_scaled_ref_layer_bottom_offset -
ref_layer_chroma_phase_x_plus1_flag
ref_layer_chroma_phase_y_plus1
constrained_intra_resampling_flag -
no_inter_layer_pred_flag 0
use_ref_base_pic_flag 0
store_ref_base_pic_flag 0
output_flag 1
discardable_flag 0
slice_header_restriction_flag 0
scan_idx_start 0
scan_idx_end 15
seq_tcoeff_level_prediction_flag 0
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag 0
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag 1
default_base_mode_flag -
adaptive_motion_prediction_flag 1
default_motion_prediction_flag -
adaptive_residual_prediction_flag 1
default_residual_prediction_flag -
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag -
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,98 +0,0 @@
Volunteer Vidyo
Description MT-1 + 1M, SEI, adaptive_base_mode_flag=1, adaptive_motion_prediction_flag=1
Scalability Type MGS/Temporal
Bitstream SVCBMT-13
Bitstream Number 1
Width 352
Height 240
Frame rate 30.00
Number of frames 20
chroma_format_idc 1
bit_depth_luma_minus8 0
bit_depth_chroma_minus8 0
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 83
level_idc 13
constraint_set0_flag 1
constraint_set1_flag 0
constraint_set2_flag 0
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag 0
transform_8x8_mode_flag 0
pic_scaling_matrix_present_flag 0
qpprime_y_zero_transform_bypass_flag 0
slice_qp_delta == 0 1
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 1
disable_deblocking_filter_idc 1
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 0
I_PCM -
direct_spatial_mv_pred_flag -
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 4
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 0
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI 1
priority_id 0
dependency_id 0
quality_id 2
ref_layer_dq_id 1
DependencyIdMax 0
TemporalIdMax 2
DQIdMax 2
DependentDId
Number of EIDR slices 1
extended_spatial_scalability 0
SpatialResolutionChangeFlag 0
chroma_phase_x_plus1_flag 1
chroma_phase_y_plus1 1
seq_ref_layer_chroma_phase_x_plus1_flag -
seq_ref_layer_chroma_phase_y_plus1 -
seq_scaled_ref_layer_left_offset -
seq_scaled_ref_layer_top_offset -
seq_scaled_ref_layer_right_offset -
seq_scaled_ref_layer_bottom_offset -
ref_layer_chroma_phase_x_plus1_flag
ref_layer_chroma_phase_y_plus1
constrained_intra_resampling_flag -
no_inter_layer_pred_flag 0
use_ref_base_pic_flag 0
store_ref_base_pic_flag 0
output_flag 1
discardable_flag 1
slice_header_restriction_flag 0
scan_idx_start 0
scan_idx_end 15
seq_tcoeff_level_prediction_flag 0
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag 0
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag 1
default_base_mode_flag -
adaptive_motion_prediction_flag 1
default_motion_prediction_flag -
adaptive_residual_prediction_flag 1
default_residual_prediction_flag -
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag -
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,98 +0,0 @@
Volunteer HHI
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
Scalability Type Spatial/Temporal
Bitstream SVCBST-19
Bitstream Number 0
Width 320
Height 240
Frame rate 15.00
Number of frames 30
chroma_format_idc -
bit_depth_luma_minus8 -
bit_depth_chroma_minus8 -
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 66
level_idc 12
constraint_set0_flag 1
constraint_set1_flag 1
constraint_set2_flag 1
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag -
transform_8x8_mode_flag 0
pic_scaling_matrix_present_flag 0
qpprime_y_zero_transform_bypass_flag 0
slice_qp_delta == 0 0
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 0
disable_deblocking_filter_idc -
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 0
I_PCM ?
direct_spatial_mv_pred_flag 1
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 7
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 1
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI -
priority_id 0
dependency_id 0
quality_id 0
ref_layer_dq_id -1
DependencyIdMax 0
TemporalIdMax 3
DQIdMax 0
DependentDId 1
Number of EIDR slices -
extended_spatial_scalability -
SpatialResolutionChangeFlag -
chroma_phase_x_plus1_flag -
chroma_phase_y_plus1 -
seq_ref_layer_chroma_phase_x_plus1_flag -
seq_ref_layer_chroma_phase_y_plus1 -
seq_scaled_ref_layer_left_offset -
seq_scaled_ref_layer_top_offset -
seq_scaled_ref_layer_right_offset -
seq_scaled_ref_layer_bottom_offset -
ref_layer_chroma_phase_x_plus1_flag
ref_layer_chroma_phase_y_plus1
constrained_intra_resampling_flag -
no_inter_layer_pred_flag -
use_ref_base_pic_flag -
store_ref_base_pic_flag -
output_flag 1
discardable_flag -
slice_header_restriction_flag -
scan_idx_start -
scan_idx_end -
seq_tcoeff_level_prediction_flag -
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag -
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag -
default_base_mode_flag -
adaptive_motion_prediction_flag -
default_motion_prediction_flag -
adaptive_residual_prediction_flag -
default_residual_prediction_flag
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag -
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,98 +0,0 @@
Volunteer HHI
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
Scalability Type Spatial/Temporal
Bitstream SVCBST-19
Bitstream Number 1
Width 640
Height 480
Frame rate 30.00
Number of frames 60
chroma_format_idc 1
bit_depth_luma_minus8 0
bit_depth_chroma_minus8 0
residual_color_transform_flag -
separate_colour_plane_flag -
profile_idc 83
level_idc 31
constraint_set0_flag 1
constraint_set1_flag 1
constraint_set2_flag 0
constraint_set3_flag 0
Number of IDR access units 1
Number of slices per picture 1
seq_scaling_matrix_present_flag 0
transform_8x8_mode_flag 1
pic_scaling_matrix_present_flag 0
qpprime_y_zero_transform_bypass_flag 0
slice_qp_delta == 0 0
mb_qp_delta == 0 1
chroma_qp_index_offset 0
frame_mbs_only_flag 1
mb_adaptive_frame_field_flag -
field_pic_flag -
deblocking_filter_control_present_flag 0
disable_deblocking_filter_idc -
slice_alpha_c0_offset_div2 -
slice_beta_offset_div2 -
entropy_coding_mode_flag 1
I_PCM ?
direct_spatial_mv_pred_flag 1
direct_8x8_inference_flag 1
weighted_pred_flag 0
weighted_bipred_idc 0
num_ref_frames 12
gaps_in_frame_num_value_allowed_flag 1
ref_pic_list_reordering_flag 1
adaptive_ref_pic_marking_mode_flag 1
num_slice_groups_minus1 0
slice_group_map_type -
pic_order_cnt_type 0
frame_cropping_flag 0
VUI -
HRD -
SEI -
priority_id 0
dependency_id 1
quality_id 0
ref_layer_dq_id 0
DependencyIdMax 1
TemporalIdMax 4
DQIdMax 16
DependentDId 2
Number of EIDR slices 1
extended_spatial_scalability 1
SpatialResolutionChangeFlag 1
chroma_phase_x_plus1_flag 1
chroma_phase_y_plus1 1
seq_ref_layer_chroma_phase_x_plus1_flag 1
seq_ref_layer_chroma_phase_y_plus1 1
seq_scaled_ref_layer_left_offset 0
seq_scaled_ref_layer_top_offset 0
seq_scaled_ref_layer_right_offset 0
seq_scaled_ref_layer_bottom_offset 0
ref_layer_chroma_phase_x_plus1_flag -
ref_layer_chroma_phase_y_plus1 -
constrained_intra_resampling_flag 0
no_inter_layer_pred_flag 0
use_ref_base_pic_flag -
store_ref_base_pic_flag -
output_flag 1
discardable_flag 0
slice_header_restriction_flag 0
scan_idx_start -
scan_idx_end -
seq_tcoeff_level_prediction_flag 0
adaptive_tcoeff_level_prediction_flag -
slice_skip_flag 0
num_mbs_in_slice_minus1 -
adaptive_base_mode_flag 1
default_base_mode_flag -
adaptive_motion_prediction_flag 1
default_motion_prediction_flag -
adaptive_residual_prediction_flag 1
default_residual_prediction_flag
base_pred_weight_table_flag -
inter_layer_deblocking_filter_control_present_flag 0
disable_inter_layer_deblocking_filter_idc -
inter_layer_slice_alpha_c0_offset_div2 -
inter_layer_slice_beta_offset_div2 -
@@ -1,36 +0,0 @@
Files in the folder
1. Sharp_MP_PAFF_1r2_Readme.txt the file you are reading
2. Sharp_MP_PAFF_1r2.jvt bitstream file
3. Sharp_MP_PAFF_1r2_rec.yuv reconstructed YUV file
4. Sharp_MP_PAFF_1r2_trace_dec.txt decoder trace file, generated by JM6.2 decoder
Encoder configuration:
Stream Name: Sharp_MP_PAFF_1
Stream Source: Sharp
Video Sequence: Bus
Video Resolution: 720x480
Video Frames: 15
Frame/Field Coding: Picture-level Adaptive-Frame-Field Coding
Entropy Coding: CAVLC
Slice Types: IP
Slices per Picture: 1
Conformance Point: JVT-G050
POC Type: 1
Number Ref Frames: 5
IDR: First frame
Ref Pic List Reorder: No
Adapt Ref Pic Mark: Off
Constrained Intra Pred: Off
Weighted Pred (P): Off
Weighted Bipred (B): Off
Direct Prediction: Spatial
Direct 8x8 Inference: Yes
Loop Filter: Off
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Arbitrary Slice Order: No
Redundant Slices: No
@@ -1,32 +0,0 @@
Stream Name: CAMA1_VTC_C
Stream Source: Tut_VideoTele.com
Video Sequence: Football
Video Resolution: 720x480 bottom field first
Video Frames: 4
Frame/Field Coding: First frame IP field bottom field first, the rest are MBAFF
Entropy Coding: CABAC
Slice Types: IPB
I Period: First only
Slices per Picture: 1
Conformance Point: JVT-I050
POC Type: 0
Number Reference Frames: 5
IDR: First frame
Ref Pic List Reordering: No
Adaptive Ref Pic Marking Mode: Off
Constrained Intra Prediction: Off (Unconstrained)
Weighted Prediction (P): Off
Weighted Biprediction (B): Off
Direct Prediction: Spatial
Direct 8x8 Inference: 1
Loop Filter: on
SEI: No
VUI: No
Number Slice Groups: 1
Long-term Ref Frames: No
MMCO: No
Slices per Picture: 1
Arbitrary Slice Order: No
Redundant Slices: No
@@ -169,7 +169,9 @@ public sealed class H264ConformanceTests
if (expected.Count == 0)
{
Assert.Inconclusive($"da verificare: {feature}; manca la ricostruzione ufficiale (oggi escono {actual.Count} fotogrammi di tutte le viste, vedi {nameof(MvcDecodesEveryView)})");
// The CI counts as «da fare» only messages that start with it (.gitea/scripts/riepilogo-prove.sh): any other
// inconclusive result is a skipped test, and the CI allows none.
Assert.Inconclusive($"da fare: {feature}, confronto bit per bit; manca la ricostruzione ufficiale (oggi escono {actual.Count} fotogrammi di tutte le viste, vedi {nameof(MvcDecodesEveryView)})");
}
if (skipped is not null)
@@ -78,6 +78,24 @@ public sealed class H264ExtendedToolsTests
H264ConformanceTests.AssertStreamMatches(name, stream);
}
[TestMethod]
[DataRow("FM1_FT_E")] // several slices per picture: the stray partitions have a slice_id of their own
[DataRow("BASQP1_Sony_C")] // twenty slices per picture
[DataRow("BA3_SVA_C")] // one slice per picture: the stray partitions come after both B and C of the slice before
public void PartitionsBAndCWithoutTheirPartitionAAreIgnored(string name)
{
// A lost partition A leaves its B and C right after the partitions of the slice before, which is still waiting
// to be decoded: they must change nothing, as if the whole slice had been lost, and above all not the residual
// of the waiting slice.
var partitioned = StreamRewriter.Partition(Original(name));
var strays = StreamRewriter.DropPartitionsA(partitioned, alsoBAndC: false, out var dropped);
var lost = StreamRewriter.DropPartitionsA(partitioned, alsoBAndC: true, out var droppedWhole);
Assert.AreEqual(dropped, droppedWhole);
Assert.IsGreaterThanOrEqualTo(5, dropped, "slice senza partizione A");
Assert.IsGreaterThan(StreamRewriter.Units(lost).Count, StreamRewriter.Units(strays).Count, "restano le partizioni B e C");
CollectionAssert.AreEqual(H264ConformanceTests.FrameMd5s(lost), H264ConformanceTests.FrameMd5s(strays));
}
[TestMethod]
[DataRow("FM1_FT_E", 4201)]
[DataRow("sp2_bt_b", 4202)]
@@ -37,7 +37,8 @@ public sealed class H264FormatTests
Assert.AreEqual(chromaFormat, f.ChromaFormat);
Assert.AreEqual(bitDepthLuma, f.BitDepthLuma);
// Monochrome comes out with 4:2:0 chroma at the middle value, at the luma bit depth (as the reference decoder writes it).
// Monochrome comes out with 4:2:0 chroma at the middle value, at the luma bit depth (as the official reconstructions
// of HPCAMOLQ_BRCM_B and HPCVMOLQ_BRCM_B hold it).
var depthC = chromaFormat == 0 ? bitDepthLuma : bitDepthChroma;
Assert.AreEqual(depthC, f.BitDepthChroma);
var bytes = Math.Max(bitDepthLuma, depthC) > 8 ? 2 : 1;
@@ -0,0 +1,124 @@
using Febe.Core.Codecs.H264;
using static Febe.Tests.Codecs.H264.SyntheticStreams;
namespace Febe.Tests.Codecs.H264;
/// <summary>
/// The decoders of the non-base views of an MVC stream (Annex H): what a damaged subset SPS may make them allocate, and
/// the <see cref="H264Decoder.Wanted"/> filter, which holds for every view.
/// </summary>
[TestClass]
public sealed class H264MultiviewLimitsTests
{
[TestMethod]
public void TheViewsOfAStreamShareOneBoundForTheirBuffers()
{
// A subset SPS may list up to 1,024 views, and each view has a decoder and frame stores of its own: together they
// stay within H264Decoder.MaxAllViewsMbs, here sixteen reference frames of 1920×1088 per view.
var s = new SequenceSettings(WidthInMbs: 120, HeightInMbs: 68, MaxNumRefFrames: 16);
var decoder = new H264Decoder();
var frames = new List<H264Frame>();
decoder.FrameDecoded += frames.Add;
decoder.DecodeUnit(MvcSubsetSps(s, views: 64)[4..]);
decoder.DecodeUnit(Pps()[4..]);
// Views the subset SPS does not list are refused, and leave nothing behind that would count against the bound.
for (var id = 100; id < 140; id++)
{
var absent = Assert.ThrowsExactly<H264Exception>(() => decoder.DecodeUnit(ViewIdr(s, id)[4..]));
StringAssert.Contains(absent.Message, "Vista assente");
}
var perView = (s.MaxNumRefFrames + 1L) * s.WidthInMbs * s.HeightInMbs;
var allowed = (int)(H264Decoder.MaxAllViewsMbs / perView) - 1; // besides the base view
Assert.AreEqual(9, allowed);
for (var id = 1; id <= allowed; id++)
{
decoder.DecodeUnit(ViewIdr(s, id)[4..]);
}
var refused = Assert.ThrowsExactly<H264Exception>(() => decoder.DecodeUnit(ViewIdr(s, allowed + 1)[4..]));
StringAssert.Contains(refused.Message, "Troppe viste");
// The views kept still decode: one frame each, grey (Intra_16x16 DC with nothing around gives 128).
decoder.Flush();
CollectionAssert.AreEqual(Enumerable.Range(1, allowed).ToArray(), frames.Select(f => f.ViewId).ToArray());
foreach (var frame in frames)
{
Assert.IsTrue(frame.Y.All(v => v == 128), $"vista {frame.ViewId}");
}
}
[TestMethod]
public void ExtensionUnitsCutShortGiveNothingOrAnH264Exception()
{
// NAL units 14, 15 and 20 whose header is read byte by byte (svc_extension_flag, view_id, dependency_id), from one
// byte to a few, SVC and MVC, after an MVC subset SPS and a PPS or without them.
var s = new SequenceSettings(WidthInMbs: 2, HeightInMbs: 2);
foreach (var withParameters in new[] { false, true })
{
foreach (var type in new[] { 14, 15, 20 })
{
for (var length = 1; length <= 8; length++)
{
foreach (var second in new byte[] { 0x00, 0x40, 0x80, 0xC0, 0xFF })
{
var decoder = new H264Decoder();
decoder.FrameDecoded += _ => { };
var unit = new byte[length];
unit[0] = (byte)(0x60 | type);
for (var i = 1; i < length; i++)
{
unit[i] = i == 1 ? second : (byte)(0x35 * i);
}
try
{
if (withParameters)
{
decoder.DecodeUnit(MvcSubsetSps(s, views: 2)[4..]);
decoder.DecodeUnit(Pps()[4..]);
}
decoder.DecodeUnit(unit);
decoder.Flush();
}
catch (H264Exception)
{
}
}
}
}
}
}
[TestMethod]
[DataRow("MVCDS-4")]
[DataRow("MVCNV-3")]
public void WantedHoldsForEveryView(string name)
{
// The filter of the root decoder applies to the decoders of the other views too, each with its own decoding
// index; the frames handed out are those of the full decoding, and the view components the views after them
// refer to are still reconstructed.
var data = File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name)));
var all = new List<H264Frame>();
var full = new H264Decoder();
full.FrameDecoded += all.Add;
full.DecodeAnnexB(data);
var some = new List<H264Frame>();
var partial = new H264Decoder { Wanted = index => index % 3 == 2 };
partial.FrameDecoded += some.Add;
partial.DecodeAnnexB(data);
Assert.IsGreaterThan(1, all.Select(f => f.ViewId).Distinct().Count(), "più viste");
CollectionAssert.AreEqual(
all.Where(f => f.DecodeIndex % 3 == 2).Select(f => (f.ViewId, f.DecodeIndex)).ToArray(),
some.Select(f => (f.ViewId, f.DecodeIndex)).ToArray());
foreach (var frame in some)
{
var expected = all.Single(f => f.ViewId == frame.ViewId && f.DecodeIndex == frame.DecodeIndex);
CollectionAssert.AreEqual(expected.ToPlanar(), frame.ToPlanar(), $"{name}: vista {frame.ViewId}, fotogramma {frame.DecodeIndex}");
}
}
}
@@ -37,6 +37,26 @@ public sealed class H264RobustnessTests
public void DamagedStreamsGiveFramesOrAnH264Exception(string name, int seed) =>
AssertDamagedCopiesDecode(name, File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name))), seed, trials: 60);
/// <summary>
/// The same for the formats of the High profiles beyond 4:2:0 at 8 bits (samples of two bytes, 4:2:2 and 4:0:0
/// layouts) and for the extensions, whose NAL units 14, 15 and 20 have headers of their own and whose layers or
/// views have arrays and decoders of their own; fewer copies each, since these streams are larger or decode twice.
/// </summary>
[TestMethod]
[DataRow("Hi422FR12_SONY_A", 2665)] // 4:2:2, 8 bit, slice B
[DataRow("Hi422FR13_SONY_A", 2666)] // 4:2:2, 10 bit: two bytes per sample
[DataRow("Hi422FR15_SONY_A", 2667)] // 4:2:2, 10 bit, slices P and B
[DataRow("FREXT2_TANDBERG_A", 2668)] // 4:2:2, CAVLC
[DataRow("HPCAMOLQ_BRCM_B", 2669)] // 4:0:0, CABAC
[DataRow("HPCVMOLQ_BRCM_B", 2670)] // 4:0:0, CAVLC
[DataRow("SVCBMT-13", 2671)] // SVC: MGS quality layers, NAL units 14 and 20
[DataRow("SVCBST-19", 2672)] // SVC: spatial layer left to the base
[DataRow("SVCBCT-1", 2673)] // SVC: CGS layer left to the base
[DataRow("MVCDS-4", 2674)] // MVC: two views, subset SPS, NAL units 14, 15 and 20
[DataRow("MVCNV-3", 2675)] // MVC: three views, inter-view prediction
public void DamagedStreamsOfOtherFormatsAndExtensionsGiveFramesOrAnH264Exception(string name, int seed) =>
AssertDamagedCopiesDecode(name, File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name))), seed, trials: 20);
/// <summary>
/// Copies of <paramref name="data"/> with a few bytes changed (and some cut short), from a fixed seed: each must give
/// frames or an <see cref="H264Exception"/>, never another exception.
@@ -76,6 +76,71 @@ internal static class StreamRewriter
return Join(output);
}
/// <summary>
/// A partitioned stream (<see cref="Partition"/>) with the partition A of some slices lost: of every other slice
/// whose partitions B or C come right after those of the slice before, when that slice is still waiting for nothing
/// a decoder could take them for (a slice_id of its own, or the slice before already has both B and C). With
/// <paramref name="alsoBAndC"/> the whole slice is lost instead, its B and C with it. <paramref name="dropped"/> is the
/// number of slices that lost their partition A.
/// </summary>
internal static byte[] DropPartitionsA(byte[] partitioned, bool alsoBAndC, out int dropped)
{
var units = Units(partitioned);
var output = new List<byte[]>();
dropped = 0;
var candidates = 0;
(int Start, int End)? previous = null;
var i = 0;
while (i < units.Count)
{
if ((units[i][0] & 0x1F) != 2)
{
output.Add(units[i]);
previous = null;
i++;
continue;
}
var end = i + 1;
while (end < units.Count && (units[end][0] & 0x1F) is 3 or 4)
{
end++;
}
var drop = false;
if (previous is { } before && end > i + 1 && end - i - 1 <= 2)
{
var full = before.End - before.Start == 3;
var id = SliceIdOf(units[i + 1]);
var beforeId = before.End > before.Start + 1 ? SliceIdOf(units[before.Start + 1]) : id;
drop = (full || id != beforeId) && candidates++ % 2 == 0;
}
if (drop)
{
dropped++;
if (!alsoBAndC)
{
output.AddRange(units.GetRange(i + 1, end - i - 1));
}
}
else
{
output.AddRange(units.GetRange(i, end - i));
}
// A slice that lost its partition A is no slice the next one can follow: the decoder still waits for the
// one before it.
previous = drop ? null : (i, end);
i = end;
}
return Join(output);
}
/// <summary>slice_id, the first syntax element of a partition B or C.</summary>
private static int SliceIdOf(byte[] unit) => NalUnits.Parse(unit).Reader().ReadUe(Sps.MaxFrameMbs - 1);
/// <summary>
/// The same stream with redundant_pic_cnt_present_flag set in every PPS (§7.3.2.2) and, after the slices of each
/// picture, a redundant copy of them (redundant_pic_cnt 1) whose header is the primary one and whose data are random
@@ -380,6 +380,92 @@ internal static class SyntheticStreams
// No chroma residual: the mb_type says coded_block_pattern chroma 0.
}
/// <summary>
/// A subset sequence parameter set (NAL unit 15, §7.3.2.1.3) of the Multiview High profile: the sequence of
/// <paramref name="s"/> in 8-bit 4:2:0, then seq_parameter_set_mvc_extension() (§H.7.3.2.1.4) with
/// <paramref name="views"/> views, view_id 0 to views − 1, none of them referring to another.
/// </summary>
internal static byte[] MvcSubsetSps(SequenceSettings s, int views)
{
var bits = new BitWriter();
bits.Bits(118, 8); // profile_idc: Multiview High
bits.Bits(0, 8); // constraint flags
bits.Bits(51, 8); // level_idc
bits.Ue(0); // seq_parameter_set_id
bits.Ue(1); // chroma_format_idc: 4:2:0
bits.Ue(0); // bit_depth_luma_minus8
bits.Ue(0); // bit_depth_chroma_minus8
bits.Bits(0, 1); // qpprime_y_zero_transform_bypass_flag
bits.Bits(0, 1); // seq_scaling_matrix_present_flag
bits.Ue((uint)s.Log2MaxFrameNum - 4);
bits.Ue(2); // pic_order_cnt_type
bits.Ue((uint)s.MaxNumRefFrames);
bits.Bits(0, 1); // gaps_in_frame_num_value_allowed_flag
bits.Ue((uint)s.WidthInMbs - 1);
bits.Ue((uint)s.HeightInMbs - 1);
bits.Bits(1, 1); // frame_mbs_only_flag
bits.Bits(1, 1); // direct_8x8_inference_flag
bits.Bits(0, 1); // frame_cropping_flag
bits.Bits(0, 1); // vui_parameters_present_flag
bits.Bits(1, 1); // bit_equal_to_one
bits.Ue((uint)views - 1); // num_views_minus1
for (var i = 0; i < views; i++)
{
bits.Ue((uint)i); // view_id
}
for (var pass = 0; pass < 2; pass++)
{
for (var i = 1; i < views; i++)
{
bits.Ue(0); // num_anchor_refs_l0 (then num_non_anchor_refs_l0)
bits.Ue(0); // num_anchor_refs_l1 (then num_non_anchor_refs_l1)
}
}
bits.Ue(0); // num_level_values_signalled_minus1
bits.Bits(51, 8); // level_idc
bits.Ue(0); // num_applicable_ops_minus1
bits.Bits(0, 3); // applicable_op_temporal_id
bits.Ue(0); // applicable_op_num_target_views_minus1
bits.Ue(0); // applicable_op_target_view_id
bits.Ue((uint)views - 1); // applicable_op_num_views_minus1
bits.Bits(0, 1); // mvc_vui_parameters_present_flag
bits.Bits(0, 1); // additional_extension2_flag
return Nal(0x6F, bits);
}
/// <summary>
/// An IDR view component of view <paramref name="viewId"/> (NAL unit 20 with the MVC header, §H.7.3.1.1), as one I
/// slice whose macroblocks are all Intra_16x16 DC without residual: one byte each.
/// </summary>
internal static byte[] ViewIdr(SequenceSettings s, int viewId)
{
var bits = new BitWriter();
bits.Ue(0); // first_mb_in_slice
bits.Ue(7); // slice_type: I
bits.Ue(0); // pic_parameter_set_id
bits.Bits(0, s.Log2MaxFrameNum); // frame_num
bits.Ue(0); // idr_pic_id
bits.Bits(0, 1); // no_output_of_prior_pics_flag
bits.Bits(0, 1); // long_term_reference_flag
bits.Se(0); // slice_qp_delta
bits.Ue(1); // disable_deblocking_filter_idc: off
for (var m = 0; m < s.WidthInMbs * s.HeightInMbs; m++)
{
bits.Ue(3); // mb_type: I_16x16_2_0_0 (DC, no coded block)
bits.Ue(0); // intra_chroma_pred_mode: DC
bits.Se(0); // mb_qp_delta
bits.Bits(1, 1); // coeff_token of Intra16x16DCLevel, nC 0: TotalCoeff 0
}
bits.Bits(1, 1); // rbsp_stop_one_bit
// nal_unit_header_mvc_extension(), outside emulation prevention: svc_extension_flag 0, non_idr_flag 0,
// priority_id 1, view_id, temporal_id 0, anchor_pic_flag 1, inter_view_flag 1, reserved_one_bit.
return [0, 0, 0, 1, 0x74, 0x01, (byte)(viewId >> 2), (byte)(((viewId & 3) << 6) | 0x07), .. bits.ToArray()];
}
private static byte[] Nal(byte header, BitWriter bits)
{
bits.Bits(1, 1); // rbsp_stop_one_bit