diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-08-26 14:23:05 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-08-26 14:23:05 +0300 |
| commit | 548f34f599d0742998c71e215afb28258ee31c27 (patch) | |
| tree | 0489d2bd882e28ff59276f1e518cbe3fef209a83 | |
| parent | 4e397f4c096b59d0d8c597aa279e0f0448a174c3 (diff) | |
Force H264 codec
| -rw-r--r-- | src/tasks.ts | 2 |
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); |
