Skip to main content

Supported file formats

The following table summarizes the supported media (asset) file formats. This information is based on what the Rust library supports; other libraries in the SDK support the same formats unless noted otherwise.

note

When reading an asset, the SDK first looks at the file name extension to determine the asset type. If the file has no extension, then the SDK uses the MIME type specified in the API call (if any). When the internal header/MIME disagrees with the extension, the SDK uses the extension, not the internal MIME/metadata. If there is no file extension nor MIME type, then the SDK "sniffs the bytes" of the asset using infer to determine the asset type.

ExtensionsMIME type
arw (read-only)image/x-sony-arw
avivideo/msvideo, video/x-msvideo, video/avi, application/x-troff-msvideo
avifimage/avif
c2paapplication/x-c2pa-manifest-store
dngimage/x-adobe-dng
flacaudio/flac
gifimage/gif
heicimage/heic
heifimage/heif
jpg, jpegimage/jpeg
jxlimage/jxl
m4aaudio/mp4
mp3audio/mpeg
mp4video/mp4, application/mp4
Fragmented MP4 (DASH) supported only for file-based operations from the Rust library.
movvideo/quicktime
nef (read-only)image/x-nikon-nef
pdfapplication/pdf
pngimage/png
svgimage/svg+xml
tif, tiffimage/tiff
txt *text/plain
wavaudio/wav
webpimage/webp

* Requires the non-default unstable_plain_text feature.

Experimental feature: asset_io​

The Rust library experimental, non-default unstable_asset_io feature routes every container that asset-io 0.5 supports through it: JPEG, PNG, SVG, RIFF (WAV, WebP, AVI), TIFF/DNG (ARW and NEF read only), MP3, FLAC, GIF, ISO BMFF (MP4, MOV, M4A, HEIC, HEIF, AVIF), and .c2pa sidecars. PDF uses it when the pdf feature is also enabled. JPEG XL, ZIP-based formats and text keep their legacy handlers, as do all formats without unstable_asset_io.

Public handler registration and registry access, differential tests, and their additional dependencies also require unstable_asset_io. Standard Makefile targets do not enable it; use make test-local FEATURES=file_io,fetch_remote_manifests,add_thumbnails,unstable_asset_io to include the experimental integration.

The ID3 adapter preserves unrelated frames byte-for-byte, including malformed compressed frames. Its reader can find a manifest after such a frame even when the legacy ID3 decoder stops before reaching it.

Experimental feature: Text formats​

The Rust library supports the following text formats when the unstable_structured_text feature is enabled.

ExtensionsMIME type
atomapplication/atom+xml
csstext/css
ini(detected by extension)
js, mjstext/javascript
md, markdowntext/markdown
pytext/x-python
rssapplication/rss+xml
sqlapplication/sql
texapplication/x-tex
tomlapplication/toml
vtttext/vtt
yaml, ymlapplication/yaml