From 649be9810f2f2ad14e2e0578d8f12867e58838ba Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 28 Jan 2020 23:43:55 +1300 Subject: [PATCH] ffmpeg: add some more scripts --- modules/programs/ffmpeg.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/programs/ffmpeg.nix b/modules/programs/ffmpeg.nix index f004d72..bf17313 100644 --- a/modules/programs/ffmpeg.nix +++ b/modules/programs/ffmpeg.nix @@ -55,6 +55,11 @@ let exit 1 fi + # do it stereo + # -ac 2 + # do it sample rate 44100 + # -ar 44100 + exec ${pkgs.ffmpeg}/bin/ffmpeg \ -i "$input" \ -filter:v scale=h='min(720\,ih)':w='min(1280\,iw)' \ @@ -63,6 +68,8 @@ let -profile:v ${profile} \ ${optionalString (tune != null) "-tune ${tune}"} \ -acodec aac \ + -ac 2 \ + -ar 44100 \ "$output" \ -hide_banner '';