Advertisement
krot

скачать видео с ютуб

Jun 5th, 2024 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file
  2.  
  3. yt-dlp --format "bv*+ba/b" https://www.youtube.com/watch?v=test
  4.  
  5.  
  6. yt-dlp -F https://www.youtube.com/watch?v=test
  7.  
  8. yt-dlp -f 299+140 "https://www.youtube.com/watch?v=test"
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. A youtube-dl fork with additional features and fixes. Download videos from YouTube and other websites. More information at https://github.com/yt-dlp/yt-dlp
  17.  
  18. Download a video or playlist (with the default options from command below):
  19.  
  20. yt-dlp "https://www.youtube.com/watch?v=oHg5SJYRHA0"
  21.  
  22. List the available downloadable formats for a video:
  23.  
  24. yt-dlp --list-formats "https://www.youtube.com/watch?v=oHg5SJYRHA0"
  25.  
  26. Download a video with the best video and best audio stream:
  27.  
  28. yt-dlp --format "bv*+ba/b" https://www.youtube.com/watch?v=r3eaGCk2Acs
  29.  
  30. Download a video with a defined format, in this case the best mp4 video available (default is "bv*+ba/b"):
  31.  
  32. yt-dlp --format "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" "https://www.youtube.com/watch?v=oHg5SJYRHA0"
  33.  
  34. Extract audio from a video (requires ffmpeg or ffprobe):
  35.  
  36. yt-dlp --extract-audio "https://www.youtube.com/watch?v=oHg5SJYRHA0"
  37.  
  38. Specify audio format and audio quality of extracted audio (between 0 (best) and 10 (worst), default = 5):
  39.  
  40. yt-dlp --extract-audio --audio-format mp3 --audio-quality 0 "https://www.youtube.com/watch?v=oHg5SJYRHA0"
  41.  
  42. List subitles available
  43.  
  44. yt-dlp --list-subs https://www.youtube.com/watch?v=r3eaGCk2Acs
  45.  
  46. Download subtitles (if available) of a video (default subtitle file format is .vtt):
  47.  
  48. yt-dlp --write-subs en https://www.youtube.com/watch?v=r3eaGCk2Acs
  49.  
  50. Specify the format to download subtitle:
  51.  
  52. $ yt-dlp --write-subs en --sub-format json3 https://www.youtube.com/watch?v=r3eaGCk2Acs
  53.  
  54. Embed subtitles into the video (the option --embed-subs works only for mp4, webm and mkv videos):
  55.  
  56. yt-dlp --format "bv*+ba/b" --embed-subs --merge-output-format mp4 https://www.youtube.com/watch?v=r3eaGCk2Acs
  57.  
  58. Download all playlists of YouTube channel/user keeping each playlist in separate directory:
  59.  
  60. yt-dlp -o "%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "https://www.youtube.com/user/TheLinuxFoundation/playlists"
  61.  
  62. Download Udemy course keeping each chapter in separate directory under MyVideos directory in your home:
  63.  
  64. yt-dlp -u user -p password -P "~/MyVideos" -o "%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s" "https://www.udemy.com/java-tutorial"
  65.  
  66. Download entire series season keeping each series and each season in separate directory under C:/MyVideos:
  67.  
  68. yt-dlp -P "C:/MyVideos" -o "%(series)s/%(season_number)s - %(season)s/%(episode_number)s - %(episode)s.%(ext)s" "https://videomore.ru/kino_v_detalayah/5_sezon/367617"
  69.  
  70.  
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement