From e06d74d805eee124f75dca6fd5937d82a508eff2 Mon Sep 17 00:00:00 2001 From: Tomer Altman Date: Thu, 10 Oct 2024 14:58:06 -0700 Subject: [PATCH] Added DEBIAN_FRONTEND to suppress interaction requests from apt-get, fixed 'dir' to match the path in the jobs.json file, and quoted the definition of vopts so that there won't be an error when the shell looks for the 'libvpx-vp9' command. --- transcoding/transcode.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/transcoding/transcode.sh b/transcoding/transcode.sh index fcccbe9..6dcd9ff 100644 --- a/transcoding/transcode.sh +++ b/transcoding/transcode.sh @@ -13,14 +13,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +DEBIAN_FRONTEND=noninteractive sudo apt-get -y update +DEBIAN_FRONTEND=noninteractive sudo apt-get -y install ffmpeg -sudo apt-get -y update -sudo apt-get -y install ffmpeg - -dir=/mnt/share +dir=/mnt/disks/share infile=$dir/input/video-$BATCH_TASK_INDEX.mp4 outfile=$dir/output/video-$BATCH_TASK_INDEX.webm -vopts=-c:v libvpx-vp9 -b:v 1800k -minrate 1500 -maxrate 1610 +vopts="-c:v libvpx-vp9 -b:v 1800k -minrate 1500 -maxrate 1610" mkdir -p $dir/output ffmpeg -i $infile $vopts -an $outfile