Media conversion
Convert audio and video files between supported containers and formats.
Convert, inspect, and preview audio and video with a clean Flutter API. Nyx Converter handles FFmpeg execution, validation, progress, and conversion management for you.
nyx_converter: ^1.0.0
A focused API for building audio and video workflows without manually managing FFmpeg commands.
Convert audio and video files between supported containers and formats.
Select the video codec used to encode your output media.
Choose the audio codec for your converted media.
Select a target video resolution such as 720p, 1080p, or 4K.
Configure sample rate, channel layout, and audio bitrate.
Track progress, FPS, and FFmpeg processing speed while converting.
Stop an active FFmpeg conversion when your application needs to.
Validate media information before and during conversion workflows.
Retrieve media information and generate video thumbnails.
Add the package, configure your conversion, and listen to execution updates.
Add nyx_converter to your Flutter project's
dependencies.
Choose the container, codecs, resolution, audio settings, and bitrates you need.
Use the execution callback to receive status, progress, FPS, speed, and errors.
import 'package:nyx_converter/nyx_converter.dart';
await NyxConverter.convertTo(
'/storage/input.mp4',
'/storage/output',
container: NyxContainer.mp4,
videoCodec: NyxVideoCodec.h264,
audioCodec: NyxAudioCodec.aac,
size: NyxSize.w1920h1080,
sampleRate: NyxSampleRate.hz48000,
channelLayout: NyxChannelLayout.stereo,
videoBitrate: 5,
audioBitrate: 192,
fileName: 'converted',
execution: (
status, {
progress,
fps,
speed,
errorMessage,
}) {
print(status);
print(progress);
print(fps);
print(speed);
},
);
The core API covers conversion, media inspection, thumbnails, and conversion control.
convertTo()
Convert an input media file using the selected options.
getMediaInfo()
Read media information including video and audio properties.
getThumbnail()
Generate a thumbnail from a video file.
kill()
Cancel the currently running FFmpeg conversion.
execution
Receive conversion status and runtime information.
NyxMediaInfo
Work with structured media, video, and audio information.
Use typed enums and simple values to describe the output you want.
Nyx Converter currently supports the following Flutter platforms.
Detailed configuration and API guidance is available in the GitHub Wiki.
Add Nyx Converter to your Flutter project and keep media conversion simple.