Skip to content

Instantly share code, notes, and snippets.

@code-yeongyu
Created April 7, 2024 05:26
Show Gist options
  • Save code-yeongyu/5a8a1d7fd8c305345b8dfce786e2aa01 to your computer and use it in GitHub Desktop.
Save code-yeongyu/5a8a1d7fd8c305345b8dfce786e2aa01 to your computer and use it in GitHub Desktop.
cat list.txt | xargs -n 1 -P (python3 -c "import multiprocessing as m;print(m.cpu_count()*2)") -I {} yt-dlp -N (python3 -c "import multiprocessing as m;print(m.cpu_count()*2)") \
--embed-thumbnail --embed-metadata --embed-subs --embed-chapters --embed-info-json -f "bestvideo+bestaudio" --merge-output-format "mp4" --write-subs --convert-subs srt --cookies-from-browser brave {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment