Removing Extra Audio Tracks from an MP4 Without Re-encoding Using ffmpeg

Abstract: Multi-track MP4 files can be slimmed down to a single video and audio stream using ffmpeg's stream-copy remuxing, which keeps quality identical and avoids re-encoding.

Created: 2026-11-18 by

You can strip surplus audio tracks from an MP4 without losing any quality by remuxing the file with ffmpeg -c copy — no re-encoding of video or audio happens, so the operation is fast and lossless. If you omit explicit stream mapping, ffmpeg automatically keeps one video track and one audio track and discards the rest, which is often exactly what a drag-and-drop batch script needs.

Why your file is so large

Files downloaded from streaming pages frequently carry far more tracks than a viewer ever needs. Multi-bitrate delivery formats bundle several video renditions into a single package, and a file may also hold multiple audio tracks — different languages, surround and stereo variants, or descriptive audio. A tool like MediaInfo will reveal, for example, twelve AVC video streams and six AAC streams where you expected one video and one stereo track.

The size bloat comes from all of those extra tracks. When you remove the surplus ones and keep only a single video and a single audio stream, the output is routinely half the size of the original — and that is perfectly normal, not a sign of quality loss.

A common misconception: "AAC (lav)" is not a stream type

If you have used a graphical editor such as Avidemux, you may have seen an audio option labelled AAC (lav). This is not a way to identify an existing stream — it is the name of an encoder built on libavcodec. Selecting it means the audio is decoded and re-encoded, which is exactly what you want to avoid when you only need to drop tracks.

Likewise, ffmpeg's -map option cannot select streams by codec name. Something like -map a:AAC will not work, and it would be useless in any case when all six audio tracks use the same codec: there would be nothing to distinguish them.

The fix: remux with stream copy

The key flag is -c copy. It tells ffmpeg to copy the compressed video and audio packets straight into a new container rather than decoding and re-encoding them. The process is limited by disk speed, takes seconds instead of minutes, and the media quality is bit-for-bit identical to the source.

A drag-and-drop Windows batch script

Save the following as strip_streams.bat. Drag one or more .mp4 files onto it in Explorer:

@echo off
for %%F in (%*) do (
  ffmpeg -i "%%~fF" -c copy -sn -dn -movflags +faststart "%%~dpnF_clean.mp4"
)
pause

How it works:

  • No explicit -map — ffmpeg's default stream selection keeps the video stream with the highest resolution and the audio stream with the most channels (resolving ties by picking the first), then drops everything else. That means you never need to hardcode stream numbers that vary between files.
  • -c copy — remuxes the kept video and audio without re-encoding.
  • -sn -dn — removes subtitle and data streams that could otherwise fail MP4 muxing.
  • -movflags +faststart — repositions the MP4 index to the start of the file so playback and streaming begin immediately.

The output is written next to the input as filename_clean.mp4, so the original is never overwritten.

Selecting a specific track instead of the default

The automatic selection is convenient, but sometimes you need a particular track — for instance, a specific language rather than whichever one has the most channels. In that case, map explicitly. Note the capital V, which selects only genuine video streams and ignores attached cover-art thumbnails:

ffmpeg -i input.mp4 -map 0:V:0 -map 0:a:m:language:eng -c copy -movflags +faststart output.mp4

This keeps the first video stream and the audio stream tagged with the eng language metadata. To find the correct three-letter tag for your file, run ffprobe -hide_banner input.mp4 and read the language labels (for example deu, fra, or jpn), then substitute accordingly.

Checking the result

Verify the output with the same tools you used for diagnosis:

ffprobe -hide_banner output.mp4

You should see exactly one video stream and one audio stream, both with the original codec parameters unchanged. MediaInfo should likewise report a single track of each type, with the same profile and bitrate as the source. If the file still looks oversized, re-check MediaInfo — occasionally a large "moov" metadata section or embedded cover art accounts for the remainder, which the -movflags and default selection usually handle.

Frequently Asked Questions

Will removing audio tracks reduce video quality?

No. When you use -c copy, the video packets are transferred unchanged into the new container. Quality loss only occurs if you re-encode, which stream copying never does.

How do I know which audio stream to keep?

Run ffprobe -hide_banner file.mp4 and inspect the stream list. Each audio stream shows its codec, channel count, and language tag. If you want the track with the most channels, simply omit -map entirely and let ffmpeg's default selection pick it for you.

Why does the output file end up only half the size of the original?

Because the original contained many redundant tracks — several video renditions and multiple audio streams. Keeping one of each removes all of that overhead, so a large size reduction is expected and does not indicate anything was lost from the tracks you kept.

Can ffmpeg pick an audio stream by codec name, like "AAC"?

No. -map selects by stream index, type, or metadata such as language — not by codec name. When all audio tracks share the same codec, a codec filter would not identify a specific track anyway.

Does the batch script overwrite my original file?

No. It writes the result to a new file with the suffix _clean.mp4 in the same folder, leaving the source untouched. Delete the original manually once you have verified the copy.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More