From 520b1c455a3a48d2ab3ff311c7a6c03ac91c93dc Mon Sep 17 00:00:00 2001 From: localhost Date: Sun, 11 Jan 2026 00:00:58 +0100 Subject: [PATCH] new ffmpeg builds --- Dockerfile | 6 +++++- index.ts | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8b18e0..9668a7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,13 @@ FROM oven/bun:1 AS base RUN mkdir -p /usr/src/preservetube/metadata WORKDIR /usr/src/preservetube/metadata -RUN apt-get update && apt-get install -y python3 build-essential +RUN apt-get update && apt-get install -y --no-install-recommends python3 build-essential curl xz-utils ca-certificates COPY . /usr/src/preservetube/metadata RUN bun install +RUN curl -L https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz \ + | tar -xJ --strip-components=1 -C /tmp ffmpeg-master-latest-linux64-gpl/bin/ffmpeg \ + && mv /tmp/bin/ffmpeg /usr/local/bin/ffmpeg + CMD ["bun", "run", "index.ts"] \ No newline at end of file diff --git a/index.ts b/index.ts index ee3bd67..a648577 100644 --- a/index.ts +++ b/index.ts @@ -14,11 +14,10 @@ import type { SabrPlaybackOptions } from 'googlevideo/sabr-stream'; import { getVideoStreams, downloadStream, getInfo } from './utils/companion'; const ffmpeg = require('fluent-ffmpeg') -const ffmpegStatic = require('ffmpeg-static') const app = express(); require('express-ws')(app) -ffmpeg.setFfmpegPath(ffmpegStatic) +ffmpeg.setFfmpegPath('/usr/local/bin/ffmpeg') const maxRetries = 5 const platforms = ['IOS', 'ANDROID', 'YTSTUDIO_ANDROID', 'YTMUSIC_ANDROID']