Skip to content

Commit

Permalink
✨ Add -c:v hevc_videotoolbox to merger
Browse files Browse the repository at this point in the history
  • Loading branch information
tgotwig committed Jul 23, 2024
1 parent 5650556 commit b89fb54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commanders/_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lazy_static! {

pub fn merge(input: String, output: &String) -> Result<Child, std::io::Error> {
let cmd = format!(
"ffmpeg -y -f concat -safe 0 -i {} -map 0 -c copy {}",
"ffmpeg -y -f concat -safe 0 -i {} -c:v hevc_videotoolbox -map 0 -c copy {}",
input, output
);

Expand All @@ -35,7 +35,7 @@ pub fn merge_with_chapters(
output_file_for_chapterer: &str,
) -> Result<Child, std::io::Error> {
let cmd = format!(
"ffmpeg -y -i {} -i {} -map 0 -map_metadata 1 -codec copy {}",
"ffmpeg -y -i {} -i {} -c:v hevc_videotoolbox -map 0 -map_metadata 1 -codec copy {}",
&input_file_for_chapterer,
file_path.to_str().unwrap(),
output_file_for_chapterer
Expand Down

0 comments on commit b89fb54

Please sign in to comment.