Skip to content

[bug] Opus and Ogg audiobooks don't play on Apple devices: converted audio stream ignores byte ranges #3175

Open

Description

@Rhainland

What happened

Opus (.opus) and Ogg Vorbis (.ogg) audiobooks don't play in the iPhone, iPad or Apple TV apps. Pressing Play shows "Something went wrong / Operation Stopped", every time, and Try Again fails the same way. The same books play in the web app, and m4b, mp3, FLAC, WAV and raw AAC books play on the same devices.

The Apple apps don't declare Opus or Vorbis, so the server plans server_remux_progressive with the audio_to_aac transformation: an audio-only fragmented MP4 over plain HTTP. That stream is generated live and doesn't support byte ranges. A plain GET and a Range: bytes=0-1 request both get 200 OK with Transfer-Encoding: chunked, no Content-Length, no Accept-Ranges and no Content-Range. AVPlayer requires byte-range support for progressive HTTP media (it probes with bytes=0-1 and expects a 206), which matches the "Operation Stopped" failure. The converted bytes themselves are valid: the full response is a 180-second mono AAC track in MP4. Browsers accept a non-ranged response, which is why the web app plays the same delivery.

The planner has no other route for an audio-only source a client can't play directly: when progressive delivery isn't available it ends with "No validated playback route is available for this audio source." (plan_v3.go, audio-only branch). Android hits that same message for WAV.

Steps to reproduce

Local build of e6df1d8ed; iOS 26.5 and tvOS 26.5 simulators running silo-apple 876fbd31c53c.

  1. Add an audiobook stored as .opus (or .ogg) to an audiobook library.
  2. Open it in the iPhone or Apple TV app and press Play.

Observed: "Something went wrong / Operation Stopped" (2× per book per device). To see the stream behaviour without a device, start playback of the .opus file with client_capabilities.codecs_audio = ["aac","mp3","flac"] and containers = ["mp4","mp3","flac"], then request the plan's stream.url with and without a Range header.

Expected behavior

Opus and Ogg Vorbis audiobooks play on Apple devices, either through a conversion route AVPlayer accepts (byte-range-capable progressive output or HLS) or another validated route.

Silo version / commit

e6df1d8eddce823a7bfd4ac2c513e9e83d835277

Deployment

Local dev build

Area

Playback and transcoding

Clients affected

iOS/tvOS/macOS

Client app and device

silo-apple 876fbd31c53c, Debug; iPhone 17 Pro and Apple TV 4K (3rd generation) simulators, iOS/tvOS 26.5.

Media and playback details

Synthetic audiobooks: Opus 24 kb/s mono in Ogg (180 s); Vorbis q1 mono in Ogg (120 s). Plan: delivery server_remux_progressive, container mp4, MIME audio/mp4, transformation audio_to_aac (recipe 4, server executor).

Relevant logs

Stream request with Range: bytes=0-1:

HTTP/1.1 200 OK
Content-Type: audio/mp4
X-Request-ID: c557c94bd715d6ce24be2a8b
Date: Tue, 27 Oct 2026 18:43:46 GMT
Transfer-Encoding: chunked

Server log when the Apple app starts playback:

level=WARN msg="protocol v3 no proxy advertises the planned recipe" component=api delivery=server_remux_progressive

(The same warning appears for web remux sessions that play, so it is not the cause on its own.)

Technical notes

AI harness

Claude Code (T3 Code)

AI tool(s)

Claude Code, GitHub CLI, curl, ffprobe, Xcode simulators

AI model(s)

claude-opus-5-5

AI involvement

Fully AI-generated, human verified. Found during AI-run validation of #1253 at the maintainer's direction; the device failure was reproduced on simulators and the stream behaviour checked directly against the server.

Independent or adversarial review

None.

Confirmations

  • I searched open and recently closed issues and pull requests, and this is not already reported
  • I reproduced this myself on a real deployment
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Activity

  1. added
    bug
    impact: playback
    priority: P2
    on Oct 27, 2026
  2. Rhainland commented on Nov 15, 2026

    @Rhainland
    ContributorAuthor

    Reproduced on origin/main at c11b0a9 with synthetic .opus, .ogg and .m4b audiobooks. I started playback with the audiobook capability payload the Apple app sends, which declares no Opus, Vorbis or Ogg. The Opus and Vorbis books get server_remux_progressive with audio_to_aac. On that stream, Range: bytes=0-1 and Range: bytes=1000-1999 both return 200, chunked, with no Accept-Ranges or Content-Range, and send the whole body. The m4b book gets original_http and answers 206 with a correct Content-Range. AVPlayer needs byte ranges for progressive HTTP, which fits the "Operation Stopped" error. I couldn't test on an Apple device, so that last step comes from the client source.

    The same stream has a second problem that affects every client. The audio-only remux uses -movflags frag_keyframe. With no video keyframes, ffmpeg writes the whole book as one fragment, and only once the conversion finishes. A 5-hour Opus book sent nothing for 357 s, then 314 MB at once. Written to a pipe, that fragment's size field is 0, and ffmpeg reported 18,436 decode errors reading the served file back. Adding -frag_duration 2000000 for audio-only output gave 90 fragments, no decode errors, and the first 100 KB in 0.15 s. That doesn't add range support, so it won't fix Apple playback alone, but it's worth fixing on its own.

    For the Apple failure itself, the options I see:

    1. In the Apple app: declare Opus and Vorbis, and the ogg/opus containers, in the audiobook original_http claim. AetherEngine already plays them through FFmpeg, and the video path already declares them. The server would then send the original file with byte ranges from any node. This is the simplest, but the app calls that claim deliberately narrow, so it needs device testing.
    2. On the server: an audio-only HLS route for clients that declare HLS with AAC. The planner has no audio-only streaming HLS path today, so this means a new route and ffmpeg recipe. It handles a node dying mid-stream best.
    3. On the server: convert to a finished file and serve that with ranges. This needs new storage and cache rules, and the first play of a long book waits for the whole conversion.

    I haven't opened a PR, because the choice between these is a maintainer call.

    AI disclosure: reproduced by Claude Code (claude-opus-5-5) at the maintainer's direction.

  3. Quick104 commented on Nov 26, 2026

    @Quick104
    Contributor

    Still reproduces on server 2970 · a16a24720 with silo-apple 3289bedbd (iPhone and iPad simulators, validation run for Silo-Server/silo-apple#339). Opus and Ogg Vorbis audiobooks end in "Something went wrong / Operation Stopped", and Try Again fails the same way. The server plans server_remux_progressive, and a ranged request gets 200 from the start of the stream (internal/apiv2/playback_delivery.go:144).

    The client side has changed since this issue was written:

    • At 3289bedbd the audiobook player runs on Aether (iosApp/iosApp/Screens/Audio/AudioPlayerViewModel.swift:17), not AVPlayer.
    • Its audiobook codec claim leaves out opus and vorbis on purpose ("Keep its first-build claim deliberately narrow", iosApp/iosApp/Screens/Player/ProtocolV3/ApplePlaybackV3Capabilities.swift:88-91).
    • Aether already claims opus and vorbis for original video files (iosApp/iosApp/Shared/AppleDecodeCapabilities.swift:113-116).

    Widening the audiobook claim might let these books direct-play and skip the conversion. The server's range handling would still matter for any other converted audio.

    Evidence: https://evidence.siloserver.org/r/silo-apple/v1-validation-339/

    Posted with Claude Code (claude-sonnet-5-5 testing, claude-opus-5-5 verification) and GitHub CLI at the maintainer's direction.

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

    bugimpact: playbackpriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions