Commit 87c22654 authored by Nicolas Lenz's avatar Nicolas Lenz ❄️
Browse files

Renew repo

parents
Loading
Loading
Loading
Loading

README.md

0 → 100755
+3 −0
Original line number Diff line number Diff line
# scripts

Miscellaneous scripts for my everyday usage.

conv-beamer

0 → 100755
+6 −0
Original line number Diff line number Diff line
#!/usr/bin/env zsh

# Converts into pdf with pandoc and the protocol template
# Arg 1: Input file

pandoc ${1} -t beamer --slide-level 2 -V theme:metropolis -H ~/.pandoc/metropolis-foss.latex --pdf-engine=xelatex -o ${1%.*}.pdf

conv-h265

0 → 100755
+6 −0
Original line number Diff line number Diff line
#!/usr/bin/env zsh

# Converts into H265/Opus with VA-API in a Matroska container.
# Arg 1: Input file

ffmpeg -i ${1} -vaapi_device /dev/dri/renderD128 -vf 'format=nv12,hwupload' -c:v hevc_vaapi -maxrate:v 5M -c:a libopus -vbr:a on -b:a 128k ${2}.mkv

conv-opus

0 → 100755
+6 −0
Original line number Diff line number Diff line
#!/usr/bin/env zsh

# Converts into Opus in a Matroska container.
# Arg 1: Input file

ffmpeg -i ${1} -c:a libopus -vbr:a on -b:a 128k ${1%.*}.mka

conv-pdf

0 → 100755
+7 −0
Original line number Diff line number Diff line
#!/usr/bin/env zsh

# Converts into pdf with pandoc and the protocol template
# Arg 1: Template
# Arg 2: Input file

pandoc -i ${2} --template=${1} --from=markdown+raw_tex --pdf-engine=xelatex -o ${2%.*}.pdf