Squashed
This commit is contained in:
commit
a45a0e8685
12 changed files with 311 additions and 0 deletions
30
bin/compress.sh
Executable file
30
bin/compress.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ "$#" -ne 5 ]; then
|
||||
echo "Invalid number of parameters"
|
||||
echo "Usage: compress.sh <input> <fps> <bitrate:v> <bitrate:a/copy> <output>"
|
||||
echo "Example: compress.sh foo.mp4 30 1024k 128k bar.mp4"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INPUT="$1"
|
||||
FPS="$2"
|
||||
VBIT="$3"
|
||||
ABIT="$4"
|
||||
OUTPUT="$5"
|
||||
|
||||
AUDIO=("-c:a" "aac" "-b:a" "$ABIT")
|
||||
|
||||
# Don't murder audio quality with recompress if already appropriate bitrate
|
||||
if [ "$ABIT" == "copy" ]; then
|
||||
AUDIO=("-c:a" "copy")
|
||||
fi
|
||||
|
||||
ffmpeg -y -i "$INPUT" -c:v libx264 -r "$FPS" -preset slow -b:v "$VBIT" -pass 1 -vsync cfr -f null /dev/null && \
|
||||
ffmpeg -y -i "$INPUT" -c:v libx264 -r "$FPS" -b:v "$VBIT" -pass 2 "${AUDIO[@]}" -preset slow "$OUTPUT"
|
||||
|
||||
rm ffmpeg2pass-0.log
|
||||
rm ffmpeg2pass-0.log.mbtree
|
||||
|
8
bin/hammer.sh
Executable file
8
bin/hammer.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
cd "$HOME/tf_hammer/bin/x64"
|
||||
|
||||
wine hammerplusplus.exe
|
||||
|
9
bin/install-wow-addons.sh
Executable file
9
bin/install-wow-addons.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash -x
|
||||
|
||||
version=_retail_
|
||||
addons_path="$HOME/World of Warcraft/$version/Interface/AddOns/"
|
||||
|
||||
cp ~/Downloads/wow-addons/*.zip "$addons_path"
|
||||
cd "$addons_path"
|
||||
unzip "./*.zip"
|
||||
rm ./*.zip
|
15
bin/unreal.sh
Executable file
15
bin/unreal.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
shopt -s nullglob
|
||||
|
||||
ADDITIONAL=""
|
||||
PROJECTS=(*.uproject)
|
||||
|
||||
if [[ ${#PROJECTS[@]} -gt 0 ]]; then
|
||||
ADDITIONAL="$(pwd)/${PROJECTS[0]}"
|
||||
echo "Found project, passing to cli: '$ADDITIONAL'"
|
||||
fi
|
||||
|
||||
"$HOME/UnrealEngine/UE_5-4-2/Engine/Binaries/Linux/UnrealEditor" $ADDITIONAL
|
||||
|
16
bin/update_hammer.sh
Executable file
16
bin/update_hammer.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
echo "Make sure that the TF2 Windows Client depo is up to date."
|
||||
echo "You should run:"
|
||||
echo " steam -console"
|
||||
echo "And then via Steam console:"
|
||||
echo " download_depot 440 232251"
|
||||
|
||||
read -p "Press enter to continue"
|
||||
|
||||
cd "$HOME/tf_hammer/"
|
||||
cp -rs --update=none "$HOME/.steam/steam/steamapps/common/Team Fortress 2/"* ./
|
||||
cp -rs --update=none "$HOME/.steam/steam/ubuntu12_32/steamapps/content/app_440/depot_232251/"* ./
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue