Leo Butler
6dca224ea2
The library mis-match on ubuntu 18.04 seems impossible to fix, so revert to using the system binaries. This makes including a subtitle stream impossible for now, but moving to the concat *filter* had made that pretty much impossible anyway, because ffmpeg (even in HEAD) does not set the right PTS when the input is in matroska format.
27 lines
882 B
Bash
Executable File
27 lines
882 B
Bash
Executable File
#!/bin/bash
|
|
set -aex
|
|
|
|
export LANG=en_US.UTF-8
|
|
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
|
|
# ugly kludge due to upgrade from 16.04 to 18.04 mismatch
|
|
# export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/tmp/root-snap-2020-06-28-21-56-27/usr/lib/x86_64-linux-gnu
|
|
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
|
|
unset -v LANGUAGE
|
|
|
|
working_dir=${working_dir:-"/mnt/lvraid5/ffmpeg-cut-list.d"}
|
|
error_log=${error_log:-"user-job-$(date +'%Y-%m-%d-%H%M').err"}
|
|
outpt_log=${error_log/err/log}
|
|
debug=${debug:-"eval ionice -c 3 "}
|
|
ffmpeg_myth_scm=${ffmpeg_myth_scm:-"/usr/local/bin/ffmpeg-myth.scm"}
|
|
|
|
if test -z "$*"; then
|
|
job=${job:-"ffmpeg-myth-do-pending-jobs 4"}
|
|
else
|
|
job="$*"
|
|
fi
|
|
|
|
cmd="$ffmpeg_myth_scm $job"
|
|
|
|
(cd "$working_dir" && printenv && $debug $cmd) >> $working_dir/$outpt_log 2>> $working_dir/$error_log
|
|
|