NyxContainer enum
Description:
Media file containers, sometimes called wrappers, are the digital equivalent of filing cabinets for your audio and video. They don't determine the content itself, but rather how it's organized and stored. Here's a quick breakdown:
- Structure: They define the overall layout of the file, including headers that identify the container format, data chunks for video, audio, subtitles, and other elements, and information on how these elements work together.
- Flexibility: Some containers, like MKV (Matroska Multimedia Container), are like spacious cabinets that can hold various types of encoded data (video codecs, audio codecs, subtitles). Others, like MOV (Apple QuickTime Movie), might be more specific, designed for a particular ecosystem.
Key Points:
- The container format doesn't affect the quality of the media itself. That's determined by the codecs used for encoding the video and audio.
- Choosing the right container format depends on your needs. If compatibility is crucial, MP4 is a safe bet. For maximum flexibility and features, MKV might be better.
Example:
final filePath = 'path/to/my.mp4';
final outputPath = 'path/to/';
NyxConverter.convertTo(filePath, outputPath, container: NyxContainer.mp4);
- Inheritance
- Available extensions
Values
- avi → const NyxContainer
-
An older format that stores video and audio together, like a classic filing cabinet for multimedia. Less common now, but still usable with many programs.
- mp4 → const NyxContainer
-
The current champ, super versatile and compatible with most devices. It's like a universal box that can hold different video and audio formats (codecs) within itself.
- mkv → const NyxContainer
-
he super-flexible option. It's like a feature-rich file cabinet that can hold multiple video tracks, subtitles, chapters, and more, all in one place.
- mov → const NyxContainer
-
Primarily used by Apple for their devices and software. Similar to MP4 in terms of holding different codecs, but might not play as smoothly on non-Apple products.
- webM → const NyxContainer
- ogg → const NyxContainer
-
Often linked to the Vorbis audio codec, but OGG itself is the container. Think of it as a box designed for open-source software, sometimes used for web applications.
- wav → const NyxContainer
-
Stores audio with the highest quality, like an exact replica, but results in large file sizes.
- flac → const NyxContainer
-
FLAC is a popular open-source container format designed specifically for lossless audio compression. It efficiently reduces file size without any loss of audio quality
- mp3 → const NyxContainer
-
High compatibility, efficient compression, widely supported across devices and platforms.
- aac → const NyxContainer
-
Better compression and quality than mp3 at similar bit rates, widely supported.
Properties
- command → String
-
Available on NyxContainer, provided by the NyxContainerCommandExtension extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - name → String
-
Available on NyxContainer, provided by the NyxContainerNameExtension extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
NyxContainer> - A constant List of the values in this enum, in order of their declaration.