KDE Dolphin service menus for audio/video conversion optimized for Davinci Resolve on Linux
Dolphin Davinci Audio Tools provides right-click context menu options in KDE Dolphin to convert video files for compatibility with Davinci Resolve on Linux. Since Davinci Resolve on Linux doesn't support AAC audio natively, this tool makes it easy to convert your files to professional formats that work seamlessly.
- Davinci Resolve Limitation: Cannot handle AAC audio streams in video files
- Linux Solution: Easy conversion to compatible formats without leaving the file manager
- Professional Codecs: Support for industry-standard DNxHD/DNxHR intra-frame codecs
- Audio Conversions: Convert between AAC and FLAC formats while preserving video
- Davinci Resolve Codecs: DNxHD (≤1080p) and DNxHR SQ (>1080p) with smart resolution detection
- Container Support: Professional .mov containers for DNx codecs
- Progress Tracking: Real-time progress bars with time elapsed
- Batch Processing: Convert multiple files simultaneously
- Metadata Preservation: Maintains video streams, subtitles, chapters, and metadata
- Orientation Support: Works with both horizontal and vertical video content
You must install these dependencies before using the tool:
sudo apt install ffmpeg zenity libnotify-bin bcsudo dnf install ffmpeg zenity libnotify bcsudo pacman -S ffmpeg zenity libnotify bcsudo zypper install ffmpeg zenity libnotify-tools bc- ffmpeg: For video/audio conversion
- zenity: For graphical progress dialogs
- libnotify/notify-send: For desktop notifications
- bc: For mathematical calculations in progress tracking
cd dolphin-davinci-audio-tools
chmod +x install.sh
./install.shThe installer will:
- Check for missing dependencies
- Offer to install them automatically on Ubuntu/Debian and Arch Linux systems
- Install service menus to the correct Dolphin location
- Set proper permissions
- Display usage instructions
Supported distributions for automatic installation:
- Ubuntu/Debian and derivatives (Linux Mint, Pop!_OS, etc.)
- Arch Linux and derivatives (Manjaro, EndeavourOS, Garuda, etc.)
-
Install dependencies manually (see above)
-
Create the service menu directory:
mkdir -p ~/.local/share/kio/servicemenus -
Copy service menu files:
cp servicemenus/*.desktop ~/.local/share/kio/servicemenus/ chmod +x ~/.local/share/kio/servicemenus/*.desktop
-
Copy scripts to a user-accessible location:
mkdir -p ~/.local/share/dolphin-davinci-audio-tools cp scripts/* ~/.local/share/dolphin-davinci-audio-tools/ chmod +x ~/.local/share/dolphin-davinci-audio-tools/*
-
Restart Dolphin to reload service menus:
kquitapp5 dolphin && dolphin
After installation, simply right-click on video or audio files in Dolphin and select "Davinci Resolve Conversions" from the context menu.
- Convert AAC audio to FLAC (replace): AAC → FLAC (16-bit, 48kHz), replaces original file
- Convert AAC audio to FLAC (.mkv): AAC → FLAC, creates new .mkv file, preserves original
- Note: FLAC conversions only work with AAC audio sources
- Convert audio to AAC (replace original): Non-AAC → AAC (192kb/s, 48kHz), replaces original file
- Convert audio to AAC (smart container): Non-AAC → AAC, creates new file with smart container selection
- Convert to DNxHD/DNxHR (replace): Any resolution → appropriate intra-frame codec, replaces original file
- Convert to DNxHD/DNxHR (.mov): Any resolution → appropriate intra-frame codec, creates new .mov file, preserves original
Note: The "to_davinci_resolve" scripts automatically convert to DNxHD (≤1080p) or DNxHR SQ (>1080p) based on video resolution.
The tool automatically selects the best container format for optimal compatibility:
- FLAC Conversions: Creates .mkv files for best reliability (FLAC works better in .mkv containers)
- DNxHD/DNxHR Conversions: Creates .mov files for professional standards (required by DNx codecs)
- AAC Conversions: Uses smart container selection (.mov for DNxHD video, .mp4 for other codecs)
File Extension Changes:
- Replace options may change file extensions for compatibility (e.g.,
video.mov→video.mkvfor FLAC) - Original files are backed up temporarily during replacement, then safely removed
The tool automatically detects video resolution and selects the optimal codec:
- DNxHD: Used for content with ≤1080p total pixels (1920×1080 or 1080×1920)
- DNxHR SQ: Used for content with >1080p total pixels (4K and above, any orientation)
Mixed Resolution Support: Select multiple files with different resolutions (HD + 4K) and convert them all at once - each file automatically gets the appropriate codec for its resolution.
All conversions include:
- Visual Progress Bar: Shows conversion percentage and elapsed time
- Desktop Notifications: Success/failure notifications when complete
- Error Handling: Comprehensive error checking and user feedback
- FLAC: Lossless audio, ideal for archival and professional editing
- AAC: High-quality compressed audio (192kb/s, 48kHz, stereo)
- Sample Rate: All conversions use 48kHz for professional video compatibility
- DNxHD: Intra-frame codec for ≤1080p content (industry standard)
- DNxHR SQ: Scalable codec for >1080p content (4K, 8K, etc.)
- Compression: Intra-frame for frame-by-frame editing precision
- Color Space: YUV 4:2:2 for professional color grading
- .mov: Professional container for DNxHD/HR (recommended for Davinci Resolve)
- .mkv: Open container for audio conversions
- .mp4: Standard container for AAC conversions
- Video: All formats supported by FFmpeg (.mp4, .mkv, .mov, .avi, etc.)
- Audio: All formats supported by FFmpeg (.aac, .flac, .wav, .mp3, etc.)
- Video: .mov (DNxHD/HR), .mkv (original container)
- Audio: .flac (lossless), .mp4 (AAC), .mkv (preserves original container)
- Right-click on video file with AAC audio
- Select "Davinci Resolve Conversions" → "Convert AAC audio to FLAC (.mkv)"
- Wait for conversion to complete
- Use the new file in Davinci Resolve with fully compatible audio
- Right-click on 4K video file
- Select "Davinci Resolve Conversions" → "Convert to DNxHD/DNxHR (.mov)"
- The tool automatically detects 4K resolution and applies DNxHR SQ
- Result: Professional-grade video ready for editing
# Restart Dolphin
kquitapp5 dolphin && dolphin
# Check service menu installation
ls -la ~/.local/share/kio/servicemenus/Note: Service menu validation warnings are normal and don't affect functionality. KDE service menus use different standards than regular .desktop files.
# Verify all dependencies are installed
which ffmpeg zenity notify-send bc
# Test FFmpeg functionality
ffmpeg -version# Make sure scripts are executable
chmod +x ~/.local/share/dolphin-davinci-audio-tools/*
chmod +x ~/.local/share/kio/servicemenus/*.desktop- Check system logs:
journalctl -r - Verify file permissions and disk space
- Ensure source files aren't corrupted
cd dolphin-davinci-audio-tools
chmod +x uninstall.sh
./uninstall.sh# Remove service menus
rm ~/.local/share/kio/servicemenus/dolphin-davinci-conversions.desktop
# Remove scripts
rm -rf ~/.local/share/dolphin-davinci-audio-tools
# Restart Dolphin
kquitapp5 dolphin && dolphinThis project is licensed under the MIT License. See the LICENSE file for details.
This project is provided as-is for educational and personal use. Please ensure you have appropriate rights to convert and modify any media files.
Contributions are welcome! When submitting changes:
- Test thoroughly with various file formats and resolutions
- Ensure compatibility across different Linux distributions
- Follow existing code style and conventions
- Update documentation as needed