OS - Ubuntu 20.04
Version HandBrakeCli 1.6.0
Me create two script:
Code: Select all
#!/bin/bash
TMPDIR=/tmp1
TMP=$TMPDIR
TEMP=$TMPDIR
export TMPDIR TMP TEMP
for tab in \
s01e01.mkv \
; do
taskset -c 0-5 flatpak run fr.handbrake.HandBrakeCLI --preset-import-file Hevc.json -Z "HevcMy 2000Kb/s" -i /Video/in/$tab -o /Video/out/$tab
done
Code: Select all
#!/bin/bash
TMPDIR=/tmp2
TMP=$TMPDIR
TEMP=$TMPDIR
export TMPDIR TMP TEMP
for tab in \
s01e02.mkv \
; do
taskset -c 6-10 flatpak run fr.handbrake.HandBrakeCLI --preset-import-file Hevc.json -Z "HevcMy 2000Kb/s" -i /Video/in/$tab -o /Video/out/$tab
done
both copies still use the same directory: /tmp not /tmp1 or /tmp2, only /tmp
because of this, the second encoding pass cannot pass.
How to point to different tmp directories?