Use mkv as intermediate format for deface. - annna - Annna the nice friendly bo… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 308176fa1d372ec88a2f539fee2941b1dc958c58 | |
parent 84d25dd35594a5eebcbf5ec190b6c12a821c3723 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 31 Jul 2022 14:23:56 +0200 | |
Use mkv as intermediate format for deface. | |
Diffstat: | |
M ffmpeg-effect | 7 ++++--- | |
1 file changed, 4 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/ffmpeg-effect b/ffmpeg-effect | |
@@ -67,11 +67,12 @@ replace_face() { | |
input="$2" | |
output="$3" | |
- ext="$(printf '%s' "$input" | awk -F. '{print $NF}')" | |
- tmp=/tmp/replace_face_$$.$ext | |
+ #ext="$(printf '%s' "$input" | awk -F. '{print $NF}')" | |
+ #tmp=/tmp/replace_face_$$.$ext | |
+ tmp="/tmp/replace_face_$$.mkv" | |
$HOME/.local/bin/deface "$input" --replacewith img \ | |
- --replaceimg "$face_replacement" -o "$tmp" | |
+ --replaceimg "$face_replacement" -o "$tmp" >/dev/null | |
if has_audio "$input"; | |
then | |
replace_audio "$input" "$tmp" "$output" |