Skip to content

Support independent secondary subtitle track output #47

Closed

Description

@natureraw

What should the engine do?

It would be very helpful if AetherEngine could expose a second independent subtitle selection/output path

Motivating media or use case

Some players need to display two subtitle tracks at the same time, for example:

  • primary subtitle: Chinese
  • secondary/companion subtitle: English
  • language learning / bilingual playback
  • anime or foreign-language media where users want both original and translated subtitles

Area

Public API surface

Host app / integration context

My own iOS client

Would you be willing to open a PR?

No

Activity

  1. added
    enhancement
    on Jun 17, 2026
  2. superuser404notfound commented on Jun 17, 2026

    @superuser404notfound
    Owner

    Shipped in AetherEngine 3.9.0.

    There's now a fully independent secondary subtitle channel alongside the primary one, so you can drive two subtitle outputs at the same time. The API mirrors the primary surface:

    • selectSecondarySubtitleTrack(index:) for an embedded track
    • selectSecondarySidecarSubtitle(url:httpHeaders:) for a sidecar file
    • clearSecondarySubtitle()
    • published secondarySubtitleCues, isSecondarySubtitleActive, isLoadingSecondarySubtitles

    It runs its own side demuxer, re-arms on seek, and survives audio-track reloads independently of the primary track. The secondary channel is text-only (bitmap codecs like PGS/DVB are rejected) and always decodes to plain text, so it stays clean even when the primary is a styled ASS track. aetherctl dualsubs <file> --primary <i> --secondary <j> exercises both channels. Render the two cue streams however suits your client. Glad to hear how it works out.

  3. natureraw commented on Jun 18, 2026

    @natureraw
    Author

    It works! 🎉

    I’ve tested the new secondary subtitle APIs, and dual subtitles are now running correctly. Primary and secondary subtitle tracks can be selected independently.

    Thanks a lot for implementing this. The API is clean to integrate and works nicely for bilingual subtitle playback.

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