Diferencias usuario windows y Gnu /Linux
Usuario Windows | Usuario Gnu / Linux | |
---|---|---|
Busca páginas para descargar vídeos de otras páginas | No busca ninguna página | |
Busca plugins para descargar vídeos de páginas web | No busca ningún plugin | |
Busca software (que puede tener virus) para reconvertir formatos | Sólo usa el comando ffmpeg | |
No aprende a usar youtube-dl como tampoco otros comandos | Aprende a usar youtube-dl | |
Recurre a información dispersa | Recurre a buscar el manual de la herramienta correspondiente de siempre | |
Usa plugins y herramientas del momento que al poco no sirven | Aprende a usar youtube-dl y cuando pasan años sigue usándolo porque está hecha para eso | |
Aprende a usar herramientas que luego no sirven | Aprende a usar herramientas que no caducan | |
Necesita una herramienta distinta para cada página web | Lo hace todo con youtube-dl | |
Utiliza herramientas privativas cuyo interés principal de su autor/es es ganar dinero | Utiliza herramientas mantenidas por una comunidad cuyo interés es que la herramienta funcione | |
Básicamente cada vez que quiere descargar un vídeo y ha pasado algún tiempo pierde tiempo buscando una herramienta porque las que tenía no sirven | Usa las herramientas del repositorio del sistema operativo o utiliza youtube-dl y hace un update o descarga el binario si pasó un tiempo |
Veamos un ejemplo de lo que hace el usuario Gnu/Linux
https://www.youtube.com/watch?v=ftPVxgjoDZI
Actualizamos
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2943k 100 2943k 0 0 2355k 0 0:00:01 0:00:01 --:--:-- 6104k
Listar formatos y codecs disponibles
yt-dlp -F ftPVxgjoDZI [youtube] Extracting URL: ftPVxgjoDZI [youtube] ftPVxgjoDZI: Downloading webpage [youtube] ftPVxgjoDZI: Downloading ios player API JSON [youtube] ftPVxgjoDZI: Downloading player 0b866fa6 WARNING: [youtube] ftPVxgjoDZI: nsig extraction failed: You may experience throttling for some formats n = sWy0ps2Qmgv446dr ; player = https://www.youtube.com/s/player/0b866fa6/player_ias.vflset/en_US/base.js WARNING: [youtube] ftPVxgjoDZI: nsig extraction failed: You may experience throttling for some formats n = AoGCYZGcEKcBNqF0 ; player = https://www.youtube.com/s/player/0b866fa6/player_ias.vflset/en_US/base.js [youtube] ftPVxgjoDZI: Downloading m3u8 information [info] Available formats for ftPVxgjoDZI: ID EXT RESOLUTION FPS CH │ FILESIZE TBR PROTO │ VCODEC VBR ACODEC ABR ASR MORE INFO ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── sb2 mhtml 48x27 0 │ mhtml │ images storyboard sb1 mhtml 60x45 0 │ mhtml │ images storyboard sb0 mhtml 120x90 0 │ mhtml │ images storyboard 233 mp4 audio only │ m3u8 │ audio only unknown [es] Default 234 mp4 audio only │ m3u8 │ audio only unknown [es] Default 249-drc webm audio only 2 │ 4.95MiB 50k https │ audio only opus 50k 48k [es] low, DRC, THROTTLED, webm_dash 250-drc webm audio only 2 │ 7.65MiB 77k https │ audio only opus 77k 48k [es] low, DRC, THROTTLED, webm_dash 139-drc m4a audio only 2 │ 4.84MiB 49k https │ audio only mp4a.40.5 49k 22k [es] low, DRC, m4a_dash 249 webm audio only 2 │ 5.71MiB 58k https │ audio only opus 58k 48k [es] low, THROTTLED, webm_dash 250 webm audio only 2 │ 7.83MiB 79k https │ audio only opus 79k 48k [es] low, THROTTLED, webm_dash 139 m4a audio only 2 │ 4.84MiB 49k https │ audio only mp4a.40.5 49k 22k [es] low, m4a_dash 251-drc webm audio only 2 │ 13.16MiB 133k https │ audio only opus 133k 48k [es] medium, DRC, THROTTLED, webm_dash 140-drc m4a audio only 2 │ 12.85MiB 129k https │ audio only mp4a.40.2 129k 44k [es] medium, DRC, m4a_dash 251 webm audio only 2 │ 13.43MiB 135k https │ audio only opus 135k 48k [es] medium, THROTTLED, webm_dash 140 m4a audio only 2 │ 12.85MiB 129k https │ audio only mp4a.40.2 129k 44k [es] medium, m4a_dash 269 mp4 192x144 30 │ ~14.84MiB 150k m3u8 │ avc1.4D400C 150k video only 160 mp4 192x144 30 │ 2.30MiB 23k https │ avc1.4D400C 23k video only 144p, mp4_dash 18 mp4 480x360 30 2 │ ≈19.96MiB 201k https │ avc1.42001E mp4a.40.2 44k [es] 360p, THROTTLED 243 webm 480x360 30 │ 6.53MiB 66k https │ vp9 66k video only 360p, THROTTLED, webm_dash 230 mp4 480x360 30 │ ~52.00MiB 524k m3u8 │ avc1.4D401E 524k video only 134 mp4 480x360 30 │ 7.23MiB 73k https │ avc1.4D401E 73k video only 360p, mp4_dash 605 mp4 480x360 30 │ ~32.86MiB 331k m3u8 │ vp09.00.21.08 331k video only 231 mp4 640x480 30 │ ~85.65MiB 864k m3u8 │ avc1.4D401E 864k video only 135 mp4 640x480 30 │ 11.35MiB 114k https │ avc1.4D401E 114k video only 480p, mp4_dash
Elegimos los formatos de audio y vídeo que nos convengan
yt-dlp -f 135+140 -o "video.mp4" ftPVxgjoDZI [youtube] Extracting URL: ftPVxgjoDZI [youtube] ftPVxgjoDZI: Downloading webpage [youtube] ftPVxgjoDZI: Downloading ios player API JSON [youtube] ftPVxgjoDZI: Downloading player 0b866fa6 WARNING: [youtube] ftPVxgjoDZI: nsig extraction failed: You may experience throttling for some formats n = kuQ2HqfMRFuf8xFo ; player = https://www.youtube.com/s/player/0b866fa6/player_ias.vflset/en_US/base.js WARNING: [youtube] ftPVxgjoDZI: nsig extraction failed: You may experience throttling for some formats n = HpweVhSlLU6Y1kEX ; player = https://www.youtube.com/s/player/0b866fa6/player_ias.vflset/en_US/base.js [youtube] ftPVxgjoDZI: Downloading m3u8 information [info] ftPVxgjoDZI: Downloading 1 format(s): 135+140 [download] Destination: video.f135.mp4 [download] 100% of 11.35MiB in 00:00:02 at 5.52MiB/s [download] Destination: video.f140.m4a [download] 100% of 12.85MiB in 00:00:02 at 5.12MiB/s [Merger] Merging formats into "video.mp4" Deleting original file video.f135.mp4 (pass -k to keep) Deleting original file video.f140.m4a (pass -k to keep)
Hasta aquí hemos visto como descargar vídeos de youtube, lo podemos hacer con cualquier otra página web, podemos ver las páginas soportadas con yt-dlp –list-extractors, si hacemos yt-dlp –list-extractors | wc -l nos da un total de 1829 páginas webs de las que descargar vídeos y audio