summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-08-26 14:23:05 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-08-26 14:23:05 +0300
commit548f34f599d0742998c71e215afb28258ee31c27 (patch)
tree0489d2bd882e28ff59276f1e518cbe3fef209a83 /src
parent4e397f4c096b59d0d8c597aa279e0f0448a174c3 (diff)
Force H264 codec
Diffstat (limited to 'src')
-rw-r--r--src/tasks.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks.ts b/src/tasks.ts
index c25fd80..2f18187 100644
--- a/src/tasks.ts
+++ b/src/tasks.ts
@@ -24,7 +24,7 @@ export const runDownloadUrlTask = async (task: Task) => {
}
const { stdout } = await asyncExec(
- `yt-dlp -f mp4 --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`,
+ `yt-dlp -f mp4 -S vcodec:h264 --restrict-filenames -o "${filename}" -P downloads --cookies-from-browser chromium "${task.url}"`,
);
console.log(stdout);
task.respondWithFile(filename);