Audio-Only Checkbox
The main download panel includes an “Audio only” checkbox (audioChk) that enables audio extraction mode (MainPanel.java:371-379).
Enabling Audio Extraction
Check the Audio only box
Before clicking Download, check the Audio only checkbox next to the Download button.The checkbox is located at coordinates (410, 320) in the main panel.
Paste video URL and download
Paste your video URL and click the Download button as normal.The download process will automatically extract only the audio track.
The
-x flag tells yt-dlp to extract audio, while --audio-format mp3 specifies the output format.FFmpeg Integration
Audio extraction requires FFmpeg to be installed and accessible to yt-dlp.FFmpeg Auto-Detection
MegaDownloader automatically searches for FFmpeg in the same directory as yt-dlp (MainPanel.java:222-254):
ffmpeg.exe- Main FFmpeg executable for audio/video processingffprobe.exe- Media information utility
Manual FFmpeg Configuration
If auto-detection fails, you can manually specify the FFmpeg path inconfig.txt (MainPanel.java:239-250):
FFmpeg Location in Download Command
When FFmpeg is found, its location is passed to yt-dlp (MainPanel.java:554-557):
Audio Extraction Workflow
Here’s what happens when you download with audio-only mode enabled:FFmpeg extracts audio
FFmpeg extracts the audio track from the video container.This happens automatically through yt-dlp’s integration.
Conversion to MP3
FFmpeg converts the extracted audio to MP3 format.The application specifically requests MP3 output using
--audio-format mp3.FFmpeg Not Found Warning
If you enable audio-only mode but FFmpeg is not detected, you’ll see a warning dialog (MainPanel.java:516-537):
You can choose to continue the download, but it may fail if FFmpeg is required for the extraction.
Setting Up FFmpeg
Download FFmpeg
Download FFmpeg from the official website or a Windows build.You need both
ffmpeg.exe and ffprobe.exe.Option 1: Place in yt-dlp directory
Copy
ffmpeg.exe and ffprobe.exe to the same folder as yt-dlp.exe.MegaDownloader will auto-detect them on next launch.Audio Format Details
MegaDownloader currently supports MP3 as the audio format:MP3 Specifications
- Format: MPEG Layer 3
- Container:
.mp3 - Codec: Determined by FFmpeg (typically LAME encoder)
- Bitrate: Determined by yt-dlp’s best audio selection
- Sample Rate: Preserved from source
Supported Audio Extensions
The application recognizes the following audio file types (MainPanel.java:273-277):
.mp3- MPEG Layer 3.m4a- MPEG-4 Audio.opus- Opus codec.wav- Waveform Audio.flac- Free Lossless Audio Codec.aac- Advanced Audio Coding
While MegaDownloader can manage various audio formats, the audio extraction feature specifically outputs MP3 files.
M3U Playlist for Audio
If you have M3U playlist creation enabled in Preferences, MegaDownloader will automatically create a playlist for downloaded audio files (MainPanel.java:263-323).
Audio File Filtering
WhenaudioOnly mode is enabled, the M3U playlist includes only audio files (MainPanel.java:274-278):
M3U File Location
The playlist is saved asplaylist.m3u in your download directory (MainPanel.java:294-299).
Progress Tracking for Audio
Audio extraction progress is tracked through yt-dlp’s output:Extraction Status Messages
The application monitors for extraction-specific output (MainPanel.java:605):
Progress Bar Updates
The progress bar shows:- Download progress during video download phase
- Continues updating during audio extraction
- Completes when the final MP3 is ready
Playing Audio Files
After downloading an audio file:- The “Play Last Downloaded File” button becomes visible
- Clicking it opens the MP3 in your default audio player
- The file is opened using Java’s Desktop API (
MainPanel.java:704-737)
Troubleshooting Audio Extraction
Audio extraction fails silently
Audio extraction fails silently
Cause: FFmpeg not found or not properly configuredSolution:
- Check that
ffmpeg.exeandffprobe.exeare in the yt-dlp directory - Or add
ffmpegPathtoconfig.txt - Restart MegaDownloader after configuration
Download completes but no MP3 file
Download completes but no MP3 file
Cause: FFmpeg conversion failedSolution:
- Check console output for FFmpeg error messages
- Ensure FFmpeg has write permissions to the download directory
- Verify the source video actually has an audio track
Audio quality is poor
Audio quality is poor
Cause: Source video has low-quality audioSolution:
- yt-dlp automatically selects the best available audio quality
- Some videos only have low-bitrate audio available
- Try downloading from a different source
Next Steps
Download Videos
Learn how to download full video files
Manage Audio Files
Browse and manage your downloaded audio library

