Repository navigation
Description
Problem
Silo-Server/silo-server#1810 (fixing Silo-Server/silo-server#1791) makes the server record when ffprobe rejects a file, and starting such a file now answers outcome: adaptation_unavailable with terminal.reason: source_unreadable, retryable: false, and the message "The source file could not be read; it appears to be empty or damaged." Before, the same files answered source_metadata_incomplete with retryable: true, which the web app showed as "This file hasn't finished scanning". silo-android does not list source_unreadable among the server terminal reasons it recognises (SAFE_SERVER_TERMINAL_REASONS in android-shared/.../player/video/VideoPlaybackStartResult.kt), so it is not treated as a known reason yet.
Silo-Server/silo-server#1809 (#1790) and #1810 also change the v2 contract (new response media types; an optional unreadable field on EpisodeFile), so the vendored v2 fixtures need a sync once both merge.
Proposed change
After both server PRs merge:
- Sync the v2 fixtures (
scripts/sync-apiv2-fixtures.shagainst silo-servermain, ormake apiv2-fixtures-syncfrom silo-server). - Treat
source_unreadableas a final error: show the server's message (or "This file can't be played. It appears to be empty or damaged."), no retry, no "still scanning" wording. Keepsource_metadata_incompleteas it is. - Optionally, show a "Damaged file" marker on episodes whose files all have
unreadable: truein v2 episode lists, as the web does.
Whether to claim m2ts (Blu-ray transport streams, newly cataloged by #1809) or report .webm as its own container is being checked separately; it depends on what the native player can play.
References
- Server: fix(playback): mark unreadable files and stop blaming the scan silo-server#1810, fix(scanner): catalog .webm, .mov, .m2ts and other common video files silo-server#1809
- Docs:
docs/playback-api.md(terminal reasons) in silo-server - Found during the Series validation, Series — Web silo-server#1252 C6
AI Disclosure
- Harness: Claude Code (running in T3 Code)
- Tool(s): Claude Code (Bash, Read, sub-agents, browser automation through the T3 Code preview), GitHub CLI, Docker, FFmpeg
- Model(s): claude-opus-5-5
- Involvement: Fully AI-generated, human verified
- Adversarial review: n/a
Activity
Rhainland commentedon Oct 2, 2026
Finding that changes this issue's scope: silo-android claims
m2tsandmtstoday (media3OriginalVideoContainersinPlaybackContainerPolicy.kt, used for the top-levelcontainers,original_http.containersand the download capabilities), but Media3 1.11'sTsExtractoronly handles 188-byte transport-stream packets. Blu-ray/AVCHD.m2ts/.mtsfiles use 192-byte packets, so Media3 should fail to recognise them (found from the extractor code; not yet confirmed on a device).Until now this didn't matter because the server never cataloged
.m2ts. Once Silo-Server/silo-server#1809 merges, the planner will offer those files to Android as direct play: playback would fail to start and recover only through afailure_recoveryreplan to an HLS remux, and offline downloads would fetch the raw.m2tsand fail with no server to fall back to.Proposed addition to this issue: remove
m2tsandmtsfrom the claimed containers (keepts/mpegts), so the server remuxes those files (a cheap codec copy), and add them back only if a Media3 release supports 192-byte packets and a device test confirms it. Ideally this lands before or with #1809.webmis fine to keep: Media3'sMatroskaExtractorhandles it.fix(playback): stop claiming m2ts/mts direct play
fix(playback): stop claiming m2ts/mts direct play (#452)