Fixing FFmpeg: No Audio when Converting DVD VOB to MP4

Abstract: Resolve silent MP4 output from DVD VOB files by re-encoding AC3 audio to AAC using explicit stream mapping.

Created: 2026-09-26 by

FFmpeg often outputs silent MP4 files from DVD VOB sources because the default audio codec (AC3) is incompatible with standard MP4 containers or FFmpeg selects the wrong stream index. To fix this, explicitly map the correct audio stream and re-encode it to AAC using the -c:a aac flag. This ensures broad compatibility across all media players and devices.

Understanding the Audio Codec Mismatch

DVD Video discs typically store audio in AC3 (Dolby Digital) format within the VOB container. While AC3 is robust for broadcast and disc playback, many modern MP4 players and web browsers do not support native AC3 decoding inside an MP4 wrapper. When you run a basic conversion command without specifying an audio codec, FFmpeg may attempt to copy the AC3 stream directly into the MP4 file. If the player cannot decode AC3, you will hear silence despite the video playing correctly. It is important to note that while the ISO Base Media File Format supports various codecs, the specific combination of AC3 audio inside an MP4 container is not universally supported by hardware decoders. Therefore, transcoding the audio is usually necessary rather than just copying the stream. The most reliable solution is to convert the AC3 audio to AAC, which is the standard audio codec for MP4 files.

Identifying the Correct Stream Index

A common mistake is hardcoding stream indices like 0:0 for video and 0:1 for audio. On DVDs, the structure is complex. A single VOB file might contain multiple angles, chapters, or even multiple audio tracks (such as different languages). If your DVD has more than one audio track, assuming the first track is always at index 1 can lead to selecting a silent track or the wrong language entirely. Before running the conversion, you must inspect the input file to see exactly what streams are available. Use the following command to list all streams:
ffmpeg -i input.vob
Look for lines starting with Stream. You will see entries like Stream #0:0(eng): Video... and Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo.... Note the number after the hash symbol (#). If there are multiple audio streams, they might be listed as #0:1, #0:2, etc. Always verify these indices against your desired output before proceeding. For a deeper understanding of how to detect streams programmatically, you might find How to detect with ffmpeg if the stream has video or audio or both helpful for automating this selection process.

The Robust Conversion Command

Once you have identified the correct stream indices, use explicit mapping flags to ensure FFmpeg processes the right data. Do not rely on implicit behavior. The recommended command structure forces FFmpeg to re-encode the audio to AAC while keeping the video in a compatible format like H.264.
ffmpeg -i input.vob -map 0:v:0 -map 0:a:0 -c:v libx264 -c:a aac -b:a 192k output.mp4
Here is a breakdown of why each part is critical:
  • -map 0:v:0: Explicitly selects the first video stream from the first input file. Using the specific stream specifier (:0) is safer than just 0:v if multiple video streams exist.
  • -map 0:a:0: Explicitly selects the first audio stream. Adjust the index if your audio is at position 1 or 2.
  • -c:v libx264: Re-encodes the video using the H.264 codec, which is universally supported in MP4 containers.
  • -c:a aac: Forces the audio to be re-encoded to AAC. This solves the "no audio" issue caused by unsupported AC3 in MP4.
  • -b:a 192k: Sets the audio bitrate to 192 kbps, providing good quality while keeping file sizes reasonable.
If you encounter issues where the resulting file still lacks audio, check if the selected stream was actually an empty track. Some DVDs include placeholder audio tracks. In such cases, you may need to change 0:a:0 to 0:a:1 or higher until you find a track with actual content.

Handling Multiple Audio Tracks

DVDs often contain multiple language options. If you want to preserve all available audio tracks in your MP4, you can map all of them. However, remember that MP4 containers have limits on how many streams they can efficiently handle, and some players may only play the first audio track. To include all audio streams, modify the map command:
ffmpeg -i input.vob -map 0:v:0 -map 0:a -c:v libx264 -c:a aac output.mp4
The -map 0:a syntax selects all audio streams from the first input. Be aware that if you have several high-quality audio tracks, the final file size will increase significantly. If you only need a specific language, stick to the explicit -map 0:a:X approach. For those interested in fine-tuning the audio characteristics further, such as adjusting volume levels during conversion, Adjusting Volume Levels with FFmpeg: A Fade Solution provides additional techniques for audio post-processing.

Troubleshooting Silent Output

If you have followed the steps above and still get no audio, consider these diagnostic checks:
  1. Verify Stream Content: Play the original VOB file in a player like VLC. Does it have audio? If the source is silent, FFmpeg cannot create audio from nothing.
  2. Check Codec Compatibility: Ensure your FFmpeg build supports AAC encoding. Most official builds do, but custom compiled versions might lack it.
  3. Container Issues: Try muxing into a Matroska (.mkv) container instead of MP4. If audio plays in MKV but not MP4, the issue is strictly container compatibility, confirming that AAC re-encoding is the correct path.
By explicitly mapping streams and forcing AAC re-encoding, you eliminate the ambiguity that causes silent MP4 files. This method works reliably for virtually all DVD VOB conversions.

Frequently Asked Questions

Why does my MP4 have video but no audio?

This usually happens because FFmpeg copied the original AC3 audio stream into the MP4 container, but your media player does not support AC3 inside MP4. Re-encoding the audio to AAC resolves this incompatibility.

Can I copy the audio stream instead of re-encoding?

You can try using -c:a copy, but this often fails for DVD VOB files because AC3 is not widely supported in MP4 containers. Re-encoding to AAC is the safest way to ensure playback on all devices.

How do I know which audio stream index to use?

Run ffmpeg -i input.vob and look for the Audio stream line. The number after the hash symbol (e.g., #0:1) is the index. If the first audio track is silent, try mapping 0:a:1 or 0:a:2.

Does FFmpeg support AC3 in MP4 natively?

While the MP4 specification technically allows AC3, many hardware players and software decoders do not implement this feature. It is best practice to transcode AC3 to AAC for maximum compatibility.

What bitrate should I use for AAC audio?

A bitrate of 128k to 192k is standard for clear speech and music. Use 192k for better quality if file size is not a concern, or 128k to save space.

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