ffmpeg: add some more scripts
This commit is contained in:
parent
045d54caa8
commit
649be9810f
1 changed files with 7 additions and 0 deletions
|
@ -55,6 +55,11 @@ let
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# do it stereo
|
||||||
|
# -ac 2
|
||||||
|
# do it sample rate 44100
|
||||||
|
# -ar 44100
|
||||||
|
|
||||||
exec ${pkgs.ffmpeg}/bin/ffmpeg \
|
exec ${pkgs.ffmpeg}/bin/ffmpeg \
|
||||||
-i "$input" \
|
-i "$input" \
|
||||||
-filter:v scale=h='min(720\,ih)':w='min(1280\,iw)' \
|
-filter:v scale=h='min(720\,ih)':w='min(1280\,iw)' \
|
||||||
|
@ -63,6 +68,8 @@ let
|
||||||
-profile:v ${profile} \
|
-profile:v ${profile} \
|
||||||
${optionalString (tune != null) "-tune ${tune}"} \
|
${optionalString (tune != null) "-tune ${tune}"} \
|
||||||
-acodec aac \
|
-acodec aac \
|
||||||
|
-ac 2 \
|
||||||
|
-ar 44100 \
|
||||||
"$output" \
|
"$output" \
|
||||||
-hide_banner
|
-hide_banner
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue