refactor: vesktop

This commit is contained in:
DACHXY 2025-01-16 12:06:24 +08:00
parent 4ce1b5aedf
commit 2feae7c8d9
6 changed files with 33 additions and 10 deletions

View file

@ -30,7 +30,22 @@ let
tmux switch-client -t $selected_name
'';
# ffmpeg
toMov = pkgs.writeShellScriptBin "toMov" ''
if [ -z "$1" ]; then
echo "Please provide an input file."
exit 1
fi
input_file="$1"
output_file="''\${input_file%.*}.mov"
ffmpeg -i "$input_file" -c:v dnxhd -profile:v dnxhr_hq -c:a pcm_s16le -pix_fmt yuv422p "$output_file"
echo "Conversion complete: $output_file"
'';
in
{
home.packages = [ tmuxSessionizer ];
home.packages = [
tmuxSessionizer
toMov
];
}