# Sources [View original](https://ittybit.com/docs/sources) ## Usage At it's simplest, a source is what you'd pass to an ``, ``, or `` tag's `src` attribute. ```html ``` ```html ``` ```html ``` In production projects, you'll usually want to provide multiple sources for a media object. For example, you might want to [generate a poster image](/docs/image) for the video, which can be used to display a thumbnail or preview before playback begins. ```html ``` You might then want to provide a version of the video in the more efficient WEBM format for browsers that support it, and fallback to your MP4 version for browsers that don't. ```html ``` See [Media](/docs/media) for more examples. } title="Media" /> *** ## Kinds Sources can be of the following kinds: * `video` * `audio` * `image` *** ## Video Commonly used in `` tags or as input for mobile, TV, and other video media players.  ### Codecs & Containers Uploaded or ingested files can contain: | Property | Values | | ------------------ | -------------------------------------------- | | Video Stream Codec | `h264/avc`, `h265/hevc`, `vp8`, `vp9`, `av1` | | Audio Stream Codec | `aac`, `opus`, `mp3`, `flac`, `vorbis` | | Media Container | `mp4`, `webm`, `mov`, `avi`, `mkv` | [Tasks](/docs/video) can output: | Property | Values | | ------------------ | ----------------- | | Video Stream Codec | `h264/avc`, `vp9` | | Audio Stream Codec | `aac`, `opus` | | Media Container | `mp4`, `webm` | If you require `hevc`, `av1`, or any other codecs or containers, please [contact us](/support). ### Resolution Uploaded or ingested files can be: * upto `4096px` on the longest edge * upto `16MP` in total pixels Tasks have the same default limits. [^1] ### Duration Uploaded or ingested files can be: * upto `4 hours` in duration Tasks have the same default limits. [^1] ### Filesize Uploaded or ingested files can be: * upto `4TB` in size Tasks have the same default limits. [^1] ### New Video See the [Video Tasks](/docs/video) section for more information about creating new video sources. } title="Video Tasks" /> *** ## Image Commonly used in `` or `` tags.  ```html ``` ### Formats Uploaded or ingested files can be: | Property | Values | | ------------ | --------------------------------------------------- | | Image Format | `jpeg`, `png`, `webp`, `gif`, `hevc`/`heic`, `avif` | [Tasks](/docs/image) can output: | Property | Values | | ------------ | ------------------------------------ | | Image Format | `jpeg`, `png`, `webp`, `gif`, `avif` | If you require `svg` support, or need to support files in any other format, please [contact us](/support) for early access. ### Resolution Uploaded or ingested files can be: * upto `8192px` on the longest edge * upto `32MP` in total pixels Tasks have the same default limits. [^1] ### HDR We support HDR images in formats that allow it: * `heic`/`heif` with HEVC codec * `avif` with AV1 codec * `webp` with VP8 codec ### Animation We support animated `gif`, `webp`, and `avif` images. ### Transparency We support transparency in `png`, `webp`, `avif`, and `gif` images with an alpha channel. ### Filesize Uploaded or ingested files can be: * upto `4TB` in size ### New Image See the [Image Tasks](/docs/image) section for more information about creating new image sources. } title="Image Tasks" /> *** ## Audio Commonly used in `` tags. ```html ``` ### Formats Uploaded or ingested files can be: | Property | Values | | ------------------ | -------------------------------------- | | Audio Stream Codec | `aac`, `opus`, `mp3`, `flac`, `vorbis` | | Media Container | `mp3`, `m4a`, `wav`, `ogg` | [Tasks](/docs/audio) can output: | Property | Values | | ------------------ | -------------------- | | Audio Stream Codec | `aac`, `opus`, `mp3` | | Media Container | `mp3`, `ogg`, `wav` | If you require `flac` or any other audio codec, please [contact us](/support) for early access. ### Duration Uploaded or ingested files can be: * upto `4 hours` in duration Tasks have the same default limits. [^1] ### Filesize Uploaded or ingested files can be: * upto `4TB` in size Tasks have the same default limits. [^1] ### New Audio See the [Audio Tasks](/docs/audio) section for more information about creating new audio sources. } title="Audio Tasks" /> *** [^1]: If you need to increase these limits, please [contact us](/support).