Skip to main content

Crate mux_media

Crate mux_media 

Source

Modules§

markers
Field markers for Config and MediaInfo.

Macros§

dashed
Returns a CliArg string with leading dashes (e.g. "--input").
immut
Initializes a MediaInfo value if need and immutably borrows it.
lang
Returns a Lang::Code.
undashed
Returns a CliArg string without leading dashes (e.g. "input").

Structs§

ArcPathBuf
A wrapper around Arc<PathBuf>.
AutoFlags
An auto-flags configuration.
CacheMI
A cache of MediaInfo.
CacheMIOfFile
A cache of MediaInfo is separate for each file.
CacheMIOfGroup
A cache of MediaInfo common for stem-grouped files.
Chapters
A chapters configuration.
CodecId
A wrapper around ffmpeg::codec::id::Id.
Config
A configuration.
ConfigTarget
A configuration for a Target.
DefaultDispositions
A default dispositions configuraion.
Dispositions
A dispositions configuraion.
Duration
A wrapper around std::time::Duration.
ForcedDispositions
A forced dispositions configuraion.
GlobSetPattern
A wrapper around GlobSet with its raw pattern string.
Input
An input configuration.
LangMetadata
A language metadata configuration.
LogLevel
A wrapper around log::LevelFilter.
MediaGroupedByStem
A media files that share a common stem.
MediaInfo
Extracts and caches a media information.
MediaNumber
Stores a numbers extracted from OsStr.
Metadata
A metadata configuration.
MuxError
An error.
MuxLogger
A logger imlementing the log logger.
NameMetadata
A title metadata configuration.
Output
An output configuration.
RangeUsize
A wrapper around Range<usize>.
RetimingOptions
A retiming configuration.
RetimingOptionsParts
A retiming configuration by chapter titles.
Stream
A stream info.
Streams
A streams configuration.
StreamsOrder
A sorted order of streams.
StreamsOrderItem
A StreamsOrder item.

Enums§

CacheState
A state of cache field.
CharEncoding
A charaster encoding of file.
CliArg
A CLI argument.
Container
A supported output container.
DispositionType
A type of disposition.
Extension
A supported file extension.
InputFileType
A type of input file.
Lang
A language, either LangCode or any string.
LangCode
A language code of ISO 639-1 in ISO 639-3 representation or undeterminated code (Und).
Msg
A message with localized methods.
MuxErrorKind
A kind of MuxError.
StreamType
A type of stream.
Target
A target of ConfigTarget.
Value
A value, either auto or user-defined.

Traits§

Field
Associates a field with the marker type F.
LazyField
Associates a lazily initialized field with the marker type F.
LazyPathField
Associates a lazily initialized field with the marker type F and Path.
ToJsonArgs
Converts a value to JSON-compatible arguments.
TryFinalizeInit
Provides a delayed initialization for expensive operations.

Functions§

ensure_long_path_prefix
Returns a path unchanged (Unix).
ensure_trailing_sep
Adds trailing MAIN_SEPARATOR if missing.
mux
Tries run muxing, returning a count of successfully muxed media files.
run
Tries run muxing, taking settings from the arguments that this program was started with (normally passed via the command line).

Type Aliases§

Error
Result