How to donwload from a website to a USB ...?  [Solved]

Forum for discussion and implementation of project work to enhance mxlinux.org and other MX Websites
Message
Author
Stuart_M
Posts: 695
Joined: Wed Aug 07, 2019 7:10 pm

Re: How to donwload from a website to a USB ...?

#11 Post 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.
Last edited by Stuart_M on Sat Jun 18, 2022 10:14 am, edited 1 time in total.

User avatar
baldyeti
Posts: 717
Joined: Sat Dec 05, 2009 3:37 pm

Re: How to donwload from a website to a USB ...?

#12 Post 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

User avatar
keos
Posts: 1394
Joined: Sat Mar 04, 2017 12:00 pm

Re: How to donwload from a website to a USB ...?  [Solved]

#13 Post 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 :happy:
    Acer Aspire A315-58
    Intel Core i7-1165G7
    Iris Xe Graphics
    MX-23.2-Xfce4 - 4.18.2

    *Matthew 5:11

    User avatar
    towwire
    Posts: 681
    Joined: Fri Oct 15, 2010 12:15 pm

    Re: How to donwload from a website to a USB ...?

    #14 Post by towwire »

    You can install 'youtubedl-gui' which has a Browse.. button that you set or change where you want the save your file.
    It is easier to fight for one's principles then to live up to them.

    Post Reply

    Return to “Website”