Skip to content

DTS:X - License #798

Closed
Closed

Description

@tweakapps

What should the engine do?

LibDTSX’s dca crate says it’s a port of FFmpeg’s dca decoder, which is LGPL-2.1+, but it’s labelled Apache-2.0 and shipped as a static library. Could it be confirmed as Apache, or shipped as a dynamic framework like FFmpegBuild so the LGPL terms are met?

Motivating media or use case

.

Area

Other

Host app / integration context

No response

Would you be willing to open a PR?

Maybe, with guidance

Activity

  1. added
    enhancement
    on Oct 16, 2026
  2. cmcpherson274 commented on Oct 16, 2026

    @cmcpherson274

    Filed 16 minutes after this issue, #799 carries the file-by-file reading behind the same point (the crate's source headers against its licence field, at harletty-bridge a717bae and FFmpeg n8.0) and points at harletty/harletty-bridge#158, where the crate's author is asked which licence applies. Nothing in it decides the question; it only lays out what the files say.

  3. tweakapps commented on Oct 16, 2026

    @tweakapps
    Author

    Tank you!

    2. Filed 16 minutes after this issue, #799 carries the file-by-file reading behind the same point (the crate's source headers against its licence field, at harletty-bridge a717bae and FFmpeg n8.0) and points at harletty/harletty-bridge#158, where the crate's author is asked which licence applies. Nothing in it decides the question; it only lays out what the files say.

  4. superuser404notfound commented on Oct 16, 2026

    @superuser404notfound
    Owner

    Thanks for catching this, it is correct. The dca crate's own sources call it "a native Rust port of ffmpeg's dca decoder", and its core, XLL, EXSS and header parser each name the FFmpeg file they were ported from (tables included). So the Apache-2.0 label does not hold, and neither did our NOTICE that repeated it.

    What changed:

    • LibDTSX 2.0.0 (release) ships DTSX.framework as a dynamic framework in every slice, under an @rpath install name and exporting only the C API, the same shape as FFmpegBuild. An app embeds it in Frameworks/, where it can be replaced. The decoder is unchanged, and the output is bit-identical to 1.0.1.
    • Its NOTICE and README now state the built library as LGPL-3.0-or-later: the dca part is LGPL-2.1-or-later as a work based on FFmpeg, and combined with the Apache-2.0 code around it, only version 3 works. LICENSES/ carries the texts.
    • AetherEngine main pins LibDTSX 2.0.0 (ede2539), and the README's license section says what a host receives. It goes out with the next engine release.

    What is still open: getting the whole thing to LGPL-2.1-or-later like the FFmpeg frameworks, which avoids the extra conditions of version 3. That needs the Apache-2.0 authors to also allow LGPL-2.1-or-later:

    I'm keeping this issue open until that is settled.

  5. kristofferR commented on Oct 16, 2026

    @kristofferR
    Contributor

    Yeah, do whatever you need 🙂

  6. superuser404notfound commented on Oct 20, 2026

    @superuser404notfound
    Owner

    Follow-up: the license question is now settled differently. Waiting on a relicense of the dca crate (harletty/harletty-bridge#159) was not needed in the end, and LibDTSX is out of the engine.

    • FFmpegBuild 3.9.0 patches FFmpeg's own dca decoder to decode the height channels of DTS:X's standard presentation (decoder option x_heights, 7.1.4, the -3 dB fold removed from the bed). Plain FFmpeg, LGPL-2.1-or-later, dynamically linked as before.
    • AetherEngine 7.44.0 decodes DTS:X through it, behind the same DTSXObjectAudio trait. DTSX.framework is gone from apps, so the LGPL-3.0 problem LibDTSX#2 raised for App Store builds no longer exists.

    Thanks again to @kristofferR for agreeing to the relicense, and to everyone who looked at the provenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions