youtube-dl youtube.com/videolink --format mp4
I am able to download those video files in mp4 format.
Now I want to download ten videos from different channels. I have a text file with the YouTube links and the names by which I want to save them. The text file with name
data.txt looks like,
http://youtube.com/link1 name1 http://youtube.com/link2 name2 http://youtube.com/link3 name3 ......... ...... ......... ...... http://youtube.com/link10 name10
Now I want to run the
youtube-dl command only once so that it takes the arguments from that text file automatically and save them with the required names.
If I have only the links in
http://youtube.com/link1 http://youtube.com/link2 http://youtube.com/link3 ......... ......... http://youtube.com/link10
I am able to download the videos using the command only once with option
youtube-dl --format mp4 -a data.txt
But I could not rename them simultaneously. From
man page of
youtube-dl I found that there is an option
--output to set the filename.
How could I do that?