Configuration File
MegaDownloader stores all settings in a local configuration file namedconfig.txt located in the application’s root directory. This file is automatically created when you save settings through the Preferences panel.
The configuration file uses a simple key-value format with values enclosed in double quotes.
Configuration Format
Theconfig.txt file uses the following format:
Available Configuration Keys
MegaDownloader supports the following configuration options:ytdlp Path
ytdlp Path
Key:
pathDescription: Specifies the absolute path to the yt-dlp executable.Required: YesExample:Download Directory
Download Directory
Key:
downloadDirDescription: Sets the default directory where downloaded files will be saved.Required: No (defaults to project directory)Example:FFmpeg Path
FFmpeg Path
Key:
ffmpegPathDescription: Manual path to the FFmpeg directory (optional if FFmpeg is in the yt-dlp directory).Required: No (auto-detected if in yt-dlp directory)Example:This setting is only needed if FFmpeg is not in the same directory as yt-dlp. See the FFmpeg setup guide for more details.
Example Configuration
A completeconfig.txt file might look like this:
Managing Settings via GUI
You can configure all settings through the Preferences panel without manually editing the config file.Configure yt-dlp Path
Click Change location and select your
yt-dlp.exe file.The current path will display as “Not configured” if no path has been set.Set Download Directory (Optional)
Click Change Download directory to select where files should be saved.Default: “Default (where project is stored)”
Configure Additional Options
- Create M3U for playlists: Enable to automatically generate playlist files
- Download Speed: Set speed limits using the slider and toggle
Speed Limiter Configuration
The speed limiter is configured through the Preferences panel and is stored in memory (not persisted to config.txt).Speed Limiter Controls
- Range: 1 KB/s to 100,000 KB/s
- Default: 1000 KB/s
- Controls: Both slider and text field update synchronously
- Toggle: Enable/disable the limiter with the “Limiter” button
Configuration Persistence
How Settings Are Loaded
When the application starts, it readsconfig.txt from the working directory:
How Settings Are Saved
When you click Save in Preferences, the application writes toconfig.txt:
Validation
Path Validation
Path Validation
The application validates that you’ve selected a path before allowing you to save:
- If the path shows “Not configured”, saving is blocked
- A warning dialog appears: “Please select a yt-dlp location first”
File Chooser Filters
File Chooser Filters
When selecting the yt-dlp executable:
- File chooser filters for
.exefiles - Accepts all files if needed
- Only accepts files (not directories) for executables
Troubleshooting Configuration
Configuration Not Loading
Common causes:- File is in the wrong directory
- File encoding is incorrect (should be plain text)
- Incorrect format (missing quotes or wrong syntax)
Settings Not Saving
Check for:- Write permissions in the application directory
- Antivirus blocking file writes
- File is not marked as read-only
Invalid Paths
Symptoms:- “yt-dlp path not configured” error on download
- “FFmpeg not found” warning
- Verify paths exist and are accessible
- Use absolute paths (not relative paths)
- Ensure proper escaping of backslashes in Windows paths
Next Steps
FFmpeg Setup
Learn about the hybrid FFmpeg detection system
Troubleshooting
Solve common configuration issues

