PDA

View Full Version : youtube-dl


nullacht
06-12-2015, 04:00 AM
youtube-dl

A command line tool to download videos from various websites.

https://rg3.github.io/youtube-dl

https://github.com/rg3/youtube-dl

Command line usage:

youtube-dl [options] [url]

Windows binaries:

https://yt-dl.org/latest/youtube-dl.exe

Graphical user interface:

https://github.com/MrS0m30n3/youtube-dl-gui

Supported websites:

https://rg3.github.io/youtube-dl/supportedsites.html

https://github.com/rg3/youtube-dl/tree/master/youtube_dl/extractor

If something doesn't work, submit a bug report to the issue tracker on GitHub.

https://github.com/rg3/youtube-dl/issues

In combination with mpv it becomes a streaming media player.

http://mpv.io

http://mpv.io/manual/master/#options-ytdl

--ytdl

Enable the youtube-dl hook-script. It will look at the input URL, and will play the video located on the website. This works with many streaming sites, not just the one that the script is named after. This requires a recent version of youtube-dl to be installed on the system.

Some example command lines:

youtube-dl -F "http://www.rte.ie/player/99/show/10431178/"
[Rte] 10431178: Downloading webpage
[Rte] 10431178: Downloading JSON metadata
[Rte] 10431178: Downloading f4m manifest
[info] Available formats for 10431178:
format code extension resolution note
512 mp4 unknown
1024 mp4 unknown
2048 mp4 unknown (best)

youtube-dl -g "http://www.rte.ie/player/99/show/10431178/"
http://vod.hds.rasset.ie/hds-vod/2015/0613/20150613_rteone-onenews_cl10431178_10431179_260_/20150613_rteone-onenews_cl10431178_10431179_260__2048k.mp4.f4m

youtube-dl "http://www.rte.ie/player/99/show/10431178/"
[Rte] 10431178: Downloading webpage
[Rte] 10431178: Downloading JSON metadata
[Rte] 10431178: Downloading f4m manifest
[download] Downloading f4m manifest
[download] Destination: Watch One News online-10431178.mp4

youtube-dl -F "http://www.bbc.co.uk/iplayer/episode/b05yy8yt/the-interceptor-episode-1"
[bbc.co.uk] b05yy8yt: Downloading video page
[bbc.co.uk] b05yy8xt: Downloading media selection XML
[info] Available formats for b05yy8xt:
format code extension resolution note
iplayer_streaming_h264_flv_lo_akamai flv 640x360 h264@ 480k, 210.71MiB
iplayer_streaming_h264_flv_lo_limelight flv 640x360 h264@ 480k, 210.71MiB
iplayer_streaming_h264_flv_akamai flv 640x360 h264@ 796k, 329.18MiB
iplayer_streaming_h264_flv_limelight flv 640x360 h264@ 796k, 329.18MiB
iplayer_streaming_h264_flv_high_akamai flv 832x468 h264@1500k, 616.18MiB
iplayer_streaming_h264_flv_high_limelight flv 832x468 h264@1500k, 616.18MiB
pc_streaming_hd_akamai flv 1280x720 h264@2800k, 983.54MiB
pc_streaming_hd_level3 flv 1280x720 h264@2800k, 983.54MiB (best)

youtube-dl -g "http://www.bbc.co.uk/iplayer/episode/b05yy8yt/the-interceptor-episode-1"
rtmp://iplayertokfs.fplive.net/iplayertok?token=c3RhcnRfdGltZT0yMDE1MDYxMzE2MDYzN yZlbmRfdGltZT0yMDE1MDYxMzIwMDYzNyZkaWdlc3Q9ODQ0MzQ yYzkzYzAxOWM2MzU3YmRkYzhmZTNkMWFhMTI=mp4:3200kbps/modav/bUnknown-e6bc662f-5702-43de-8f6f-2636ae290c80_b05yy8xt_1433281734578

youtube-dl "http://www.bbc.co.uk/iplayer/episode/b05yy8yt/the-interceptor-episode-1"
[bbc.co.uk] b05yy8yt: Downloading video page
[bbc.co.uk] b05yy8xt: Downloading media selection XML
[download] Destination: The Interceptor, Episode 1-b05yy8xt.flv

-F | --list-formats List all available formats
-g | --get-url Simulate, quiet but print URL

minipc
06-12-2015, 08:08 AM
how is this related to rtmpdump?

nullacht
06-12-2015, 08:56 AM
Do some research before asking such questions.

https://rtmpdump.mplayerhq.hu (https://rtmpdump.mplayerhq.hu/)

Projects using rtmpdump:

youtube-dl

-D3n1s-
06-12-2015, 11:51 AM
Nice work man. I really appreciate it! I'm using it right now.

That's one big list of all the supported sites! I don't even want to know how you check what's working and what doesn't work anymore. :D

minipc
06-12-2015, 04:51 PM
Do some research before asking such questions.

https://rtmpdump.mplayerhq.hu (https://rtmpdump.mplayerhq.hu/)

yes, i was aware that youtube-dl is listed as a project that uses rtmpdump, but how does this link help me understand how youtube-dl is related to rtmpdump?

chanc
08-13-2016, 06:33 PM
could urls like :

http://abc.go.com/shows/world-news-tonight/episode-guide/2016-08/12-USA-womens-soccer-suffers-huge-loss-rio

be supported ?

Palfu
03-28-2017, 09:32 PM
I would prefer when you take the newer thing from http://www.ytdl.info

confused.com
04-29-2017, 12:03 AM
https://github.com/rg3/youtube-dl/issues/12908

j_cool
05-01-2017, 03:35 AM
tvplayer.com cnninternationaleurope bug has been fixed with release

youtube-dl 2017.05.01

https://github.com/rg3/youtube-dl/releases



C:\>youtube-dl.exe -v -F --no-check-certificate http://tvplayer.com/watch/cnninternationaleurope
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', '--no-check-certificate', 'http://tvplayer.com/watch/cnninternationaleurope']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.05.01
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg n3.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[TVPlayer] cnninternationaleurope: Downloading webpage
[TVPlayer] cnninternationaleurope: Downloading JSON context
[TVPlayer] cnninternationaleurope: Downloading JSON stream
[TVPlayer] cnninternationaleurope: Downloading m3u8 information
[info] Available formats for 286:
format code extension resolution note
214 mp4 unknown 214k
564 mp4 unknown 564k
1064 mp4 unknown 1064k
1864 mp4 unknown 1864k
2564 mp4 unknown 2564k (best)



youtube-dl.exe --no-check-certificate -f 1864 http://tvplayer.com/watch/cnninternationaleurope -o - | vlc.exe -



Ihry,

these 2 are for you, fake news without CMD window pop-up:



@echo off
echo youtube-dl.exe --no-check-certificate -f 2564 http://tvplayer.com/watch/cnninternationaleurope -o - ^| ffplay.exe -vf scale=854:480 - > %TEMP%\news.bat
start /min %TEMP%\news.bat ^& exit

@echo off
echo youtube-dl.exe --no-check-certificate -f 1965 https://tvplayer.com/watch/bbcnews -o - ^| ffplay.exe -vf scale=854:480 - > %TEMP%\news.bat
start /min %TEMP%\news.bat ^& exit

confused.com
01-03-2018, 01:28 AM
How to record BBC iPlayer without signing-in

http://stream-recorder.com/forum/record-bbc-iplayer-without-signing-t23889.html

j_cool
10-24-2020, 01:23 AM
In what way is American censorship different than Chinese?
In USA it is called RIAA and Github, and in China Communist Party.

https://github.com/ytdl-org/youtube-dl/releases

cabulo
10-24-2020, 01:43 AM
youtube-dl was used by 300 countries.
Somebody commes from one country and takes it off the internet.
Isn't he an asshole?

wizard
10-24-2020, 10:03 AM
youtube-dl was used by 300 countries.
Somebody commes from one country and takes it off the internet.
Isn't he an asshole?

And not only that...

Now, it will simply go underground just as everything else did.

Damianonymous
10-24-2020, 11:16 AM
https://www.youtube.com/watch?v=SnLB8wysMbY

j_cool
10-24-2020, 03:48 PM
I have watched one half of this video.
After watching this I don't see any constructive solution to censorship of IT code.
RIAA are music business and they have the power to remove IT code from the internet.

As I remember Github was amateur free project in the old days and when it grew
to be significant big money bought it and now they control it any way they like.
Music business censors IT code ???

Solution would be to desert Github and leave it to its owner and RIAA.
How to do it, is another story.
If this goes on this way, it won't go on forever.
Sooner or later it will click to somebody to look for Github alternative.

j_cool
10-26-2020, 04:23 AM
Here is one example of somebody who deserted Github:

https://github.com/0xboobface/where-is-ctbrec

First was porn, then will be music and reaction may follow because who knows who doesn't like who knows what,
according to "the law".

confused.com
09-10-2021, 11:16 AM
Latest (v2021.06.06)

https://yt-dl.org/

j_cool
09-17-2021, 12:38 PM
Strange that youtube-dl don't update their own site with latest information.

https://github.com/yt-dlp/yt-dlp/releases

https://github.com/mpv-player/mpv/issues/9208

j_cool
09-18-2021, 07:10 AM
RIAA splashed out some cash to sue youtube-dl.
Now, let's go all over again, splash out some more cash:

https://github.com/yt-dlp

Let's see who has deeper pockets, RIAA or Microsoft.