Skip to main content

YouTube to mp3 Linux (Ubuntu, Mint, Debian)

This guide will show you how to easily convert YouTube Videos to MP3 on Ubuntu or Debian.

youtube-dl  is a Linux command-line tool for downloading/converting videos. The tool supports YouTube and many other websites such as BBC.

For Ubuntu systems (or systems that are based on it such as Linux Mint)

sudo apt-get install youtube-dl

For Debian

sudo wget https://yt-dl.org/downloads/2014.03.25.1/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
Also, make sure ffmpeg is installed
sudo apt-get install ffmpeg

Before you do anything, update to the latest version of youtube-dl

sudo youtube-dl -U

Once it is installed use the following command to convert YouTube videos to mp3

youtube-dl --extract-audio  --audio-format mp3  <youtube-link>

If you want  an overview of all the different options

youtube-dl --help

Supported sites as of March, 2014

  • 1up.com
  • 220.ro
  • 3sat
  • 4tube
  • 56.com
  • 5min
  • 8tracks
  • 9gag
  • AcademicEarth:Course
  • AddAnime
  • Aftonbladet
  • anitube.se
  • Aparat
  • AppleTrailers
  • archive.org: archive.org videos
  • ARD
  • arte.tv
  • arte.tv:+7
  • arte.tv:concert
  • arte.tv:creative
  • arte.tv:ddc
  • arte.tv:embed
  • arte.tv:future
  • AUEngine
  • bambuser
  • bambuser:channel
  • Bandcamp
  • Bandcamp:album
  • bbc.co.uk: BBC iPlayer
  • blinkx
  • blip.tv:user
  • BlipTV
  • Bloomberg
  • BR: Bayerischer Rundfunk Mediathek
  • Break
  • Brightcove
  • BYUtv
  • Canal13cl
  • canalc2.tv
  • canalplus.fr
  • CBS
  • CeskaTelevize
  • channel9: Channel 9
  • Chilloutzone
  • Cinemassacre
  • clipfish
  • cliphunter
  • Clipsyndicate
  • cmt.com
  • CNN
  • CNNBlogs
  • CollegeHumor
  • ComedyCentral
  • ComedyCentralShows: The Daily Show / The Colbert Report
  • CondeNast: Condé Nast media group: GQ, Glamour, Vanity Fair, Vogue, W Magazine, WIRED
  • Criterion
  • Crunchyroll
  • CSpan: C-SPAN
  • culturebox.francetvinfo.fr
  • d8.tv
  • dailymotion
  • dailymotion:playlist
  • dailymotion:user
  • daum.net
  • defense.gouv.fr
  • Discovery
  • Dotsub
  • Dropbox
  • EbaumsWorld
  • eHow
  • eitb.tv
  • ElPais: El País
  • Engadget
  • Escapist
  • EveryonesMixtape
  • exfm: ex.fm
  • ExtremeTube
  • facebook
  • faz.net
  • fernsehkritik.tv
  • fernsehkritik.tv:postecke
  • Firstpost.com
  • firsttv: Видеоархив - Первый канал
  • Flickr
  • france2.fr:generation-quoi
  • FranceInter
  • francetv: France 2, 3, 4, 5 and Ô
  • francetvinfo.fr
  • Freesound
  • freespeech.org
  • FunnyOrDie
  • Gamekings
  • GameSpot
  • Gametrailers
  • GDCVault
  • generic: Generic downloader that works on some sites
  • Hark
  • Helsinki: helsinki.fi
  • HotNewHipHop
  • Howcast
  • HuffPost: Huffington Post
  • Hypem
  • ign.com
  • imdb: Internet Movie Database trailers
  • imdb:list: Internet Movie Database lists
  • Ina
  • InfoQ
  • Instagram
  • instagram:user: Instagram user profile
  • InternetVideoArchive
  • IPrima
  • ivi: ivi.ru
  • ivi:compilation: ivi.ru compilations
  • JadoreCettePub
  • JeuxVideo
  • jpopsuki.tv
  • Jukebox
  • justin.tv
  • Kankan
  • keek
  • KeezMovies
  • KhanAcademy
  • KickStarter
  • kontrtube: KontrTube.ru - Труба зовёт
  • la7.tv
  • lifenews: LIFE | NEWS
  • LiveLeak
  • livestream
  • livestream:original
  • lynda: lynda.com videos
  • lynda:course: lynda.com online courses
  • m6
  • macgamestore: MacGameStore trailers
  • mailru: Видео@Mail.Ru
  • Malemotion
  • MDR
  • metacafe
  • Metacritic
  • mixcloud
  • Mofosex
  • mooshare: Mooshare.biz
  • MPORA
  • MTV
  • mtviggy.com
  • muzu.tv
  • MySpace
  • MySpass
  • myvideo
  • Naver
  • NBA
  • NBC
  • NBCNews
  • ndr: NDR.de - Mediathek
  • NDTV
  • Newgrounds
  • nfb: National Film Board of Canada
  • nhl.com
  • nhl.com:videocenter: NHL videocenter category
  • niconico: ニコニコ動画
  • Normalboots
  • novamov: NovaMov
  • Nowness
  • nowvideo: NowVideo
  • ocw.mit.edu
  • on.aol.com
  • Ooyala
  • ORF
  • parliamentlive.tv: UK parliament videos
  • PBS
  • Photobucket
  • Playvid
  • plus.google: Google Plus
  • pluzz.francetv.fr
  • podomatic
  • PornHd
  • PornHub
  • Pornotube
  • prosiebensat1: ProSiebenSat.1 Digital
  • Pyvideo
  • radiofrance
  • RBMARadio
  • RedTube
  • RingTV
  • RottenTomatoes
  • Roxwel
  • RTLnow
  • RTS: RTS.ch
  • rutube: Rutube videos
  • rutube:channel: Rutube channels
  • rutube:movie: Rutube movies
  • rutube:person: Rutube person videos
  • RUTV: RUTV.RU
  • savefrom.net
  • screen.yahoo:search: Yahoo screen search
  • ServingSys
  • Sina
  • Slashdot
  • Slideshare
  • smotri: Smotri.com
  • smotri:broadcast: Smotri.com broadcasts
  • smotri:community: Smotri.com community videos
  • smotri:user: Smotri.com user videos
  • Sohu
  • soundcloud
  • soundcloud:set
  • soundcloud:user
  • southpark.de
  • southparkstudios.com
  • Space
  • Spankwire
  • Spiegel
  • Spike
  • stanfordoc: Stanford Open ClassRoom
  • Statigram
  • Steam
  • streamcloud.eu
  • StreamCZ
  • Syfy
  • SztvHu
  • Teamcoco
  • TechTalks
  • techtv.mit.edu
  • TED
  • TF1
  • ThePlatform
  • ThisAV
  • tinypic: tinypic.com videos
  • tou.tv
  • Toypics: Toypics user profile
  • ToypicsUser: Toypics user profile
  • TrailerAddict (Currently broken)
  • Trilulilu
  • TruTube
  • Tube8
  • Tudou
  • Tumblr
  • Tutv
  • tvigle: Интернет-телевидение Tvigle.ru
  • tvp.pl
  • udemy
  • udemy:course
  • Unistra
  • ustream
  • ustream:channel
  • Vbox7
  • VeeHD
  • Veoh
  • Vesti: Вести.Ru
  • Vevo
  • Vice
  • Viddler
  • video.google:search: Google Video search
  • video.mit.edu
  • VideoBam
  • VideoDetective
  • videofy.me
  • videolectures.net
  • VideoPremium
  • viki
  • vimeo
  • vimeo:album
  • vimeo:channel
  • vimeo:group
  • vimeo:review: Review pages on vimeo
  • vimeo:user
  • Vine
  • vk.com
  • vube: Vube.com
  • WashingtonPost
  • wat.tv
  • WDR
  • Weibo
  • Wimp
  • Wistia
  • WorldStarHipHop
  • XBef
  • XHamster
  • XNXX
  • XTube
  • XTubeUser: XTube user profile
  • XVideos
  • Yahoo: Yahoo screen
  • yahoo:news: Yahoo screen
  • YouJizz
  • Youku
  • YouPorn
  • youtube: YouTube.com
  • youtube:channel: YouTube.com channels
  • youtube:favorites: YouTube.com favourite videos, "ytfav" keyword (requires authentication)
  • youtube:history: Youtube watch history, "ythistory" keyword (requires authentication)
  • youtube:playlist: YouTube.com playlists
  • youtube:recommended: YouTube.com recommended videos, "ytrec" keyword (requires authentication)
  • youtube:search: YouTube.com searches
  • youtube:search:date: YouTube.com searches, newest videos first
  • youtube:search_url: YouTube.com search URLs
  • youtube:show: YouTube.com (multi-season) shows
  • youtube:subscriptions: YouTube.com subscriptions feed, "ytsubs" keyword(requires authentication)
  • youtube:toplist: YouTube.com top lists, "yttoplist:{channel}:{list title}" (Example: "yttoplist:music:Top Tracks")
  • youtube:user: YouTube.com user videos (URL or "ytuser" keyword)
  • youtube:watch_later: Youtube watch later list, "ytwatchlater" keyword (requires authentication)
  • ZDF


Comments

  1. everything works fine on my debian 7, but after the download i get this message: WARNING: Unable to remove downloaded video file
    any advices?

    ReplyDelete
    Replies
    1. Problems with access rights! Try cd ~

      Delete
  2. I exactly got what you mean, thanks for posting. And, I am too much happy to find this website on the world of Google. mp3

    ReplyDelete
  3. If you're taking a video utilizing a camcorder verify if it's a digital one. The digital machine can be utilized to soot the movies that you simply wish to add. After the shoot is full, you must join the digital camera to the pc utilizing a USB machine through the USB port on the pc.youtube playlists downloader -tubegeter

    ReplyDelete
  4. When you launch a product, the first thing you need to consider is marketing. It's obvious that you begin digging around many possible ways to market your product. There are many channels via which you can market your product; however the most powerful one is the Video Marketing. In my opinion among Video Marketing, YouTube marketing is the very effective and better way of marketing your businesses online. Let's see why and how? vues de youtube

    ReplyDelete

Post a Comment

Popular posts from this blog

OsmocomBB - Hardware and Software Setup - Tutorial (Motorola C118)

OsmocomBB is an Open Source GSM Baseband software implementation. By using the sofware on a compatible phone (e.g. Motorola C118), you are able to make and receive phone calls, send and receive SMS, etc. based on Free Software only.       Hardware PL2303HX USB Serial To RS232 TTL Chip 2.5 mm audio jack Motorola C118 (E88) This is a typical pin-out of a 2.5 mm audio jack: L (Left Signal) Tip 1 Green R (Right Signal) Ring 2 Red GND (Ground) Sleeve 3 Bare Copper You need to soldier the 2.5mm audio jack to the USB Serial To RS232 TTL Chip, whereas TxD is at the tip of the plug RxD is at the middle contact GND is the outer contact  Software Connect the phone to your PC and check if it is being recognized. dmesg | grep tty user@user:~$ dmesg | grep tty [    0.000000] console [tty0] enabled [ 6522.143379] usb 3-2: pl2303 converter now attached to ttyUSB0 To make sure everything is working, install cu and c

Scid vs PC installation guide - Ubuntu (Mint, Debian etc.)

Scid vs PC Scid vs PC is definitely the best and most comprehensive chess software for Linux.  Unfortunately I struggled quite a bit to get it up and running. Before I start: You might prefer to watch the video. Otherwise keep on reading. Open a terminal and execute the following commands sudo apt-get install auto-apt build-essential sudo auto-apt update-local sudo auto-apt update sudo auto-apt updatedb Now make sure you got both tcl8.5-dev and tk8.5-dev installed sudo apt-get install tcl8.5-dev tcl8.5 sudo apt-get install tk8.5-dev tk8.5 Some users are reporting problems on Ubuntu 14.04. sudo apt-get install tcl8.6-dev tcl8.6 sudo apt-get install tk8.6-dev tk8.6 libgcj15-dev The 'x' refers to the current release: e.g. 4.9.tgz download scid vs pc: http://sourceforge.net/projects/scidvspc/files/source/scid_vs_pc-4.9.tgz/download tar -xzf scid_vs_pc-4.xx.tgz cd scid_vs_pc-4.x sudo auto-apt run ./configure sudo auto-apt run make sudo auto-apt run make install

Banana Pi: Temperature Sensor (DS18B20) - Tutorial

Requirements --> Banana Pi running Raspbian for Banana Pi --> Breadboard --> Jumper Wires --> DS18b20 --> 4.7K Ohm resistor --> Breakout cobbler   Hardware Setup Refer to the graphic for the correct wiring. Make sure the Banana Pi is switched off to prevent any possible damage. Software Setup Double check the wiring and boot the device. In order to be able to access the temperature data, we need to make some minor adjustments to the script.bin file , which is a binary configuration file used by Allwinner SOC. sudo apt-get install git git clone https://github.com/linux-sunxi/sunxi-tools cd sunxi-tools make #location of the script.bin file cd /boot/bananapi/ #get the fex file sudo /home/bananapi/sunxi-tools/bin2fex script.bin bananapi.fex #edit the fex file sudo nano bananapi.fex #add the following at the end, save (CTRL + O) and close [w1_para] gpio = 4 #.fex back to .bin sudo /home/bananapi/sunxi-tools/fex2bin bananapi.fex script.bin sud