new ffmpeg builds
This commit is contained in:
parent
f747fdb636
commit
520b1c455a
|
|
@ -2,9 +2,13 @@ FROM oven/bun:1 AS base
|
||||||
|
|
||||||
RUN mkdir -p /usr/src/preservetube/metadata
|
RUN mkdir -p /usr/src/preservetube/metadata
|
||||||
WORKDIR /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
|
COPY . /usr/src/preservetube/metadata
|
||||||
RUN bun install
|
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"]
|
CMD ["bun", "run", "index.ts"]
|
||||||
3
index.ts
3
index.ts
|
|
@ -14,11 +14,10 @@ import type { SabrPlaybackOptions } from 'googlevideo/sabr-stream';
|
||||||
import { getVideoStreams, downloadStream, getInfo } from './utils/companion';
|
import { getVideoStreams, downloadStream, getInfo } from './utils/companion';
|
||||||
|
|
||||||
const ffmpeg = require('fluent-ffmpeg')
|
const ffmpeg = require('fluent-ffmpeg')
|
||||||
const ffmpegStatic = require('ffmpeg-static')
|
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
require('express-ws')(app)
|
require('express-ws')(app)
|
||||||
ffmpeg.setFfmpegPath(ffmpegStatic)
|
ffmpeg.setFfmpegPath('/usr/local/bin/ffmpeg')
|
||||||
|
|
||||||
const maxRetries = 5
|
const maxRetries = 5
|
||||||
const platforms = ['IOS', 'ANDROID', 'YTSTUDIO_ANDROID', 'YTMUSIC_ANDROID']
|
const platforms = ['IOS', 'ANDROID', 'YTSTUDIO_ANDROID', 'YTMUSIC_ANDROID']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue