Quotes
The hacker mindset doesn't actually see what happens on the other side, to the victim.

Kevin Mitnick

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”

Bill Gates

“First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack.”

George Carrette

I get hired by companies to hack into their systems and break into their physical facilities to find security holes. Our success rate is 100%; we've always found a hole.

Kevin Mitnick

“Microsoft has a new version out, Windows XP, which according to everybody is the ‘most reliable Windows ever.‘ To me, this is like saying that asparagus is ‘the most articulate vegetable ever.‘ “

Dave Barry

“Software is like sex: It’s better when it’s free.”

Steve McConnell

Published on Feb 12, 2015
Article #14

Kako iz Youtube-a download-at video posnetek ali mp3 na Linux-u preko terminala
  • ​ 

    1. Prek terminala inštaliramo repository

     

    sudo apt-get install youtube-dl

     

    1. Nato lahko že download-amo primer:

    youtube-dl <url>

     

    Lahko pa izberete specifično opcijo:

    -b Najboljša kvaliteta

    -m mobilna verzija

    -d Najboljša resolucija

    -g Ne download-aj, prikaži samo url naslov

    -c Če se je zalomilo pri prejšnem download-u, nadaljujete download

    -w Ne zapiši čez, že istoimensko datoteko

     

    Za izpis vseh komand vpišite v terminal :

    man youtube-dl

    1. Konvertiranje v mp3. Potrebujemo repository ffmpeg, ki ga naložimo preko terminala:

    sudo apt-get install ffmpeg

    Nato ustvarite bash scripto s katero opravite convert. Uporabite gedit ali nano, vim, etc..

    youtube-to-mp3 lahko tudi po zelji spreminjate || v file vstavite naslednjo napisano skripto:

     

    #!/bin/bash

    echo Vpišite youtube url za začetek download video.

    read VIDEO

    echo Kdo je izvajalec pesmi?

    read ARTIST

    echo Kakšno je ime pesmi?

    read NAME

    youtube-dl $VIDEO -o "${ARTIST} - ${NAME}.flv"

    ffmpeg -i "${ARTIST} - ${NAME}.flv" "${ARTIST} - ${NAME}.mp3"

    rm -rf "${ARTIST} - ${NAME}.flv"

    echo Vaš video je convertiran v mp3 format!

     

    Nato dodelite pravice z naslednjim ukazom:

    chmod +x youtube-to-mp3

    In ustvarjeno skripto premaknemo v /bin/ :

    sudo mv youtube-to-mp3 /bin/

     

    Sedaj lahko poženete skripto z ukazom v terminalu:

    youtube-to-mp3

    in sledite navodilom ….

     

    Have fun...

Back