Before starting, ensure you’ve completed the Installation guide and configured the yt-dlp path.
Starting the Application
Launch MegaDownloader
Run the application using Maven or the packaged JAR:orThe application window will open with a modern dark theme (FlatLaf Darcula) and display the login screen.
Login to your account
Enter your credentials in the login form:
-
Email: Type your email address (validated in real-time using regex pattern from
LoginForm.java:183) - Password: Enter your password (must not be empty)
- Remember me: Check this box to save your session token for auto-login next time
- Click Login or press Enter
Main.java:227).Downloading Your First Video
Now let’s download a video from YouTube:Paste the video URL
- Copy a YouTube video URL from your browser
- Paste it into the URL text field at the top of the main panel
Configure download options
Before clicking Download, you can customize the download:
- Audio only: Check this box to extract audio as MP3 (requires FFmpeg)
- Advanced options: Click the Advanced ▼ button to add custom yt-dlp arguments
When “Audio only” is checked, MegaDownloader passes these arguments to yt-dlp (
MainPanel.java:570-574):Start the download
Click the Download button.You’ll see:
- The button text changes to “Downloading…”
- A progress bar appears showing real-time download progress
- Console output with yt-dlp logs (if running from terminal)
SwingWorker thread (MainPanel.java:546-694), parsing yt-dlp output to update the progress bar:Wait for completion
When the download completes successfully:
- A success dialog appears: “Download completed successfully!”
- The Play Last Downloaded File button becomes visible
- The URL field updates to: “Insert new URL to download new video”
- If M3U playlist creation is enabled in Preferences, a playlist file is generated
Extracting Audio
To download only the audio from a video:Enable audio extraction
Before clicking Download:
- Paste your video URL
- Check the Audio only checkbox
- Click Download
FFmpeg processing
MegaDownloader will:
- Download the best audio stream from the video
- Use FFmpeg to convert it to MP3 format
- Save the file with the video title and
.mp3extension
Playing Downloaded Files
MegaDownloader includes a built-in player launcher:Play the last downloaded file
After a successful download, click the Play Last Downloaded File button.The application uses Java’s Desktop API to open the file with your system’s default media player (
MainPanel.java:714-717):Browse all downloaded files
To manage your entire media library:
- Click the Manage Media button in the bottom-right corner
- The Media Manager panel opens with a table showing:
- All local files in your download directory
- Files uploaded to the server (if any)
- File type, size, and modification date
- You can:
- Play any file by double-clicking or using Quick Actions
- Open Folder to view files in your file explorer
- Download server files to local storage
- Delete unwanted local files
Use Quick Actions
In the Manage Media panel, double-click any action in the Quick Actions list:
- Play: Opens the selected file in your default media player
- Open Folder: Opens the download directory in file explorer
- Download: Downloads server files to your local directory
- Delete: Permanently deletes local files (with confirmation)
Advanced Features
Custom yt-dlp Arguments
For advanced users, you can pass custom arguments directly to yt-dlp:Enable advanced options
Click the Advanced ▼ button on the main panel. The button changes to Advanced ▲ and reveals a text area.
Speed Limiting
To limit download speed:M3U Playlist Creation
For batch downloads (like playlists), enable automatic M3U file generation:Download a playlist
When you download a playlist, MegaDownloader automatically creates a
playlist.m3u file containing all downloaded items.The M3U creator intelligently filters files based on download mode (MainPanel.java:263-323):- Audio mode: Only includes
.mp3,.m4a,.opus,.wav,.flac,.aac - Video mode: Only includes
.mp4,.webm,.mkv,.avi,.flv,.mov
Keyboard Shortcuts
MegaDownloader supports several keyboard shortcuts for faster navigation:- Enter (on login screen): Submit login form
- Escape: Exit the application or return to previous panel
- Double-click (in Media Manager): Play selected file
Filtering and Searching Media
In the Manage Media panel:Filter by type
Use the dropdown at the top-right to filter:
- All files: Shows everything
- Video: Only video files (.mp4, .webm, .mkv, etc.)
- Audio: Only audio files (.mp3, .m4a, .opus, etc.)
Search by filename
Type in the search field to filter files in real-time by name. The filter is case-insensitive and searches as you type (
ManageMediaPanel.java:284-307).Troubleshooting
Next Steps
Now that you’ve mastered the basics:- Explore the User Guide for detailed information on all capabilities
- Learn about Configuration options to customize your experience
- Check the API Reference if you’re interested in extending the application
MegaDownloader automatically saves your login session when “Remember me” is checked. On next launch, it will attempt auto-login using your saved token (
LoginForm.java:265-279).
