pub struct MusicTranscodeOptions {
pub bitrate: u32,
pub containers: Vec<ContainerFormat>,
pub codecs: Vec<AudioCodec>,
pub limitations: Vec<Limitation<AudioCodec, AudioSetting>>,
}
Expand description
Defines the media formats suitable for transcoding music. The server uses these settings to choose a format to transcode to.
The server is not very clever at choosing codecs that work for a given container format. It is safest to only list codecs and containers that work together.
Note that the server maintains default transcode profiles for many devices
which will alter the supported transcode targets. By default for instance if
the server thinks you are an Android client it will only offer stereo audio
in videos. You can see these profiles in Resources/Profiles
of the media
server install directory. Individual settings in the profile can be
overridden via the API however if you want to be sure of a clean slate use
a generic client.
Fields§
§bitrate: u32
Maximum bitrate in kbps.
containers: Vec<ContainerFormat>
Supported media container formats. Ignored for streaming transcodes.
codecs: Vec<AudioCodec>
Supported audio codecs.
limitations: Vec<Limitation<AudioCodec, AudioSetting>>
Limitations to constraint audio transcoding options.
Trait Implementations§
Source§impl Clone for MusicTranscodeOptions
impl Clone for MusicTranscodeOptions
Source§fn clone(&self) -> MusicTranscodeOptions
fn clone(&self) -> MusicTranscodeOptions
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more