Redirect deface to /dev/null. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit cce8587a0f1e93efe09b617a44406ee1e47b6a39 | |
parent f9aefeb7be5c25b962bb25fb9ed134d6f795cbae | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 31 Jul 2022 15:04:21 +0200 | |
Redirect deface to /dev/null. | |
Diffstat: | |
M blender-effect | 3 ++- | |
M ffmpeg-effect | 2 +- | |
M modules/markov_tech/markov | 2 +- | |
3 files changed, 4 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/blender-effect b/blender-effect | |
@@ -13,7 +13,7 @@ shift 2 | |
BLENDER=blender-3.2 | |
BLEND_DIR="$(dirname "$0")/modules/blender" | |
-IMAGE_DIR=/bitreich/gopher/memecache/3d | |
+IMAGE_DIR=/br/gopher/memecache/3d | |
# turn "key1=value key2=value key3=value" into variables used by blender-effec… | |
for x in "$@" | |
@@ -22,6 +22,7 @@ do | |
done | |
${BLENDER} --background \ | |
+ -b \ | |
"${BLEND_DIR}/${NAME}.blend" \ | |
--python "${BLEND_DIR}/effect.py" \ | |
--render-output "${IMAGE_DIR}/${NAME}." \ | |
diff --git a/ffmpeg-effect b/ffmpeg-effect | |
@@ -72,7 +72,7 @@ replace_face() { | |
tmp="/tmp/replace_face_$$.mkv" | |
$HOME/.local/bin/deface "$input" --replacewith img \ | |
- --replaceimg "$face_replacement" -o "$tmp" >/dev/null | |
+ --replaceimg "$face_replacement" -o "$tmp" >/dev/null 2>&1 | |
if has_audio "$input"; | |
then | |
replace_audio "$input" "$tmp" "$output" | |
diff --git a/modules/markov_tech/markov b/modules/markov_tech/markov | |
@@ -1,6 +1,6 @@ | |
#!/bin/sh | |
-BASE="/home/annna/bin/modules/markov_tech" | |
+BASE="$HOME/bin/modules/markov_tech" | |
TECH="${BASE}/techs" | |
ADJ="${BASE}/adjectives" |