Skip to content

Commit

Permalink
feat: use libfdk_aac
Browse files Browse the repository at this point in the history
  • Loading branch information
k.mesniankin committed Nov 2, 2024
1 parent f0ed417 commit db7ed00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/composers/TorrentsComposer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit db7ed00

Please sign in to comment.