diff --git a/Dockerfile b/Dockerfile index 04985a7..7a6145b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,10 @@ -FROM node:lts-alpine +FROM linuxserver/ffmpeg:latest -RUN apk add ffmpeg +RUN apt-get -y update && \ + apt-get -y --no-install-recommends install nodejs npm && \ + rm -rf /var/lib/apt/lists/* && \ + npm install -g corepack && \ + corepack enable WORKDIR /app diff --git a/src/composers/TorrentsComposer.ts b/src/composers/TorrentsComposer.ts index e6b2d9c..d8e32b8 100644 --- a/src/composers/TorrentsComposer.ts +++ b/src/composers/TorrentsComposer.ts @@ -345,7 +345,7 @@ export class TorrentsComposer< const tmpFile = tmpNameSync({ postfix: '.mp4' }); ffmpeg(filePath) - .outputOptions('-c:a', 'aac') + .outputOptions('-c:a', 'libfdk_aac') .outputOptions('-c:v', 'libx264') .outputOptions('-b:a', `${aBitrate}k`) .outputOptions('-b:v', `${vBitrate}k`)