Common Issues and Solutions
This guide covers the most frequently encountered problems in MegaDownloader and their solutions, based on real issues documented in the source code.FFmpeg Issues
FFmpeg Not Found Error
Problem: When attempting audio extraction, yt-dlp reports “ffprobe and ffmpeg not found” Symptoms:- Warning dialog appears when selecting “Audio only”
- Download fails with FFmpeg-related errors
- Console shows: “FFmpeg not found (auto-detect or manual)”
Option 1: Automatic Detection (Recommended)
Place FFmpeg executables in the same directory as yt-dlp:
- Download FFmpeg from https://www.gyan.dev/ffmpeg/builds/
- Extract
ffmpeg.exeandffprobe.exe - Copy both files to your yt-dlp directory
MainPanel.java (lines 222-254), the detection logic checks both locations:
Audio Extraction Fails
Problem: Download completes but no audio file is created Common Causes:Missing FFmpeg Components
Missing FFmpeg Components
Symptom: Error messages about missing codecs or librariesSolution: Download the “full” FFmpeg build instead of “essentials”
Incorrect File Permissions
Incorrect File Permissions
Symptom: “Access denied” or permission errorsSolution:
- Ensure ffmpeg.exe and ffprobe.exe are not blocked by antivirus
- Right-click each file → Properties → Unblock
- Run MegaDownloader as administrator if needed
Path Issues
Path Issues
Symptom: FFmpeg detected but extraction still failsSolution:
- Verify paths don’t contain special characters or spaces
- Use absolute paths, not relative paths
- Check that both ffmpeg.exe and ffprobe.exe exist in the same directory
Playlist Issues
M3U Playlist Contains Duplicate Files
Problem: When downloading audio from playlists, the M3U file includes both .webm (intermediate) and .mp3 (final) files Impact: Playlist players attempt to play both versions, causing duplicates Solution: This issue has been solved in the current version. MegaDownloader now filters files based on download mode:- Audio mode: Only includes audio extensions (.mp3, .m4a, .opus, .wav, .flac, .aac)
- Video mode: Only includes video extensions (.mp4, .webm, .mkv, .avi, .flv, .mov)
MainPanel.java (lines 269-287):
If you’re still seeing duplicates, ensure you’re using the latest version of MegaDownloader.
Window and UI Issues
Window Cannot Be Dragged
Problem: UsingsetUndecorated(true) removes window controls and dragging capability
Solution:
MegaDownloader implements custom mouse listeners for window dragging. The window can be dragged from anywhere on the content pane.
Implementation:
The solution tracks initial click position and calculates window movement:
Login Issues
Login Bypass Vulnerability
Problem: Users could access Preferences panel and bypass login Solution: Fixed by changing how panel navigation works:- Implemented proper panel navigation history
- Added
goBack()method to track previous panels - Preferences back button now returns to the correct panel
- Login form must be completed before accessing main features
README.md (lines 162-165):
Login Form Validation
Problem: Users could submit invalid credentials Solution: Real-time validation has been implemented:Email Validation
Email Validation
- Real-time regex validation using
DocumentListener - Red border appears on invalid email format
- Visual feedback before submission
Password Validation
Password Validation
- Empty password check
- Red border feedback on empty field
- Prevents submission with missing password
Login UI Improvements
Fixed issues:- Wait cursor during login: Shows
WAIT_CURSORwhile processing - Disabled fields: Input fields disabled during login attempt
- Button text changes: “Login” → “Logging in…”
- Success popup removed: Automatically navigates to main screen
Speed Limiter Issues
Speed Limiter Not Working
Problem: Download speed limit is not applied Checklist:Verify Limiter is Enabled
- Go to Edit > Preferences
- Click the Limiter toggle button
- Ensure button is in “pressed” state
Set Speed Value
Use either:
- Slider: Drag to set speed (1-100,000 KB/s)
- Text field: Type speed value directly
PreferencesPanel.java (lines 70-123), the limiter uses dual synchronized controls:
Speed Limiter Values Not Persisting
The speed limiter setting is stored in memory only and is NOT saved to config.txt. You must reconfigure it each session.
Configuration Issues
Configuration Not Saving
Problem: Settings are lost when restarting the application Solutions:Click Save Button
Click Save Button
File Permissions
File Permissions
Symptom: Save button clicked but config.txt not updatedSolution:
- Check write permissions in application directory
- Disable antivirus temporarily to test
- Ensure config.txt is not marked read-only
- Run application as administrator if needed
Working Directory
Working Directory
Symptom: config.txt created in unexpected locationSolution:
- config.txt is created in the working directory (where you run the application)
- If running from IDE, check your run configuration’s working directory
- For JAR files, config.txt appears next to the JAR
Invalid Configuration Format
Problem: Application doesn’t load settings from config.txt Common mistakes:Check Syntax
Format must be:
key:"value"- No spaces around colon
- Double quotes required
- One setting per line
Verify File Encoding
- Must be plain text (UTF-8 or ASCII)
- No BOM (Byte Order Mark)
- Use a text editor like Notepad++ to verify
Download Issues
No URL Error
Problem: “Please enter a valid video URL” error when clicking Download Causes:- URL field is empty
- URL field contains placeholder text “Paste Video URL”
- URL has only whitespace
- Paste a valid video URL into the text field
- Ensure URL is not the default placeholder text
- Common valid URLs:
- YouTube:
https://www.youtube.com/watch?v=... - Vimeo:
https://vimeo.com/... - Other yt-dlp supported sites
- YouTube:
Configuration Error on Download
Problem: “yt-dlp path not configured” error Solution:Configure yt-dlp Path
- Go to Edit > Preferences
- Click Change location
- Select your
yt-dlp.exefile - Click Save
UI and Display Issues
Images Not Loading
Problem: Banner or GitHub logo shows “Image not found” text Causes:- Image resources missing from classpath
- Incorrect resource path
- Build/packaging issue
- Verify images exist in
src/main/resources/images/ - Rebuild project:
mvn clean compile - Check console for resource loading errors
Progress Bar Not Showing
Problem: Download starts but no progress is visible Explanation: The progress bar is intentionally hidden by default and only appears during active downloads. Normal behavior:- Hidden: Initial state
- Visible: During download
- Hidden: After download completes
MainPanel.java (lines 381-384):
Getting Help
Console Output
Most issues can be diagnosed by checking the console output. Key messages to look for:Report Issues
If you encounter issues not covered in this guide:- Check console output for error messages
- Verify configuration in config.txt
- Test yt-dlp manually to rule out yt-dlp issues
- Document steps to reproduce the problem
Next Steps
Configuration Settings
Review all available configuration options
FFmpeg Setup
Learn more about FFmpeg configuration

