Compare commits

..

2 commits

Author SHA1 Message Date
cbdf55335a
detect .mov files
All checks were successful
Trigger quay.io Webhook / run (push) Successful in 6s
2024-05-27 20:05:41 +02:00
6934012c11
take audio from left instead of right channel
All checks were successful
Trigger quay.io Webhook / run (push) Successful in 6s
2024-05-27 20:05:07 +02:00
2 changed files with 3 additions and 2 deletions

View file

@ -135,7 +135,8 @@ fn main() {
let lower = name.to_ascii_lowercase(); let lower = name.to_ascii_lowercase();
if (lower.ends_with(".mp4") if (lower.ends_with(".mp4")
|| lower.ends_with(".mts") || lower.ends_with(".mts")
|| lower.ends_with(".mkv")) || lower.ends_with(".mkv")
|| lower.ends_with(".mov"))
&& !entry.file_type().unwrap().is_dir() && !entry.file_type().unwrap().is_dir()
{ {
files.push(String::from(name)); files.push(String::from(name));

View file

@ -335,7 +335,7 @@ impl Ffmpeg {
}, },
FfmpegFilter::Loudnorm { stereo: false } => { FfmpegFilter::Loudnorm { stereo: false } => {
cmd.arg("-af").arg(concat!( cmd.arg("-af").arg(concat!(
"pan=mono|c0=FR,", "pan=mono|c0=FL,",
"loudnorm=dual_mono=true:print_format=summary,", "loudnorm=dual_mono=true:print_format=summary,",
"pan=stereo|c0=c0|c1=c0,", "pan=stereo|c0=c0|c1=c0,",
"aformat=sample_rates=48000" "aformat=sample_rates=48000"