Compact HE-AAC audio saves: server lane with fdkaac, shrink saved songs from Saved videos

This commit is contained in:
Jonathan Sykes
2026-10-18 17:28:47 +08:00
parent eef9fbf05f
commit b48d36b3dd
12 changed files with 342 additions and 22 deletions

View File

@@ -16,11 +16,15 @@ FROM oven/bun:1-debian
# ca-certificates for HTTPS fetches from yt-dlp
# ffmpeg lets yt-dlp merge bestvideo+bestaudio into a single mp4 for the
# "Save before playing" download path (GET /api/download?mux=1)
RUN apt-get update -qq && \
# fdkaac (Debian contrib) encodes the compact HE-AAC audio phones can save;
# ffmpeg's built-in AAC encoder only does AAC-LC.
RUN sed -i 's/^Components: main$/Components: main contrib/' /etc/apt/sources.list.d/debian.sources && \
apt-get update -qq && \
apt-get install -y --no-install-recommends \
curl \
python3 \
ffmpeg \
fdkaac \
ca-certificates && \
rm -rf /var/lib/apt/lists/*