multiple copies not working on same server

Discussion of the HandBrake command line interface (CLI)
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
artful
Posts: 1
Joined: Thu Jan 05, 2023 10:12 pm

multiple copies not working on same server

Post by artful »

Multiple copies not working on same server
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
and

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
after me check: lsof | grep tmp
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?
Post Reply