video/ogg means: video/ogg is the registered media type for video in an Ogg container, usually carrying Theora video with Vorbis audio. It is an open, patent-free format that predates WebM and is supported by Firefox and Chromium, though largely superseded for new work. Video media types describe moving-image containers, which bundle video, audio and subtitle streams. The subtype drives player selection and streaming behavior; modern delivery often pairs a container type with adaptive streaming manifests. Declaring the correct video type is essential for inline playback, poster frames and hardware-accelerated decoding. You will encounter video/ogg in contexts such as legacy open-format web video; theora/vorbis video in open-source pipelines; fallback video source in multi-format players. It is commonly associated with the file extension(s) .ogv. Theora is less efficient than modern codecs like VP9 or H.264, so video/ogg is rarely the best choice today. Prefer WebM or MP4 for new delivery; keep Ogg only for legacy compatibility or specific open-source tooling requirements.
When you'll see video/ogg
- Legacy open-format web video
- Theora/Vorbis video in open-source pipelines
- Fallback video source in multi-format players
How to handle it
When delivering video, choose a container and codec combination your audience supports, enable byte-range requests for progressive playback, and use adaptive streaming manifests for varying bandwidth. Provide a poster image and captions track where relevant. Always declare the exact video type on segments and manifests; a mismatch is a common cause of players that load but never start. As a final checklist for video types: enable faststart and byte-range requests, provide adaptive streaming for variable bandwidth, include captions and a poster frame, match the declared type to the real container and codec, and test playback on the devices your audience actually uses.
Notes & gotchas
Theora is less efficient than modern codecs like VP9 or H.264, so video/ogg is rarely the best choice today. Prefer WebM or MP4 for new delivery; keep Ogg only for legacy compatibility or specific open-source tooling requirements.
Examples
HTTP/1.1 200 OK
Content-Type: video/ogg
Accept-Ranges: bytes
Content-Disposition: inline; filename="sample.ogv"
[binary video payload: the encoded bytes of a sample .ogv] curl -i -H "Accept: video/ogg" https://api.example.com/v1/resource # inspect the returned Content-Type const res = await fetch("/media/sample.ogv", { headers: { Accept: "video/ogg" } });
const blob = await res.blob(); // blob.type should be "video/ogg"
const url = URL.createObjectURL(blob); // assign to img.src / audio.src / video.src
// revoke with URL.revokeObjectURL(url) when done to free memory import requests
res = requests.get("https://api.example.com/v1/resource",
headers={"Accept": "video/ogg"}, timeout=30)
res.raise_for_status()
assert res.headers["Content-Type"].startswith("video/ogg")
with open("sample.ogv", "wb") as fh:
fh.write(res.content) # raw bytes; use stream=True for large files Frequently asked questions
Should I use video/ogg for new projects?
Generally no — WebM (VP9) and MP4 (H.264) offer better compression and support. video/ogg/Theora is a legacy open format kept mainly for compatibility.
What codecs does video/ogg carry?
Typically Theora video and Vorbis audio. The Ogg container can also hold Opus or FLAC, but for video Theora is the conventional pairing.
Which video MIME type should I serve for the web?
video/mp4 (H.264/AAC) has the broadest support; video/webm (VP9/Opus) is efficient and open. For adaptive streaming use application/vnd.apple.mpegurl (HLS) or application/dash+xml. Match the type to the actual container.
Can I stream video with a plain video/mp4 type?
Yes for progressive download with byte-range requests (Accept-Ranges: bytes). For adaptive bitrate streaming you need a manifest type (HLS/DASH) plus segment types; the player switches quality based on bandwidth.
Why does my video download fully before playing?
The moov atom is likely at the end of the file and the server lacks byte-range support. Re-mux with faststart (moov at the front) and enable Accept-Ranges: bytes for progressive playback.
Try the Base64 Encoder
Encode and decode Base64 with UTF-8 and URL-safe options.