feat(media): media put --web — films browsers refuse (HEVC, AC-3, DTS) converted before sealing
ffprobe decides per stream: H.264/VP8/VP9/AV1 and AAC/MP3/Opus are copied, anything else becomes H.264 (CRF 20) / AAC with every audio track and its language kept; embedded text subtitles come out of the same ffmpeg pass as subtitle tracks; picture subtitles are reported. Output is an MP4 with the index first. Without --web, put warns when ffprobe sees streams browsers will not play. Verified: an HEVC + AC-3 5.1 MKV with embedded Norwegian/English SubRip: Chromium refuses the original (DEMUXER_ERROR_NO_SUPPORTED_STREAMS); the --web upload plays with audio decoded and the Norwegian track showing. 78 TS tests. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -298,6 +298,25 @@ in TS, `Albums.parse` / `Albums.read` in Kotlin. The `/watch/` page shows an alb
|
||||
grid with decrypted previews, and Back returns from an item to its album. History
|
||||
entries hold only a depth, never a grant.
|
||||
|
||||
## Films that play in any browser (`--web`)
|
||||
|
||||
Real films are often MKV with AC-3, E-AC-3 or DTS audio, or HEVC video. Browsers decode
|
||||
none of those: Chromium refuses such a file outright ("no supported streams"). Since
|
||||
sealing happens on the uploader's machine and the relay never sees the content, that is
|
||||
the only place to fix it. `shade media put Film.mkv --web` runs ffmpeg first:
|
||||
|
||||
| In the file | Becomes |
|
||||
|---|---|
|
||||
| H.264, VP8, VP9, AV1 video | copied |
|
||||
| other video (HEVC, MPEG-2, …) | H.264 (CRF 20), which takes a while |
|
||||
| AAC, MP3, Opus audio | copied |
|
||||
| other audio (AC-3, E-AC-3, DTS, TrueHD) | AAC, all tracks kept with their languages |
|
||||
| text subtitles (SubRip, ASS, mov_text) | subtitle tracks (below), in the same pass |
|
||||
| picture subtitles (PGS, DVD) | reported and skipped: they cannot become text |
|
||||
|
||||
The result is an MP4 with its index first. Without `--web`, `media put` uses ffprobe
|
||||
(when it is installed) to say which streams browsers will not play.
|
||||
|
||||
## Subtitles
|
||||
|
||||
`shade media put Film.mkv` also seals and uploads the subtitle files next to it, named
|
||||
|
||||
Reference in New Issue
Block a user