Extract Audio from HEVC to OGA — Free Online Tool
Extract audio from HEVC/H.265 video files and save it as an OGA file encoded with Vorbis — a fully open, patent-free audio format stored in an Ogg container. This is especially useful for pulling audio from high-efficiency H.265 footage where no re-encoding of the video is desired, delivering a compact, streamable audio file.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your HEVC file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
HEVC (H.265) video files contain a video stream compressed with libx265 and typically one or more audio streams. This tool discards the video stream entirely and extracts only the audio, re-encoding it using the libvorbis encoder into the OGA container format — an Ogg container holding a Vorbis audio stream. Because Vorbis is a lossy codec, the audio is re-encoded rather than copied, meaning the bitrate and quality are determined by the -q:a setting. The OGA output has no video data at all, making it significantly smaller than the source HEVC file and suitable for playback in any Vorbis-capable audio player.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool, which handles all multimedia demuxing, decoding, encoding, and muxing operations in this conversion pipeline. |
-i input.hevc
|
Specifies the input file — an HEVC/H.265 video stream. FFmpeg will demux this file to access its individual streams, including the audio track that will be extracted and re-encoded. |
-vn
|
Disables video output entirely, instructing FFmpeg to ignore the H.265 video stream and produce an output file containing only audio. Without this flag, FFmpeg would attempt to include the video, which would fail or produce an invalid file since OGA is an audio-only container. |
-c:a libvorbis
|
Sets the audio encoder to libvorbis, which encodes the extracted audio as Ogg Vorbis — the native and most compatible audio codec for the OGA container format. Vorbis is an open, patent-free lossy codec well-suited for music and voice. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a scale of 0–10, which targets approximately 128 kbps. This default strikes a balance between file size and perceptual audio quality suitable for most speech and music content extracted from HEVC video. |
output.oga
|
Defines the output filename and signals to FFmpeg that the file should be wrapped in an Ogg container with the .oga extension, the standard designation for audio-only Ogg files containing the Vorbis stream produced by the previous flags. |
Common Use Cases
- Pull the audio commentary or narration track from an H.265 screen recording or tutorial video to distribute as a standalone audio file
- Extract a musical score or soundtrack from an H.265 encoded film or video project for archiving in an open, patent-free format
- Strip audio from HDR or 4K H.265 drone footage to create ambient soundscapes or field recordings without carrying the large video payload
- Convert the audio layer of H.265 video podcasts or recorded interviews into OGA for playback on Linux-based media players that natively support Ogg Vorbis
- Extract spoken-word audio from H.265 lecture or conference recordings for transcription pipelines or accessibility workflows
- Produce lightweight OGA audio previews from large H.265 video assets for use in web-based media libraries or CMS platforms that support Ogg streaming
Frequently Asked Questions
Yes, some quality loss is expected because the audio is re-encoded using the libvorbis encoder rather than copied directly. The original audio in the HEVC file may have been encoded with AAC, AC-3, or another codec that cannot be placed natively inside an OGA/Ogg container, so transcoding to Vorbis is necessary. At the default quality setting of -q:a 4, which targets roughly 128 kbps, the result is transparent for most listeners. If you need the highest fidelity, raise the quality value toward 10, or consider using the FLAC codec option within OGA for lossless output.
OGA and OGG both use the Ogg container format, but OGA is the officially designated file extension for Ogg files that contain only audio streams — no video. Since this tool discards the H.265 video and retains only the audio, OGA is the semantically correct extension. Many audio players and Linux desktop environments recognize OGA specifically as an audio-only Ogg file, which can help with correct MIME type detection and playback.
Yes. To adjust Vorbis quality, change the -q:a value anywhere from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps). If you want lossless audio instead, replace '-c:a libvorbis -q:a 4' with '-c:a flac' — FLAC is also supported inside the OGA container and produces bit-perfect audio at the cost of larger file sizes. Alternatively, you can use '-c:a libopus -b:a 128k' for Opus encoding, which offers better compression efficiency than Vorbis at the same bitrate.
On Linux or macOS, you can run the following shell loop in your terminal: for f in *.hevc; do ffmpeg -i "$f" -vn -c:a libvorbis -q:a 4 "${f%.hevc}.oga"; done. On Windows PowerShell, use: Get-ChildItem *.hevc | ForEach-Object { ffmpeg -i $_.FullName -vn -c:a libvorbis -q:a 4 ($_.BaseName + '.oga') }. This applies the same extraction and Vorbis encoding settings to every HEVC file in the current directory.
FFmpeg attempts to copy global metadata tags from the source file to the output by default, so title, artist, or comment tags embedded in the HEVC container may appear in the OGA file. However, HEVC files — particularly raw .hevc streams — often carry minimal metadata compared to containers like MKV or MP4. You can explicitly set tags in the output using flags like -metadata title='My Track' appended to the command. OGA/Ogg Vorbis supports Vorbis Comment metadata, which is widely read by Linux and open-source audio players.
The size reduction is dramatic. HEVC video dominates file size — a 4K H.265 video might be several gigabytes, while the extracted Vorbis audio at -q:a 4 for the same duration could be just a few megabytes. For example, one hour of audio at Vorbis quality 4 is roughly 50–70 MB, regardless of the resolution or complexity of the original HEVC video. This makes OGA extraction ideal for sharing just the audio content of large HDR or high-resolution H.265 files.
Technical Notes
The OGA format uses the Ogg bitstream container with Vorbis audio as its default codec, both of which are fully open-source and patent-free — a notable contrast to the H.265/HEVC source format, which is subject to complex patent licensing. The libvorbis encoder used here operates in variable bitrate (VBR) mode governed by the -q:a quality scale: a value of 4 targets approximately 128 kbps, which is generally considered transparent quality for music and voice. One key limitation is that OGA does not support multiple audio tracks, so if the source HEVC file contains multiple audio streams (e.g., multiple languages), only the default stream will be extracted unless you specify a stream selector like -map 0:a:1 in the command. OGA does support chapter markers, meaning if you manually add chapter metadata post-conversion it will be preserved, but HEVC sources rarely carry chapter data that transfers cleanly. For maximum compatibility with non-Linux environments, note that OGA/Ogg Vorbis has limited native support on Windows and macOS without third-party codecs, whereas formats like MP3 or AAC enjoy broader built-in support.