aboutsummaryrefslogtreecommitdiff
path: root/stream/src/stream_info.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/stream_info.rs')
-rw-r--r--stream/src/stream_info.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/stream/src/stream_info.rs b/stream/src/stream_info.rs
index 3a33b46..1005edc 100644
--- a/stream/src/stream_info.rs
+++ b/stream/src/stream_info.rs
@@ -34,7 +34,7 @@ async fn async_get_track_sizes(path: PathBuf) -> Result<BTreeMap<u64, usize>> {
pub(crate) struct InternalStreamInfo {
pub paths: Vec<PathBuf>,
- pub _metadata: Vec<Arc<MatroskaMetadata>>,
+ pub metadata: Vec<Arc<MatroskaMetadata>>,
pub track_to_file: Vec<(usize, u64)>,
}
@@ -76,7 +76,7 @@ pub(crate) async fn stream_info(info: Arc<SMediaInfo>) -> Result<(InternalStream
};
Ok((
InternalStreamInfo {
- _metadata: metadata_arr,
+ metadata: metadata_arr,
paths,
track_to_file,
},
@@ -119,11 +119,11 @@ fn stream_formats(t: &TrackEntry, remux_bitrate: f64) -> Vec<StreamFormatInfo> {
// most codecs use chroma subsampling that requires even dims
let h = ((w * sh) / sw) & !1; // clear last bit to ensure even height.
for (cid, enable) in [
- ("V_AV1", CONF.encoders.av1.is_some()),
- ("V_VP8", CONF.encoders.vp8.is_some()),
- ("V_VP9", CONF.encoders.vp9.is_some()),
- ("V_MPEG4/ISO/AVC", CONF.encoders.avc.is_some()),
- ("V_MPEGH/ISO/HEVC", CONF.encoders.hevc.is_some()),
+ ("V_AV1", CONF.transcoder.offer_av1),
+ ("V_VP8", CONF.transcoder.offer_vp8),
+ ("V_VP9", CONF.transcoder.offer_vp9),
+ ("V_MPEG4/ISO/AVC", CONF.transcoder.offer_avc),
+ ("V_MPEGH/ISO/HEVC", CONF.transcoder.offer_hevc),
] {
if enable {
formats.push(StreamFormatInfo {