如何从youtube而不是video电影下载音乐?

我想知道是否有任何程序可以从youtube下载音乐,而不是video….就像Windows中的DVDvideosoft …

一个名为youtube-dl的shell脚本可以一步完成。
首先,它取决于ffmpeg

sudo apt-get install ffmpeg

 wget https://github.com/rg3/youtube-dl/raw/2012.02.27/youtube-dl chmod +x youtube-dl ./youtube-dl -t --extract-audio --audio-format mp3 YOUTUBE_URL_HERE 

有关从youtube中选择下载质量的详细信息,请参见手册页。

  -f FMT, --format=FMT Specify the video format (quality) in which to download the video. For youtube.com, in particular, the meaning of the format codes is given as: WebM video at 480p: 43 WebM video at 720p: 45 H264 video in MP4 container at 480p: 18 H264 video in MP4 container at 720p: 22 H264 video in MP4 container at 1080p: 37 H264 video in FLV container at 360p: 34 H264 video in FLV container at 480p: 35 H263 video at 240p: 5 3GP video: 17 Note that not all videos are available in all formats and that other sites supported by youtube-dl may have different conventions for their video formats. By default, youtube-dl will download the best available format; if you want to download the worst format to save bandwidth and time, use "-f" worst. 

所以添加-f 18以获得480p的h264 mp4

您也可以使用jDownloader。 只需复制youtube-url,jDownloader就会认出它,并且可以让你下载所有可能的格式。 只选择mp3,它只会给你音乐。

https://launchpad.net/~jd-team/+archive/jdownloader

我有一个安装alsaloop的VM。
然后,我可以使用“普通”录制工具将音频输出作为来自CLI或其他方式的音频输入。

您还可以使用此方法在任何站点上的任何合法购买的音频/video上记录所述VM中的音频和video。 它完全与站点无关,并不关心承载格式是什么。

使用可以使用下载助手一个firefox插件。 通过这个你可以直接下载mp4,3gp或高质量格式的video,并且易于使用。

你甚至不需要使用程序。 您可以使用www.listentoyoutube.com这样的网站,这样做也会做同样的事情。

您可以使用加载项直接从浏览器执行此操作。

在Google Chrome中,只需转到Chrome商店(打开一个新的空白标签,然后点击屏幕底部的灰色应用程序按钮)

在Chrome商店内,在搜索框中输入Youtube MP3

使用第二个链接(来自YouTube本身)

YouTube下载器:MP3 /高清video

看截图,你在YouTube上得到一个额外的按钮,你只需点击下载为MP3。

你可以在Firefox中做同样的事情。 只需转到工具..附加组件…搜索“youtube mp3”并选择(大约有15种选择可以做同样的事情)。

更好的是使用Ubuntu音乐商店(在Rhythmbox和Banshee内)购买你喜欢的曲目来帮助支持Ubuntu。

如果您想要许多文件的批处理作业,那么youtube-dl会更好。 虽然我没有试一试。

但是这个Firefox插件很适合偶尔下载。 点击并查看截图。 Firefox Easy Youtube下载器

有一个Firefox的附加组件,它为Youtube页面添加了一个简洁的按钮,并提供了一些选择:

Youtubevideo和音频下载器

要仅获取音频,您需要从Ubuntu软件中心安装软件包ffmpeg ,然后进入附加选项并将路径设置为ffmpeg,如下所示:

 usr/bin/ffmpeg 

然后它应该没有任何问题。

在相同的附加选项页面中,您可以设置下载目录以及附加组件如何命名文件。

您可以从软件中心安装Youtube to MP3 。 我用它并且很棒,查看评论也是如此。

https://apps.ubuntu.com/cat/applications/saucy/youtube-to-mp3/

易于使用的软件,可将YouTube和Vimeovideo下载为MP3。

在此处输入图像描述

youtube-dl可以轻松安装:

 sudo apt-get install youtube-dl ffmpeg 

那简单地说:

 ./youtube-dl -t --extract-audio --audio-format mp3 YOUTUBE_URL_HERE 

如duffydack所示