add ignore_chapters to ffmpeg dec process to skip error message: Referenced QT chapter track not found

This commit is contained in:
jb-alvarado 2022-08-08 11:38:57 +02:00
parent c1af2fba03
commit 6c4089974a
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ pub fn write_hls(
node.source
);
let mut enc_prefix = vec_strings!["-hide_banner", "-nostats", "-v", &ff_log_format];
let mut enc_prefix = vec_strings!["-hide_banner", "-nostats", "-v", &ff_log_format, "-ignore_chapters", "1"];
enc_prefix.append(&mut cmd);
let enc_filter = node.filter.unwrap();
let enc_cmd = prepare_output_cmd(

View File

@ -99,7 +99,7 @@ pub fn player(
);
let mut filter = node.filter.unwrap();
let mut dec_cmd = vec_strings!["-hide_banner", "-nostats", "-v", &ff_log_format];
let mut dec_cmd = vec_strings!["-hide_banner", "-nostats", "-v", &ff_log_format, "-ignore_chapters", "1"];
dec_cmd.append(&mut cmd);
if filter.len() > 1 {