RDI-3295 - Add AC4 decoder configuration sample comparison#349
Open
rsanchez87 wants to merge 2 commits intomasterfrom
Open
RDI-3295 - Add AC4 decoder configuration sample comparison#349rsanchez87 wants to merge 2 commits intomasterfrom
rsanchez87 wants to merge 2 commits intomasterfrom
Conversation
11777f6 to
eff3e0c
Compare
6143619 to
c11ddb9
Compare
Contributor
|
@rsanchez87 @rgonzalezfluendo aren't there another PR that implements additional changes on top of my PR #321 which waits for Andoni's review? |
rgonzalezfluendo
requested changes
Apr 10, 2026
fluster/decoders/ffmpeg.py
Outdated
| if self.codec == Codec.AV1 and self.api == "Vulkan": | ||
| command.extend(["-export_side_data", "film_grain"]) | ||
|
|
||
| if optional_params: |
Contributor
Contributor
Author
7644658 to
9fc701a
Compare
- `TestVector`: new optional `decoder_config` dict field, serialised to/from JSON only when present (same pattern as `profile`). - `Decoder.decode()`: extended abstract signature with optional `decoder_config` parameter (backward-compatible default: None). - All `Decoder` subclasses updated to accept and forward the parameter. - `GStreamer`: `FluendoFluAC4DecGst10Decoder` overrides `gen_pipeline` to consume `decoder_speaker_config` from `decoder_config`. - `utils`: `compare_byte_wise_files` extended with WAV-aware comparison that filters silent reference channels and compensates for stream lag, used by the AC4 byte-wise conformance check. - `AC4_ELEMENTARY_STREAMS`: test vectors updated with `decoder_config` carrying the required `decoder_speaker_config` per stream. - New sample comparison method for AC4 - Remove IMS test vectors from AC4 test suite - Decouple reference comparison tests from byte-wise dispatcher (utils)
- The mapping from optional_params into a decoder property must be done in the decoder implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To bring changes from this PR (#321)
Map
fluac4decchannel order&config to the reference decoder one.`$ GST_PLUGIN_PATH=/home/rsanchez/Downloads python3 ./fluster.py run -ts AC4_ELEMENTARY_STREAMS -d DolbyPADSReferenceDecoder Fluendo-AC4-SW -s
Running test suite AC4_ELEMENTARY_STREAMS with decoder DolbyPADSReferenceDecoder
Using 16 parallel job(s)
[TEST SUITE ] (DECODER ) TEST VECTOR ... RESULT
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Audio_ID_2ch_64kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Audio_ID_2ch_64kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Audio_ID_514ch_192kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Audio_ID_6ch_128kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Audio_ID_6ch_128kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Audio_ID_514ch_192kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Holi_fr_6ch_128kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Holi_fr_6ch_128kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Holi_en_6ch_128kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (DolbyPADSReferenceDecoder) Holi_en_6ch_128kbps_2997fps_ac4.ac4 ... Success
Ran 10/10 tests successfully in 5.791 secs
Running test suite AC4_ELEMENTARY_STREAMS with decoder Fluendo-AC4-SW
Using 16 parallel job(s)
[TEST SUITE ] (DECODER ) TEST VECTOR ... RESULT
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Audio_ID_2ch_64kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Audio_ID_6ch_128kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Audio_ID_2ch_64kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Audio_ID_6ch_128kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Audio_ID_514ch_192kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Audio_ID_514ch_192kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Holi_en_6ch_128kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Holi_fr_6ch_128kbps_25fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Holi_fr_6ch_128kbps_2997fps_ac4.ac4 ... Success
[AC4_ELEMENTARY_STREAMS] (Fluendo-AC4-SW) Holi_en_6ch_128kbps_2997fps_ac4.ac4 ... Success
Ran 10/10 tests successfully in 6.252 secs
Generating summary for test suite AC4_ELEMENTARY_STREAMS and decoders DolbyPADSReferenceDecoder, Fluendo-AC4-SW:
System Information
OS: Linux 6.17.0-20-generic
CPU: AMD Ryzen 7 7745HX with Radeon Graphics
GPU: 00.0 VGA compatible controller: NVIDIA Corporation AD107M, 00.0 VGA compatible controller: Advanced Micro Devices, Inc. [PRIMARY]
RAM: 30.5 GB
Backends:
GLOBAL SUMMARY