Yuav ua li cas rub tawm YouTube yeeb yaj duab ntawm Linux

Cov txheej txheem:

Yuav ua li cas rub tawm YouTube yeeb yaj duab ntawm Linux
Yuav ua li cas rub tawm YouTube yeeb yaj duab ntawm Linux
Anonim

Vim muaj YouTube lawm, tib neeg thiaj xav rub yeeb yaj kiab los khaws cia tom qab lossis ua si offline thiab mus. Raws li txoj cai lij choj, YouTube tsis ua kom muaj downloads. Txawm li cas los xij, muaj lub cuab yeej youtube-dl los rub cov yeeb yaj kiab dawb ntawm Linux, nrog rau Windows thiab Mac.

Muaj ob peb txoj hauv kev siv youtube-dl ntawm Linux. Ib txoj hauv kev yooj yim yog siv cov ntawv youtube-dl los ntawm kab hais kom ua. Yog tias koj nyiam qhov kev xaiv graphical, muaj qhov kawg rau hauv youtube-dl uas muab ntau yam kev tswj hwm thiab kev xaiv.

Install YouTube-dl

Txawm koj xav rub tawm YouTube yeeb yaj kiab nrog daim ntawv thov duab lossis kab hais kom ua, koj yuav xav tau youtube-dl. Youtube-dl yog tsab ntawv Python uas rub tawm YouTube video los ntawm lub vev xaib thiab hloov nws mus rau ntau hom, suav nrog cov suab nkaus xwb.

Rau cov neeg siv Linux, tau txais youtube-dl feem ntau yog ncaj nraim. Tsab ntawv yog qhib-qhov, thiab koj tuaj yeem pom nws hauv ntau qhov chaw xa khoom xa tawm. Ua raws li cov lus qhia rau koj qhov kev faib tawm Linux.

Koj tseem yuav xav tau FFMPEG kom tso cai rau youtube-dl los hloov cov yeeb yaj kiab rub tawm ntawm hom ntawv thiab tswj cov yees duab thiab suab zoo. Koj tuaj yeem nruab FFMPEG nrog rau youtube-dl.

Ubuntu thiab Linux Mint

Rau Ubuntu thiab Linux Mint, youtube-dl nyiam poob qab hauv Ubuntu ecosystem. Feem ntau, qhov ntawd yuav tsis yog qhov loj, tab sis youtube-dl yuav tsum nyob tam sim no kom nyob ua ntej ntawm YouTube hloov tshiab uas tiv thaiv nws los ntawm kev ua haujlwm. Yog li, yog tias koj siv Ubuntu lossis Mint, nruab Python Pip tus thawj tswj pob kom tau txais cov kev tshaj tawm tshiab.

  1. Qhib lub davhlau ya nyob twg.
  2. Nkag mus rau cov lus txib hauv qab no rau nruab Pip thiab FFMPEG:

    sudo apt nruab python3-pip ffmpeg

    Image
    Image
  3. Install youtube-dl siv Pip Python pob tus thawj tswj:

    sudo pip3 nruab youtube-dl

    Image
    Image
  4. Thaum qhov kev teeb tsa tiav, koj tuaj yeem siv youtube-dl los ntawm kab hais kom ua. Txhawm rau hloov kho youtube-dl yav tom ntej, khiav cov lus txib hauv qab no:

    sudo pip3 nruab --upgrade youtube-dl

Debian

Lub Debian multimedia repository muaj lub tsev qiv ntawv ntawm cov pob khoom tshiab rau ntau yam multimedia apps, suav nrog youtube-dl. Koj yuav tau ntxiv lub repository yog tias koj tsis tau. Ces, nruab youtube-dl ib txwm nrog Apt.

  1. Qhib lub davhlau ya nyob twg.
  2. Nkag mus rau cov lus txib hauv qab no txhawm rau ntxiv qhov chaw cia rau koj lub computer:

    sudo ncha "deb https://www.deb-multimedia.org buster lub ntsiab tsis pub dawb" > /etc/apt/sources.list.d/multimedia.list

    Substitute testing los yog sid yog tias koj tab tom khiav ib qho es tsis yog stable.

  3. Hloov kho Apt repositories kom rub hauv qhov tshiab:

    sudo apt hloov tshiab -oAcquire::AllowInsecureRepositories=true

    Cov lus txib no tso cai rau cov chaw khaws ntaub ntawv tsis ruaj vim tias koj tsis tau teeb tsa tus yuam sij kos npe rau lub chaw khaws ntaub ntawv multimedia tseem tsis tau.

  4. Nruab tus yuam sij kos npe rau lub chaw khaws cia:

    sudo apt nruab deb-multimedia-keyring

  5. Install youtube-dl thiab FFMPEG:

    sudo apt nruab youtube-dl ffmpeg

  6. Koj yuav tau txais qhov hloov tshiab los ntawm qhov chaw khaws ntaub ntawv multimedia.

Fedora

Fedora khaws cov hloov tshiab ntawm youtube-dl hauv lawv cov chaw khaws cia, tab sis koj yuav tsis pom FFMPEG nyob ntawd. Rau qhov ntawd, koj yuav xav tau RPM Fusion repository. Yog tias koj siv Fedora ntawm lub desktop, RPM Fusion tsis muaj nuj nqis. Yog tias koj tsis muaj nws, ntxiv rau koj lub kaw lus thiab nruab ob lub pob.

  1. Qhib lub davhlau ya nyob twg.
  2. Khiav cov lus txib hauv qab no ntxiv RPM Fusion chaw cia khoom nrog DNF:

    sudo dnf nruab https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/ nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

  3. Install youtube-dl thiab FFMPEG:

    sudo dnf nruab youtube-dl ffmpeg

Arch Linux thiab Manjaro

Arch Linux, thiab los ntawm kev txuas ntxiv Manjaro, tau hloov kho cov qauv ntawm youtube-dl thiab FFMPEG hauv nws qhov chaw cia khoom qub. Nruab nws nrog Pacman:

pacman -S youtube-dl ffmpeg

Txhob Ua Ntej Kawg

Cov kauj ruam tom ntej no yog xaiv tau. Yog tias koj xav ua haujlwm hauv kab hais kom ua, mus rau qhov ntawd. Txwv tsis pub, ua raws cov kauj ruam txhawm rau txhim kho cov duab kos rau pem hauv ntej kawg rau youtube-dl.

Txoj kev rau nruab nws txawv me ntsis rau txhua qhov kev faib tawm. Ua raws li cov lus qhia rau koj li.

Ubuntu, Mint, thiab Debian

Cov neeg tsim tawm ntawm cov duab kos duab pem hauv ntej kawg, Tartube, ua lawv cov pob khoom rau Ubuntu thiab Debian-raws li kev faib tawm. Koj tuaj yeem tau txais cov pob khoom los ntawm lawv nplooj ntawv Sourceforge.

  1. Qhib browser, ces mus rau Tartube Sourceforge download nplooj.
  2. Select Download Latest Version (lub thawv ntsuab loj) to download the latest release.

    Image
    Image
  3. Txuag pob khoom rau koj Downloads folder.
  4. Qhib lub davhlau ya nyob twg thiab hloov cov npe mus rau Downloads folder.
  5. Saib lub npe ntawm pob rub tawm, thiab nruab nrog Apt. Lossis, siv cov lus txib no:

    sudo apt nruab./python3-tartube_.deb

Fedora

Zoo li Ubuntu thiab Debian, cov neeg tsim tawm Tartube tau ntim lawv cov software rau Fedora thiab ua rau nws muaj nyob rau ntawm nplooj ntawv Sourceforge.

  1. Qhib browser, ces mus rau Tartube Sourceforge download nplooj.
  2. Xaiv qhov tseeb ntawm Tartube los ntawm cov npe.

    Image
    Image
  3. Nrhiav pob RPM tshiab los ntawm cov npe. Zam lub pob nrog STRICT hauv lub npe.

    Image
    Image
  4. Txuag pob khoom rau koj Downloads directory.
  5. Qhib lub davhlau ya nyob twg thiab hloov mus rau Downloads directory.
  6. Install Tartube:

    sudo dnf nruab tartube-.rpm

Arch Linux thiab Manjaro

Tartube muaj nyob rau hauv AUR, yog li muaj ntau txoj hauv kev kom tau txais nws. Xaiv txoj kev teeb tsa AUR uas koj nyiam. Yog tias koj tsis paub txog AUR, cov hauv qab no yog txoj hauv kev rau kev txhim kho AUR pob.

  1. Nruab lub hauv paus-devel thiab git pob:

    sudo pacman -s base-devel git

  2. Hloov mus rau hauv cov npe uas koj xav rub tawm pob thiab clone nws nrog Git:

    cd ~/Downloads

    git clone

  3. Change directory to the tartube directory:

    cd tartube

  4. Tsim thiab nruab pob nrog makepkg:

    makepkg -si

Download Video Nrog Pem Hauv Ntej

Tam sim no uas Tartube tau teeb tsa, koj npaj tau rub tawm cov yeeb yaj kiab los ntawm YouTube.

  1. Launch Tartube. Koj tuaj yeem pom nws nyob hauv Multimedia hauv ntau daim ntawv thov zaub mov. Ntawm GNOME, koj tuaj yeem tshawb nrhiav nws.

    Image
    Image
  2. Xaiv Edit nyob rau sab saum toj ntawm lub qhov rais, tom qab ntawd xaiv System nyiam los ntawm cov ntawv qhia zaub mov.

    Image
    Image
  3. In the System nyiam qhov rai, xaiv youtube-dl los ntawm cov ntawv qhia zaub mov saum toj kawg nkaus.

    Image
    Image
  4. Xaiv tus Path to youtube-dl executable drop-down menu thiab xaiv Siv txoj hauv zos (youtube-dl). Xaiv OK txhawm rau kaw qhov nyiam qhov rai.

    Image
    Image
  5. Nrog Tartube qhib, xaiv Videos nyob rau sab laug-sab laug ntawm lub qhov rais.

    Image
    Image
  6. Mus rau YouTube thiab luam cov URLs ntawm cov yeeb yaj kiab koj xav rub tawm. Tom qab ntawd, muab tshuaj txhuam URL rau hauv lub thawv ntawv nyob rau hauv nruab nrab ntawm Add videos dialog box.

    Image
    Image
  7. Thaum koj muaj cov yeeb yaj kiab koj xav tau, Xaiv OK.
  8. Lub qhov rais Tartube tseem ceeb tshwm, thiab koj cov yeeb yaj kiab tau teem caij. Xaiv Download tag nrho nyob rau hauv qis-sab laug ces kaum ntawm lub qhov rais pib lub download.

    Image
    Image
  9. Koj cov yeeb yaj kiab muaj nyob hauv Tartube. Xaiv Player. Koj tseem tuaj yeem pom koj cov ntaub ntawv video hauv tartube-data directory.

    Image
    Image

Download thiab Hloov Video Los Ntawm Kab hais kom ua

Yog tias koj yog tus kiv cua ntawm kab hais kom ua, nyiam txoj hauv kev ncaj qha, lossis tsis xav cuam tshuam nrog lwm daim software, siv youtube-dl los ntawm kev qhib lub davhlau ya nyob twg thiab dhau mus rau YouTube URL.

  1. Hloov cov npe mus rau lub nplaub tshev uas koj xav rub tawm cov yeeb yaj kiab. Piv txwv li:

    cd ~/Downloads

  2. Txhawm rau rub tawm cov yeeb yaj kiab uas tsis muaj kev hloov pauv, hla qhov URL rau youtube-dl yam tsis muaj cov ntaub ntawv ntxiv:

    youtube-dl

    Uas tau txais koj daim vis dis aus tso rau hauv cov npe tam sim no.

  3. Yog tias koj xav qhia qhov tso zis video tawm tswv yim, ntxiv - F tus chij los sau cov hom muaj:

    youtube-dl -F

    Image
    Image
  4. Koj yuav pom cov npe ntawm cov qauv muaj thiab cov kev daws teeb meem. Xaiv tus koj xav tau, thiab siv tus lej rau sab laug hauv lub rooj los qhia nws nrog - f tus chij:

    youtube-dl -f 137

    Image
    Image
  5. Qhia rau youtube-dl kom rub tau cov yeeb yaj kiab zoo tshaj plaws, siv lub - f chij:

    youtube-dl -f best

  6. Txhawm rau rho tawm suab los ntawm YouTube video, siv tus - x tus chij ua ke nrog - -audio-format thiab - -audio-zoo:

    youtube-dl -x --audo-format flac --audio-quality 0 best

    Tus - -audio-format chij txhawb txhua hom ntawv loj, suav nrog MP3, Vorbis, M4A, AAC, WAV, thiab FLAC. Tus - -audio-zoo tus chij siv qhov ntsuas ntawm 0 txog 9, nrog 0 muab qhov zoo tshaj plaws.

    Image
    Image

Pom zoo: