I'm trying to download all the videos in a channel, using
youtube-dl -citk -o (location) -f best (URL)
.
But it shows an error, saying output file has conflict with video name. So anyone help me with this. I want to download all the video in that channel and also want to specify the location for it.
Note: I also tried using ytuser:
, still nothing
Your command line parameters don't make any sense (see also this FAQ entry). Remove all of the superfluous ones.
In detail:
-f best
makes youtube-dl download the video file with the best individual quality. For many services, including YouTube, the best quality can only be achieved by downloading a video-only and an audio-only file and combining them. Therefore, this option may reduce the quality of the final video, but it no (or only some) postprocessing will be necessary.
-o (location)
is a useful option, provided the actual option is
something like -o "/my/video/directory/%(title)s-%(id)s.%(ext)s"
.
-k
means to keep the downloaded intermediary files. If you're passing in -f best
, it does not make any sense, since there will be no intermediary files.
-t
is equivalent to -o "%(title)s-%(id)s.%(ext)s"
. Since you have already specified a -o
, these two options conflict.
-i
means to silently continue downloading upon errors. This can be a good idea for playlists.
-c
means to continue started downloads. By default, youtube-dl already does that if it detects that everything is alright (i.e. same format etc.).
To fix your problem, remove all the superfluous and conflicting options and run
youtube-dl -i -o (location) (URL)
Add -f best
if you really want to avoid postprocessing.