Introduction
An .f4m file is the manifest of Adobe HTTP Dynamic Streaming (HDS), the
adaptive streaming system Adobe introduced in 2010 for Flash Player. Like an HLS
playlist, it tells the player which versions of a video exist and how to find their
fragments, which are usually served as F4F files.
HDS fell out of use with Flash Player, which Adobe retired at the end of 2020. F4M files still turn up on older video sites and in archived streams.
Structure
The full reference:
- Manifest elements – every element and attribute of F4M 1.0 and 2.0, and multi-level manifests
- Bootstrap information – the binary abst, asrt and afrt boxes, and fragment addresses
The manifest is XML with the root element manifest in the namespace
http://ns.adobe.com/f4m/1.0 (or 2.0 for the later version).
Simple elements give the id, the streamType
(recorded or live) and the duration.
bootstrapInfo elements hold, in Base64, the table that maps times to
segments and fragments. Each media element describes one encoding, with its
address, bit rate and size, and a Base64 metadata block in the form of
the FLV onMetaData object.
<manifest xmlns="http://ns.adobe.com/f4m/1.0">
<id>film</id>
<streamType>recorded</streamType>
<bootstrapInfo profile="named" id="bootstrap1">…</bootstrapInfo>
<media url="film_1000" bitrate="1000" width="640" height="360" bootstrapInfoId="bootstrap1">
<metadata>…</metadata>
</media>
</manifest>
Not described
Adobe’s own F4M pages are gone. The pages follow a third-party copy of the F4M 2.0 specification, youtube-dl’s reader and OSMF source.
Known, not yet covered
- Reference: Adobe’s F4V specification (a PDF) was not read, so the
abstbox definition rests on youtube-dl’s reader. - Reference: bootstrap profile value 1 (range access); only the named profile (0) is described.
- Viewer: there is no F4M viewer plugin yet; the explorer shows the file as XML text.
Unknown
- Reference: the later Adobe additions (
cueInfo,bestEffortFetchInfo,adaptiveSet, F4M 3.0), which are not in the copy read, and the namespace URIs of the 1.0 and 2.0 forms, which that copy does not give (they are taken from common use).