Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2/19/2019 how to download a specific no of videos from a youtube playlist using Youtube­dl?

 ­ Stack Overflow

how to download a specific no of videos Ask Question

from a youtube playlist using Youtube­
dl?

I want to
download a
­3 particular no. of
files from a
Youtube playlist
which are
arranged one
after other in the
list. How do I do
so using
youtube­dl nd
ffmpeg?? Also I
want to number
them according
to their list
number.

youtube­dl

asked Sep 24 '18 at 14:15
Sibasish Mishra
1 3

1 Answer

Use  ‐‐playlist‐
end  and a
0 template with 
playlist_index ,
like this:

youtube‐dl ‐‐playlist‐end 2 ‐o "%(playlist_index)s‐%(title)s‐%(id)s.%(ext)s"
PLiZxWe0ejyv9R8q1jN70HZ4mwhTJxSIXf
https://stackoverflow.com/questions/52481324/how­to­download­a­specific­no­of­videos­from­a­youtube­playlist­using­youtube­dl 1/4
2/19/2019 how to download a specific no of videos from a youtube playlist using Youtube­dl? ­ Stack Overflow

Replace  2  with
the number of
videos you want
to download, and 
PLiZxWe0ejyv9R8q
1jN70HZ4mwhTJxSIX
 with the
f
playlist ID or
playlist URL you
actually want to
download.
By using our site, you acknowledge that you have read and understand our  Cookie Policy, Privacy Policy, and our
Terms of Service.
edited Sep 24 '18 at 20:02

answered Sep 24 '18 at 18:06
phihag
198k 48 363 408

What 'title',
'id', 'ext'
should be
used for
the
variables
within the
brackets in
the
template
given
above? –
  Sibasish Mishra
Sep 24 '18
at 19:53

None ­ the
value of
the  ‐o
option
should be
copied
verbatim
and remain
in quotes.
youtube­dl
will fill out
these
variables
for every
video. –
 phihag

Sep 24 '18
at 20:02
https://stackoverflow.com/questions/52481324/how­to­download­a­specific­no­of­videos­from­a­youtube­playlist­using­youtube­dl 2/4
2/19/2019 how to download a specific no of videos from a youtube playlist using Youtube­dl? ­ Stack Overflow
at 20:02

I need to
download
a specific
no. of
videos
from a
Youtube
playlist
containing
100 videos
and the
starting
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
index of
Terms of Service. the video
in the
playlist is
11 I.e. all
10 videos
after the
video
indexed 11
in the
playlist.
How do I
download
the videos
in the
same
order as in
playlist
along with
their index
as in the
list.? –
  Sibasish Mishra
Sep 24 '18
at 20:08

If you don't
want to
start at the
first index,
either add
‐‐
playlist‐
start  and
‐‐
playlist‐
end , or
just  ‐‐
playlist‐
items ,
and use
the output
template
from this
answer.
See the
documenta
tion for
https://stackoverflow.com/questions/52481324/how­to­download­a­specific­no­of­videos­from­a­youtube­playlist­using­youtube­dl 3/4
2/19/2019 how to download a specific no of videos from a youtube playlist using Youtube­dl? ­ Stack Overflow
tion for
more
information
. – phihag
Sep 24 '18
at 20:14

By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our
Terms of Service.

https://stackoverflow.com/questions/52481324/how­to­download­a­specific­no­of­videos­from­a­youtube­playlist­using­youtube­dl 4/4

You might also like