From a15123028c6138b193b944fde575aeda8af5dee2 Mon Sep 17 00:00:00 2001 From: Mattias Thall Date: Tue, 26 May 2026 20:20:42 +0200 Subject: [PATCH] Speed up post-download merge by dropping embed-thumbnail and embed-metadata MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both flags trigger extra ffmpeg passes over the entire file after the stream merge. They're unnecessary — metadata lives in the DB and thumbnails come from YouTube. Removing them cuts the post-join wait to just the faststart rewrite. Co-Authored-By: Claude Sonnet 4.6 --- backend/services/ytdlp.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/services/ytdlp.py b/backend/services/ytdlp.py index 03ed2d5..f1e8dd7 100644 --- a/backend/services/ytdlp.py +++ b/backend/services/ytdlp.py @@ -643,7 +643,6 @@ def start_download( "-f", fmt, "--merge-output-format", "mp4", "--postprocessor-args", "Merger+ffmpeg:-movflags +faststart", - "--embed-metadata", "--embed-thumbnail", "--no-part", "--no-mtime", "-o", output_template, "--newline", "--progress", "--no-colors",