flutter_media_muxer 0.0.2
SDKflutter
Platformandroidios
A Flutter package for muxing video and audio streams, with support for YouTube downloads. Provides functionality for combining video and audio files into a single MP4 file. Created by Erfan Alizada on 14-4-2025.
flutter_media_muxer
A Flutter package for muxing video and audio streams, with support for YouTube downloads.
Features
- Mux video and audio files into a single MP4 file
- Download and mux YouTube videos
- Progress tracking for downloads
- Platform-specific implementations (Android, iOS support coming soon)
Getting started
Add this to your package's pubspec.yaml file:
dependencies:
flutter_media_muxer: ^0.0.2
Usage
// Simple muxing
final success = await FlutterMediaMuxer.muxMedia(
videoPath: 'path/to/video.mp4',
audioPath: 'path/to/audio.m4a',
outputPath: 'path/to/output.mp4',
);
// YouTube download and mux
final outputPath = await FlutterMediaMuxer.downloadAndMuxYouTubeVideo(
videoId: 'youtube_video_id',
outputPath: 'path/to/output.mp4',
onProgress: (progress) {
print('Download progress: ${progress * 100}%');
},
);
Additional information
For more information, check out:
License
MIT License - see the LICENSE file for details