Repository navigation
Description
What should the engine do?
Please support loading finite remote MPEG-DASH MPD sources with separate video and audio representations, initially the on-demand SegmentBase shape described below, through AetherEngine's managed media-request path.
I understand that formats.md at 7.45.0 explicitly says remote DASH is not playable. This is a concrete capability request motivated by a playback failure, rather than a claim that an already-supported source has regressed.
Motivating media and observed failure
A local HTTP media adapter returns a static MPD from an extensionless playback URL:
- GET: HTTP 200,
Content-Type: application/dash+xml; charset=utf-8,Content-Length: 2206. - GET with
Range: bytes=0-: also HTTP 200 with the complete 2206-byte MPD. - Duration: 1450 seconds.
- Video: one H.264 representation,
avc1.640032, 1920×1080, approximately 23.973 fps, MP4 media. - Audio: three AAC representations,
mp4a.40.2, 44.1 kHz, two channels, approximately 156/65/90 kbps. - Each representation has its own HTTP
BaseURL,SegmentBase@indexRange, andInitialization@range.
The host author manually verified the same playback URL in IINA. That is user-provided playback acceptance; the IINA extraction/demux path was not traced, so this report does not assume its FFmpeg has a DASH demuxer.
The integration classifies the source as non-HLS and passes the original URL to Aether. The request succeeds, but the engine fails while opening the manifest, before media-stream probing or codec decoding:
admission result=aether-default reason=confirmed-non-hls
nativeRemoteHLS=false heldSourceConnection=true progressiveSegmentDelivery=true isLive=false
MEDIA_REQUEST event=response status=200 transport=avio-held-http1 range=bytes=0-
MEDIA_REQUEST event=finished errorCode=0 transport=avio-held-http1 bytes=2206
HLSVideoEngine: open failed (Demuxer: open failed
(Invalid data found when processing input (-1094995529)))
The small text response is the MPD itself, not an HTTP error page.
Independent reproduction
To separate the missing format capability from host networking and local Swift patches, I loaded the unmodified FFmpegBuild 3.9.0 macOS libraries directly and opened a saved copy of the MPD through the C API:
av_find_input_format("dash"); // NULL
av_find_input_format("hls"); // non-NULL
av_find_input_format("mov"); // non-NULL
av_find_input_format("matroska"); // non-NULL
AVFormatContext *ctx = NULL;
int ret = avformat_open_input(&ctx, "sample-redacted.mpd", NULL, NULL);
// ret == -1094995529: Invalid data found when processing inputThe following sanitized MPD also reproduces the same result with those libraries. Only its four media URLs were replaced with placeholders; it is 1915 bytes after redaction. These URLs are not a playable public sample. This repro establishes manifest-open failure without needing access to the original service.
Sanitized MPD for the library-only reproduction
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" type="static" mediaPresentationDuration="PT1450S" minBufferTime="PT1.5S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
<Period duration="PT1450S" start="PT0S">
<AdaptationSet>
<ContentComponent contentType="video"/>
<Representation id="80_7" bandwidth="975745" codecs="avc1.640032" mimeType="video/mp4" height="1080" width="1920" frameRate="23.973" sar="1:1" startWithSAP="1">
<BaseURL><![CDATA[https://media.example.invalid/video.m4s]]></BaseURL>
<SegmentBase indexRange="915-4458">
<Initialization range="0-914"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<AdaptationSet>
<ContentComponent contentType="audio"/>
<Representation id="30280_" bandwidth="156755" codecs="mp4a.40.2" mimeType="audio/mp4" numChannels="2" sampleRate="44100" startWithSAP="">
<BaseURL><![CDATA[https://media.example.invalid/audio-156k.m4s]]></BaseURL>
<SegmentBase indexRange="849-4368">
<Initialization range="0-848"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<AdaptationSet>
<ContentComponent contentType="audio"/>
<Representation id="30216_" bandwidth="65679" codecs="mp4a.40.2" mimeType="audio/mp4" numChannels="2" sampleRate="44100" startWithSAP="">
<BaseURL><![CDATA[https://media.example.invalid/audio-65k.m4s]]></BaseURL>
<SegmentBase indexRange="849-4368">
<Initialization range="0-848"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<AdaptationSet>
<ContentComponent contentType="audio"/>
<Representation id="30232_" bandwidth="90164" codecs="mp4a.40.2" mimeType="audio/mp4" numChannels="2" sampleRate="44100" startWithSAP="">
<BaseURL><![CDATA[https://media.example.invalid/audio-90k.m4s]]></BaseURL>
<SegmentBase indexRange="849-4368">
<Initialization range="0-848"/>
</SegmentBase>
</Representation>
</AdaptationSet>
</Period>
</MPD>The actual tvOS Simulator app's embedded libavformat configuration was also inspected: it has no enabled DASH demuxer or libxml2, disables the FFmpeg network stack, and enables only file, pipe, and data protocols. FFmpegBuild's build.sh records the missing libxml2 dependency. Enabling DASH parsing alone would therefore still leave child-resource loading to be integrated with the engine's transport.
Environment and evidence scope
- Host integration: Syncnext / SyncnextHybrid, custom tvOS client.
- AetherEngine base: 7.45.0, commit
52802afaaf035a7f729bba1043b640ad4d9ebb3e. - FFmpegBuild: 3.9.0, commit
3b398c8f6340fe5fb4a7cb9a2a211a16677171e0, FFmpeg n8.1.3. - App reproduction: tvOS 27.0 Simulator, Apple TV 4K (3rd generation, 1080p) simulator on an arm64 Mac.
- Independent library repro: macOS 27.0.1 arm64.
- The app integration has local Aether transport/diagnostic patches and a local FFmpegBuild package reference; this is not presented as a pristine-upstream end-to-end reproduction. The independent FFmpegBuild-only reproduction does not execute those Swift patches.
- No physical-device acceptance or successful Aether DASH playback is claimed.
Area
Codec / container support, including MPD representation selection and managed loading of separate audio/video resources. The requested outcome is synchronized playback of this finite DASH source through Aether, without changing providers or requiring the host to silently substitute another playback source.
Activity
Merge feat/dash-mpd-vod-859: play remote MPEG-DASH on-demand manifests (
superuser404notfound commentedon Oct 25, 2026
Thanks for the detailed report, the library-only repro and the sanitized MPD made this straightforward to build against.
Remote on-demand DASH is now supported on
main(merge1e0ee6aa, not in a release yet). The engine does not demux DASH itself: it reads the MPD with Foundation'sXMLParser, fetches each selected representation'sInitializationrange andsidxin one range request, and lays the representations out as one fragmented MP4 (a moov with one track per representation, a synthesizedsidxper representation, and the representations' own subsegments interleaved by start time). The normalmovpath demuxes that file, so the native and software routes, seeks, audio track switching, scrub previews andprobeall work unchanged. Details are indocs/formats.mdunder "MPEG-DASH (on-demand)".What applies to your source:
.mpdURL opens as DASH directly. An extensionless URL like yours is recognized by its body (an MPD root after an optional BOM, XML declaration and comments), the same way an HLS playlist is recognized by#EXTM3U. The log line to look for is[DASH] AE#859: N representation(s) of M laid out as one fragmented MP4.LoadOptions.httpHeadersride every request, manifest included. The origin has to honourRangeon the representation files (SegmentBase cannot be addressed otherwise); if it does not, the load fails with that reason.type="dynamic", more than one Period,SegmentTemplate/SegmentList, an initialization segment in a separate file, hierarchicalsidx, and encryption.Building this also turned up an engine bug in fragmented MP4 in general (
3d66d7a0): libavformat indexes such a file one fragment at a time, so a stream seek whose next sync sample started an unread fragment landed on whatever later fragment an earlier read had indexed (start at 150 s, seek to 60 s, landed at 122 s). That now lands next to the target.Verified with
aetherctlagainst a local range origin: an H.264 + two-language AAC presentation in your manifest's shape on the native route (seeks to 150 / 60 / 200 s landed at 150.15 / 59.90 / 200.00 s, audio switch worked, and the origin byte total matched the same content as a single MP4), AV1 on the software route, and a GPAC-generated MPD with an XML prolog on an extensionless URL. Your sanitized manifest is in the test suite. No real device and not your original service, so a retest against your source would be very welcome. I'm leaving this open until then.fix(demuxer): a forward seek in a fragmented MP4 no longer skips to a…
feat(dash): play remote MPEG-DASH on-demand manifests (superuser404no…
test(dash): run the close-during-open test's open on its own thread (#…
Merge fix/disc-media-type-860: recognize extensionless remote disc im…
Merge PR #818: preserve source failures and request ownership (thanks @…
superuser404notfound commentedon Oct 26, 2026
Released in 7.48.0 (263dc11). Leaving this open for the retest.
qoli commentedon Nov 6, 2026
I retested the original B-site episode through the same T4 source on a physical Apple TV running tvOS 26.6.1, using Syncnext 1.212 (579) Release and AetherEngine 7.56.0 (
76ad51a7). The extensionless endpoint still returned the original 2,206-byte manifest. The engine logged[DASH] AE#859: 4 representation(s) of 4 laid out as one fragmented MP4and exposed 1920×1080 H.264 plus all three stereo AAC tracks. Duration was 1,449.96 s.The foreground run reached native AVPlayer playback in 7.97 s from the app play request. I verified visible video on the TV and switched from AAC track 1 to track 2 with the actual playback menu. The new track was selected and video continued from the switch position. A forward seek to 218 s landed at 218.005 s and a backward seek to 60 s landed at 60.000 s. Both resumed playback with track 2 selected.
An earlier run had already built the engine session when the host rejected presentation with
missing-presenter. The foreground relaunch cleared that app-level condition. The focusedDASHSourceTestspassed on the same pinned engine sources.Thanks for adding support for this manifest shape.