Linux Setup¶
Install and configure FFmpeg on Linux
Table of Contents¶
Installation¶
Ubuntu/Debian¶
Fedora¶
Arch Linux¶
Verify Installation¶
Bundling FFmpeg with Your App¶
For distribution, you can bundle FFmpeg with your application:
Using CMakeLists.txt¶
Add to linux/CMakeLists.txt:
# Copy FFmpeg binary to bundle
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/ffmpeg"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ)
Configure Fluvie to Use Bundled FFmpeg¶
import 'dart:io';
import 'package:path/path.dart' as path;
import 'package:fluvie/fluvie.dart';
void main() {
// Get the directory where the executable is located
final execDir = path.dirname(Platform.resolvedExecutable);
final ffmpegPath = path.join(execDir, 'lib', 'ffmpeg');
if (File(ffmpegPath).existsSync()) {
FluvieConfig.configure(ffmpegPath: ffmpegPath);
}
runApp(MyApp());
}
Snap/Flatpak Considerations¶
If distributing via Snap or Flatpak, FFmpeg may need to be included in your package or accessed via a plug/portal.
Snap¶
Add to snap/snapcraft.yaml:
Flatpak¶
Add to your manifest:
{
"modules": [
{
"name": "ffmpeg",
"buildsystem": "autotools",
"sources": [
{
"type": "archive",
"url": "https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz"
}
]
}
]
}
Troubleshooting¶
FFmpeg Not Found¶
-
Check if FFmpeg is in PATH:
-
If installed but not in PATH, configure the path:
Permission Denied¶
Ensure the FFmpeg binary has execute permissions:
Missing Codecs¶
Some distributions ship FFmpeg without proprietary codecs. Install the full version:
Related¶
- Platform Overview - All platforms
- FFmpeg Setup - General FFmpeg guide
- Custom FFmpeg Provider - Custom integrations