Convert HEVC to OGA — Free Online Tool

Extract and convert the audio track from an HEVC/H.265 video file into an OGA container encoded with Vorbis audio. This is ideal for stripping high-efficiency video files down to audio-only Ogg streams for open-format playback, archiving, or streaming pipelines.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

HEVC (H.265) is a video-only or video-primary format — its audio track (if present) is extracted and transcoded into Vorbis audio, then wrapped in the Ogg container with an .oga extension. The H.265 video stream is discarded entirely, since OGA is a pure audio container and cannot store video. Vorbis encoding uses variable bitrate compression controlled by a quality scale, meaning the encoder targets perceptual quality rather than a fixed bitrate. The result is a compact, open-format audio file suitable for playback in Firefox, VLC, and other Ogg-aware applications.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg program — the open-source multimedia processing engine that performs the audio extraction and Vorbis encoding. In the browser-based version of this tool, FFmpeg runs locally via WebAssembly (FFmpeg.wasm) without sending your HEVC file to any server.
-i input.hevc Specifies the input file — in this case an HEVC/H.265 video file. FFmpeg reads the file, identifies the H.265 video stream and any audio streams present inside it, and makes them available for processing or discarding.
-c:a libvorbis Sets the audio codec to libvorbis, which encodes the extracted audio into the Vorbis format — an open, patent-free lossy audio codec developed by the Xiph.Org Foundation and the native codec of the OGA container. The H.265 video stream is automatically discarded since OGA cannot contain video.
-q:a 4 Sets the Vorbis variable bitrate quality level to 4 on a scale of 0–10, targeting approximately 128 kbps. This is a balanced default that produces good perceptual quality for speech and general audio at a reasonable file size; increasing this value yields higher fidelity at the cost of larger files.
output.oga Defines the output filename with the .oga extension, which tells FFmpeg to wrap the encoded Vorbis audio stream in an Ogg container formatted as an audio-only file. The .oga extension distinguishes this from a general .ogg file and signals to media players that the container holds exclusively audio content.

Common Use Cases

  • Extract the audio commentary or narration from an H.265-encoded screen recording or lecture video for use as a standalone audio file
  • Strip the soundtrack from an HEVC-encoded film or TV episode to create an open-format audio archive compatible with Linux-based media players
  • Pull ambient or background audio from a 4K HEVC drone or camera recording to use as royalty-free background audio in a project
  • Convert an H.265 video podcast or interview recording into an OGA audio file for distribution on platforms that accept Ogg audio
  • Extract audio from HEVC files recorded on modern smartphones or cameras to produce Vorbis streams for a self-hosted, open-source music or podcast server like Navidrome or Ampache
  • Reduce storage footprint of a large HEVC video archive by retaining only the Vorbis audio track in a lightweight OGA file

Frequently Asked Questions

Yes, unless the original HEVC file's audio track was already Vorbis-encoded (which is uncommon). Most HEVC files carry AAC or AC-3 audio, which must be decoded and re-encoded into Vorbis — a lossy-to-lossy transcode that introduces a second generation of compression artifacts. At the default quality setting of -q:a 4 (roughly 128 kbps equivalent), the result is transparent for most listeners, but audiophiles working with high-quality source audio may want to raise the quality to 6–8. If the source audio is lossless (e.g., PCM), the quality loss is determined entirely by the Vorbis encoder settings you choose.
The H.265 video stream is completely dropped. OGA is an audio-only container format built on the Ogg specification and has no mechanism for storing video data. FFmpeg automatically omits any video stream when targeting an audio-only output container like OGA, so no explicit flag is needed to discard it. Only the first audio track from the HEVC source is extracted and encoded.
Yes — the OGA container supports FLAC, which is a lossless codec. To use it, you would modify the FFmpeg command to use -c:a flac and remove the -q:a flag, since FLAC does not use a quality scale. This is useful when the HEVC source contains high-quality or lossless audio and you want to preserve it without any additional compression loss, at the cost of a larger output file.
OGA and OGG use the same underlying Ogg container format — the difference is purely in the file extension convention. OGA specifically signals that the file contains only audio (typically Vorbis, FLAC, or Opus), while .ogg is a more general extension that can also contain video (Theora). Using .oga makes the file's purpose unambiguous to media players and tagging tools. Both extensions are treated identically by FFmpeg and most playback software.
Change the value after -q:a to any integer between 0 and 10. The default is 4, which targets approximately 128 kbps. Raising it to 6 targets around 192 kbps, and 8 targets around 256 kbps — both providing noticeably better fidelity for music or high-quality speech. Setting it to 0 produces the smallest file at the lowest acceptable quality (~64 kbps). For example: ffmpeg -i input.hevc -c:a libvorbis -q:a 6 output.oga
Yes. In a Unix shell (macOS or Linux), you can loop over all HEVC files in a directory with: for f in *.hevc; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.hevc}.oga"; done. On Windows Command Prompt, the equivalent is: for %f in (*.hevc) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.oga". This applies the same Vorbis encoding settings to every HEVC file in the current folder.

Technical Notes

OGA's Vorbis codec uses a perceptual VBR model, meaning the -q:a scale maps to approximate bitrate targets rather than exact ones — actual bitrate varies with audio complexity. HEVC files commonly carry multi-channel audio (5.1 or 7.1), but OGA with libvorbis does support multi-channel encoding; however, this tool extracts only the first audio stream by default. Metadata tags (artist, title, album, etc.) embedded in the HEVC source may not transfer cleanly, as HEVC containers don't standardize metadata the same way Ogg Vorbis Comment tags do — you should verify and re-tag the OGA output with a dedicated tool like MusicBrainz Picard if tag accuracy matters. The OGA format supports chapters, though FFmpeg will not automatically generate chapter markers from an HEVC source during this conversion. Files larger than 1GB (common with 4K HEVC recordings) exceed the browser-based tool's limit and should be processed using the displayed FFmpeg command locally, where no file size restrictions apply.

Related Tools