Page 2 of 2
Re: How to donwload from a website to a USB ...?
Posted: Sat Jun 18, 2022 10:02 am
by Stuart_M
keos wrote: Sat Jun 18, 2022 9:32 am
I tried now 'this' ... and i got video and audio but with a warning saying that "it is often not the best option":
Code: Select all
keos@kaos:~
$ yt-dlp -f best -P /media/keos/USB-DATA/ https://www.youtube.com/watch?v=TNf2Ye_mduY/media/keos/USB-DATA/
...
The answer is to eliminate
-f best from the command you are using. The correct command is shown in my Post #10 above.
When the -f option is used you are telling yt-dlp to use a format other than the default, which is the format that gives the best quality. Without the -f option yt-dlp will automatically select the best video and audio. From everything you have posted in this thread there is no reason that you would need or want that option at this time.
If something other than the "best" quality is desired then force that by using the -f (format) option.
Re: How to donwload from a website to a USB ...?
Posted: Sat Jun 18, 2022 10:13 am
by baldyeti
Basically what i meant was: just use yt-dlp like you otherwise would, just add the -P flag and its argument (your target directory, underneath your USB mount point)
Or Stuart's suggestion might be simpler: cd to your target folder before invoking yt-dlp
Re: How to donwload from a website to a USB ...? [Solved]
Posted: Sat Jun 18, 2022 10:33 am
by keos
I have tried again ... this time, I just added '-P' as you indicate and it worked correctly
-- I prefer this command because I rarely download large files from youtube and I don't want to 'permanently' modify Thunar, it would be inconvenient ... every time I want to download something I have to ...
Finally this is what I did:
Code: Select all
keos@kaos:~
$ yt-dlp -P /media/keos/USB-DATA/ https://www.youtube.com/watch?v=TNf2Ye_mduY/media/keos/USB-DATA/
[youtube] TNf2Ye_mduY: Downloading webpage
[youtube] TNf2Ye_mduY: Downloading android player API JSON
[info] TNf2Ye_mduY: Downloading 1 format(s): 313+251
[download] Destination: /media/keos/USB-DATA/Kim Walker-Smith – Make Room (Official Live Video) [TNf2Ye_mduY].f313.webm
[download] 100% of 876.37MiB in 03:03
[download] Destination: /media/keos/USB-DATA/Kim Walker-Smith – Make Room (Official Live Video) [TNf2Ye_mduY].f251.webm
[download] 100% of 12.70MiB in 00:06
[Merger] Merging formats into "/media/keos/USB-DATA/Kim Walker-Smith – Make Room (Official Live Video) [TNf2Ye_mduY].webm"
Deleting original file /media/keos/USB-DATA/Kim Walker-Smith – Make Room (Official Live Video) [TNf2Ye_mduY].f251.webm (pass -k to keep)
Deleting original file /media/keos/USB-DATA/Kim Walker-Smith – Make Room (Official Live Video) [TNf2Ye_mduY].f313.webm (pass -k to keep)
keos@kaos:~
$
Thank you very much to both of you

Re: How to donwload from a website to a USB ...?
Posted: Sat Jun 18, 2022 10:54 am
by towwire
You can install 'youtubedl-gui' which has a Browse.. button that you set or change where you want the save your file.