diff --git a/services/worker/src/workers/youtube-import.js b/services/worker/src/workers/youtube-import.js index f2765a5..b25356c 100644 --- a/services/worker/src/workers/youtube-import.js +++ b/services/worker/src/workers/youtube-import.js @@ -67,7 +67,12 @@ async function runYtDlp({ url, outputTemplate, onProgress }) { '--no-playlist', '--no-warnings', '--restrict-filenames', - '-f', "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/b", + // Prefer H.264 (avc1) so the downloaded ORIGINAL is Premiere-native. + // YouTube now packs AV1 inside .mp4, so the old `bv*[ext=mp4]` selector + // grabbed AV1 — which Premiere rejects on hi-res import ("unsupported + // file type"). avc1 tops out at 1080p on YouTube; only if no H.264 + // rendition exists do we fall back to the previous any-mp4 behaviour. + '-f', "bv*[vcodec^=avc1]+ba[ext=m4a]/bv*[vcodec^=avc1]+ba/b[vcodec^=avc1]/bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/b", '--merge-output-format', 'mp4', '--print-json', '--newline',