Extract Audio from TS to OGA — Free Online Tool
Extract audio from MPEG-2 Transport Stream (.ts) files and save it as an OGA file encoded with the Vorbis codec — ideal for archiving broadcast audio in an open, royalty-free format. This tool strips the video stream entirely and re-encodes the audio (typically AAC or AC3 from broadcast sources) into Ogg Vorbis, running entirely in your browser with no uploads required.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your TS 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
MPEG-2 Transport Stream files commonly carry audio encoded as AAC, AC3, or MP3, often multiplexed alongside one or more video streams and sometimes subtitle tracks. This conversion discards all video data entirely and re-encodes the audio stream into Vorbis, then packages it inside the Ogg container with a .oga extension. Because TS audio codecs (especially AC3 and AAC) are not natively supported inside the Ogg container, a full audio transcode is always required — this is not a simple remux. The Vorbis encoder uses variable bitrate encoding controlled by a quality scale, and the resulting OGA file is a clean, open-format audio file suitable for archiving or web playback. If your TS file contains multiple audio tracks (common in broadcast recordings with multiple language streams), only the first audio track will be extracted by default.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg command-line tool. In the browser version of this tool, this runs via FFmpeg.wasm (WebAssembly), producing identical output to desktop FFmpeg without any server-side processing. |
-i input.ts
|
Specifies the input file as an MPEG-2 Transport Stream. FFmpeg reads the TS container and identifies all multiplexed streams inside it, which may include one or more video tracks, audio tracks (commonly AAC or AC3 in broadcast recordings), and subtitle streams. |
-vn
|
Disables video output entirely, instructing FFmpeg to ignore all video streams from the TS file. This is essential for producing an audio-only OGA file and avoids any unnecessary video decoding work. |
-c:a libvorbis
|
Transcodes the audio stream using the libvorbis encoder, producing Ogg Vorbis audio. This transcode is required because TS audio (typically AAC or AC3) cannot be stored natively in the Ogg container — Vorbis is the default and most widely compatible audio codec for OGA files. |
-q:a 4
|
Sets the Vorbis encoder quality level to 4 on a scale of 0–10, which targets approximately 128–160 kbps VBR output. This default strikes a balance between file size and audio fidelity suitable for most broadcast audio content including speech and music. |
output.oga
|
Defines the output filename with the .oga extension, which signals an audio-only Ogg container. FFmpeg uses this extension to correctly mux the Vorbis audio stream into the Ogg format without including any video data. |
Common Use Cases
- Extracting the audio commentary or dialogue track from a recorded broadcast TV program (.ts) to create a standalone audio file for review or archiving
- Converting AC3 or AAC audio from a DVR or set-top box recording into open Vorbis format for use in a media library that prefers royalty-free codecs
- Pulling the audio from a live-stream recording captured in TS format (e.g., from HLS streams) to produce a podcast or audio-only version of the content
- Archiving radio or audio-only broadcast content stored in TS container files into a lighter, audio-only OGA file to save storage space
- Preparing audio from broadcast capture files for use in open-source video editors or platforms that prefer Ogg-based formats over proprietary audio codecs
- Stripping the video from a transport stream file to isolate a music performance or soundtrack for personal audio playback on Vorbis-compatible players
Frequently Asked Questions
Yes, some quality loss is expected in most cases. TS files typically carry AAC or AC3 audio, both of which are lossy codecs, and transcoding to Vorbis introduces an additional generation of lossy compression. However, at the default quality setting of -q:a 4 (roughly equivalent to 128–160 kbps VBR), the difference is generally inaudible for speech and most music. If your TS source contains lossless FLAC audio, you can preserve quality by switching the output codec to FLAC inside the OGA container instead.
The Ogg container used by OGA only supports Vorbis, FLAC, and Opus audio codecs. Transport Stream files most commonly carry AAC or AC3 audio, neither of which can be stored inside an Ogg container. This means a full transcode to Vorbis (or another supported codec) is mandatory — there is no stream-copy path available for this format pair.
By default, FFmpeg selects the first audio stream in the file, which is typically the primary language track. OGA does not support multiple audio tracks, so only one stream can be included in the output. If you need a specific track (for example, a secondary language), you can modify the FFmpeg command by adding '-map 0:a:1' (for the second audio track) before the output filename to select a different stream by index.
The quality is controlled by the '-q:a' flag, which accepts values from 0 to 10 for the Vorbis encoder. The default of 4 produces good general-purpose quality. Increasing to 6 or 8 will raise quality and file size, while lowering to 2 or 3 is suitable for speech-only content like broadcast dialogue where smaller file size matters more. For example, replace '-q:a 4' with '-q:a 6' in the command for higher fidelity output.
Metadata preservation from TS to OGA is limited and often incomplete. MPEG-2 Transport Streams store metadata in proprietary program-specific information (PSI) tables and service descriptors that do not map cleanly to Ogg comment tags. Basic tags like title may survive the conversion, but broadcast-specific metadata such as channel name, program guide data, and service IDs will typically be lost. OGA does support Vorbis comment metadata, so you can add or edit tags after conversion using a tool like MusicBrainz Picard or ffmpeg's '-metadata' flag.
The command shown converts a single file, but you can adapt it for batch processing in a shell script. On Linux or macOS, you can run: 'for f in *.ts; do ffmpeg -i "$f" -vn -c:a libvorbis -q:a 4 "${f%.ts}.oga"; done'. On Windows Command Prompt, use: 'for %f in (*.ts) do ffmpeg -i "%f" -vn -c:a libvorbis -q:a 4 "%~nf.oga"'. This is especially useful for large collections of DVR recordings or broadcast archive files.
Technical Notes
OGA is strictly an audio-only Ogg container and supports only three codecs: Vorbis, FLAC, and Opus. When extracting from a TS source, the Vorbis codec is used by default, which applies variable bitrate lossy compression governed by the -q:a quality scale rather than a fixed bitrate. Vorbis is a mature, royalty-free codec with broad support in open-source players and web browsers via the HTML5 audio element, though it lacks native support in Apple platforms (Safari, iOS) without third-party plugins. One notable limitation of OGA is that it does not support multiple audio tracks — if your transport stream carries a multi-channel AC3 surround track (e.g., 5.1), Vorbis can encode it in multi-channel format, but it is preserved as a single stream. Channel layout from AC3 surround sources should be handled correctly by the libvorbis encoder automatically. Subtitle tracks present in the TS file are dropped entirely, as OGA has no subtitle support. Chapter markers, however, are supported in the Ogg container, though FFmpeg does not automatically map TS program metadata to Ogg chapters. File sizes will vary significantly depending on source audio complexity, but OGA files are typically much smaller than the original TS files since all video data is removed.