Wednesday, March 6, 2019

My Notes on youtube-dl

OS: Centos 7.5

#Installing Python
TBD

#Installing FFMPEG

yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

yum install ffmpeg ffmpeg-devel fribidi zvbi lame-libs



#Downloading a video that is split in to multiple files (Verified it worked with 8 mp4 files)
$ cat mylist.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'

$ ffmpeg -f concat -i mylist.txt -c copy output

#Downloading a file that you have to authenticate with first (Link, Link)

Assuming you are using chrome extension (link based in title), you click the new extension after authentication, it will give you the cookie.

Create a file that you can pass to youtube-dl.

So:

vim cookies.txt

Paste contents copied earlier

youtube-dl --cookies=cookies.txt <url>

#Downloading a group of videos

Create list called list.txt:

ex ->
<url>
<url>
<url>

Save and close

youtube-dl -a list.txt

No comments:

Post a Comment

ShareThis