====== yt-dlp ======
Herramienta en línea de comandos para descargar vídeos de [[https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md|múltiples sitios]]. Basada en [[informatica:software:youtube-dl|Youtube-dl]], pero con mejoras.
* [[https://github.com/yt-dlp/yt-dlp|Repositorio de código]]
===== Opciones =====
==== Descargar enlaces de un archivo ====
Si tenemos un fichero con enlaces a vídeos por cada línea, podemos hacer que **yt-dlp** los descargue en lote:
yt-dlp -a fichero-enlaces
==== Listar los formatos disponibles de descarga ====
yt-dlp -F https://enlace/video
También es equivalente:
yt-dlp --list-formats https://enlace/video
Si usamos ''yt-dlp'' sin opciones, descargará la versión de vídeo y audio de más calidad.
Ejemplo de salida:
[youtube] Extracting URL: https://www.youtube.com/watch?v=i2eePv1zk3A
[youtube] i2eePvFzkUQ: Downloading webpage
[youtube] i2eePvFzkUQ: Downloading ios player API JSON
[youtube] i2eePvFzkUQ: Downloading android player API JSON
[youtube] i2eePvFzkUQ: Downloading m3u8 information
[info] Available formats for i2eePv1zk3A:
ID EXT RESOLUTION FPS CH │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC ABR ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb3 mhtml 48x27 0 │ mhtml │ images storyboard
sb2 mhtml 80x45 0 │ mhtml │ images storyboard
sb1 mhtml 160x90 0 │ mhtml │ images storyboard
sb0 mhtml 320x180 0 │ mhtml │ images storyboard
233 mp4 audio only │ m3u8 │ audio only unknown Default
234 mp4 audio only │ m3u8 │ audio only unknown Default
139 m4a audio only 2 │ 3.43MiB 49k https │ audio only mp4a.40.5 49k 22k low, m4a_dash
140 m4a audio only 2 │ 9.11MiB 129k https │ audio only mp4a.40.2 129k 44k medium, m4a_dash
251 webm audio only 2 │ 9.17MiB 130k https │ audio only opus 130k 48k medium, webm_dash
17 3gp 176x144 8 1 │ 5.54MiB 79k https │ mp4v.20.3 mp4a.40.2 22k 144p
269 mp4 256x144 30 │ ~ 12.65MiB 176k m3u8 │ avc1.4D400C 176k video only
160 mp4 256x144 30 │ 5.01MiB 71k https │ avc1.4D400C 71k video only 144p, mp4_dash
230 mp4 640x360 30 │ ~ 53.74MiB 746k m3u8 │ avc1.4D401E 746k video only
134 mp4 640x360 30 │ 24.12MiB 343k https │ avc1.4D401E 343k video only 360p, mp4_dash
18 mp4 640x360 30 2 │ 30.34MiB 431k https │ avc1.42001E mp4a.40.2 44k 360p
605 mp4 640x360 30 │ ~ 39.96MiB 555k m3u8 │ vp09.00.21.08 555k video only
22 mp4 1280x720 30 2 │ ≈107.05MiB 1486k https │ avc1.64001F mp4a.40.2 44k 720p
232 mp4 1280x720 30 │ ~176.27MiB 2447k m3u8 │ avc1.64001F 2447k video only
136 mp4 1280x720 30 │ 95.51MiB 1358k https │ avc1.64001F 1358k video only 720p, mp4_dash
270 mp4 1920x1080 30 │ ~371.11MiB 5153k m3u8 │ avc1.640028 5153k video only
137 mp4 1920x1080 30 │ 190.90MiB 2715k https │ avc1.640028 2715k video only 1080p, mp4_dash
* [[https://github.com/yt-dlp/yt-dlp#format-selection-examples|Ejemplos de selección de formato]]