pub struct Profile {
pub name: String,
pub size: Size,
pub aspect: Profile,
pub encoder: EncoderSettings,
pub audio_bitrate: u32,
pub proxies: bool,
pub proxy_dir: Option<PathBuf>,
}Expand description
A render profile. Part of every segment key.
Fields§
§name: Stringpreview, master or review.
size: Size§aspect: ProfileThe output frame clips are reframed into: its name picks the reframe’s and the text’s
profiles.<name> overrides; its size is size.
encoder: EncoderSettingsShared by every segment: same codec, profile, GOP and colour tags, so the encoded parameter sets match and concat is a plain stream copy.
audio_bitrate: u32AAC bitrate of the master’s audio.
proxies: boolShots decode their proxies (crate::proxy) instead of the sources.
proxy_dir: Option<PathBuf>Where made proxies are (crate::proxy::cached); camera proxies are found without it.
Implementations§
Source§impl Profile
impl Profile
Sourcepub fn review() -> Self
pub fn review() -> Self
720p 8-bit HEVC NVENC from proxies: a fast, small copy to watch an edit.
Sourcepub fn resolve(
name: &str,
output: &Output,
aspect: Option<&str>,
) -> Result<Self, String>
pub fn resolve( name: &str, output: &Output, aspect: Option<&str>, ) -> Result<Self, String>
The name quality (preview, master, review) in the timeline’s project.output, its
aspect replaced by aspect if given (landscape, reel, feed, square, 9:16, WxH,
name=WxH). A preset aspect renders at 1080 (preview), 2160 (master) or 720 (review) px
on its short side unless the timeline sets the size (and no aspect overrides it); WxH
is exact. review takes the preview’s settings, scaled down to 720 px.