Skip to content

Commit

Permalink
Hide CPU info and encode settings with --quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Sep 17, 2021
1 parent 0c066cb commit 4c53fe6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 40 deletions.
42 changes: 22 additions & 20 deletions src/bin/rav1e-ch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,30 +508,32 @@ fn run() -> Result<(), error::CliError> {
cli.enc.time_base.num as usize,
);

info!("CPU Feature Level: {}", CpuFeatureLevel::default());

info!(
"Using y4m decoder: {}x{}p @ {}/{} fps, {}, {}-bit",
video_info.width,
video_info.height,
video_info.time_base.den,
video_info.time_base.num,
video_info.chroma_sampling,
video_info.bit_depth
);
info!("Encoding settings: {}", cli.enc);

let tiling =
cfg.tiling_info().map_err(|e| e.context("Invalid configuration"))?;
if tiling.tile_count() == 1 {
info!("Using 1 tile");
} else {
if cli.verbose != Verbose::Quiet {
info!("CPU Feature Level: {}", CpuFeatureLevel::default());

info!(
"Using {} tiles ({}x{})",
tiling.tile_count(),
tiling.cols,
tiling.rows
"Using y4m decoder: {}x{}p @ {}/{} fps, {}, {}-bit",
video_info.width,
video_info.height,
video_info.time_base.den,
video_info.time_base.num,
video_info.chroma_sampling,
video_info.bit_depth
);
info!("Encoding settings: {}", cli.enc);

if tiling.tile_count() == 1 {
info!("Using 1 tile");
} else {
info!(
"Using {} tiles ({}x{})",
tiling.tile_count(),
tiling.cols,
tiling.rows
);
}
}

let progress = ProgressInfo::new(
Expand Down
42 changes: 22 additions & 20 deletions src/bin/rav1e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,30 +493,32 @@ fn run() -> Result<(), error::CliError> {
cli.enc.time_base.num as usize,
);

info!("CPU Feature Level: {}", CpuFeatureLevel::default());

info!(
"Using y4m decoder: {}x{}p @ {}/{} fps, {}, {}-bit",
video_info.width,
video_info.height,
video_info.time_base.den,
video_info.time_base.num,
video_info.chroma_sampling,
video_info.bit_depth
);
info!("Encoding settings: {}", cli.enc);

let tiling =
cfg.tiling_info().map_err(|e| e.context("Invalid configuration"))?;
if tiling.tile_count() == 1 {
info!("Using 1 tile");
} else {
if cli.verbose != Verbose::Quiet {
info!("CPU Feature Level: {}", CpuFeatureLevel::default());

info!(
"Using {} tiles ({}x{})",
tiling.tile_count(),
tiling.cols,
tiling.rows
"Using y4m decoder: {}x{}p @ {}/{} fps, {}, {}-bit",
video_info.width,
video_info.height,
video_info.time_base.den,
video_info.time_base.num,
video_info.chroma_sampling,
video_info.bit_depth
);
info!("Encoding settings: {}", cli.enc);

if tiling.tile_count() == 1 {
info!("Using 1 tile");
} else {
info!(
"Using {} tiles ({}x{})",
tiling.tile_count(),
tiling.cols,
tiling.rows
);
}
}

let progress = ProgressInfo::new(
Expand Down

0 comments on commit 4c53fe6

Please sign in to comment.