Skip to content

Instantly share code, notes, and snippets.

View Tualua's full-sized avatar

Dmitry Popovich Tualua

  • 19:20 (UTC +08:00)
View GitHub Profile
@Tualua
Tualua / qsvenc_tv_vbr.sh
Created June 11, 2025 01:19
QSVEnc VBR Encoding (TV, 1080p)
VIDEODIR="."
FILTER="*.TeamHD.mkv"
for file in $(ls -1 "$VIDEODIR"/$FILTER)
do
qsvencc \
--avhw --codec av1 --output-depth 10 --quality best --vbr 6000k --qp-max 64 --qp-min 255 --max-bitrate 9000k --vbv-bufsize 3000k --fallback-rc --la-depth 100 --tune perceptual \
--gop-len 96 --vpp-edgelevel --colorrange auto --colormatrix auto --colorprim auto --transfer auto --chromaloc auto \
--max-cll copy --master-display copy --atc-sei auto \
--audio-codec libopus:ac=6,mapping_family=1 --audio-bitrate 384k --audio-filter aformat=channel_layouts="7.1|5.1|stereo" \
--audio-disposition copy --audio-metadata copy --chapter-copy --sub-copy --sub-disposition copy \
@Tualua
Tualua / _INSTALL.md
Created March 18, 2023 06:20 — forked from robinsmidsrod/_INSTALL.md
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

@Tualua
Tualua / ubuntu-autoinstall.ipxe
Created May 21, 2021 09:13 — forked from robinsmidsrod/ubuntu-autoinstall.ipxe
Ubuntu 20.04 autoinstall (casper/subiquity/curtin) to iPXE - work-in-progress (not fully working for iSCSI)
:ubuntu-autoinstall
echo Starting Ubuntu ${ubuntu-version} ${archl} autoinstaller for ${initiator-iqn}
sanhook ${base-iscsi}:${hostname}.boot.ubuntu || sleep 1
#sanhook ${base-iscsi}:${hostname}.boot.ubuntu && set ubuntu-cc-iscsi storage: { layout: { name: lvm }, config: [{type: disk, path: ${base-iscsi}:${hostname}.boot.ubuntu }] } || sleep 1
#sanhook ${base-iscsi}:${hostname}.boot.ubuntu && set ubuntu-iscsi ISCSI_INITIATOR=${initiator-iqn} ISCSI_TARGET_NAME=${base-iqn}:${hostname}.boot.ubuntu ISCSI_TARGET_IP=${iscsi-server} ISCSI_TARGET_PORT=3260 || sleep 1
# https://medium.com/@tlhakhan/ubuntu-server-20-04-autoinstall-2e5f772b655a
# https://ubuntu.com/server/docs/install/autoinstall
# https://github.com/canonical/cloud-init/blob/master/doc/examples/kernel-cmdline.txt
# https://matt.olan.me/raspberry-pi-iscsi-root-on-ubuntu-20-04/
# https://askubuntu.com/questions/1235723/automated-20-04-server-installation-using-pxe-and-live-server-image