Compare commits

...

2 Commits

Author SHA1 Message Date
09f0177d54 big boy hyprland changes and some nix permission stuff 2026-06-23 16:17:12 +01:00
e103f51ef3 added a transcoding function to shell 2026-06-23 16:16:50 +01:00
5 changed files with 22 additions and 2 deletions

View File

@@ -16,6 +16,8 @@ cursor_trail_start_threshold 1
cursor_trail_color #cba6f7
cursor_shape beam
allow_remote_control true
window_padding_width 10
map ctrl+backspace send_text all \x17

2
.nixos

Submodule .nixos updated: 2a0fbdcd16...8f97b6ff34

1
.zshrc
View File

@@ -32,3 +32,4 @@ alias vinix="nvim --cmd 'cd ~/.dotfiles/.nixos'"
alias man='man -P "bat -p"'
source ~/.zshrc-local
source ~/.zshrc-functions

17
.zshrc-functions Normal file
View File

@@ -0,0 +1,17 @@
transcode-youtube() {
# Check if both input and output files are provided
if [ "$#" -ne 1 ]; then
echo "Usage: transcode-youtube <video number>"
return 1
fi
ffmpeg -vaapi_device /dev/dri/renderD128 -i "youtube-raw/vid$1.mov" \
-vf "format=nv12,hwupload" \
-c:v h264_vaapi -profile:v high -level 4.2 \
-rc_mode VBR -b:v 50M -maxrate 70M -bufsize 100M \
-g 120 -bf 2 \
-color_primaries bt709 -color_trc bt709 -colorspace bt709 \
-c:a aac -b:a 384k -ar 48000 \
-movflags +faststart \
"youtube-archive/vid-$1.mp4"
}