debian Wheezy 上的 Youtube 和 MP3 提取

debian Wheezy 上的 Youtube 和 MP3 提取

有没有 youtube-dl 的替代品?我只是想获取 Youtube URL,提取它,将其转换为 MP3,下载并播放。我想使用,youtube-dl但它在 debian Wheezy 下不能正常工作。我想在网络浏览器中执行此操作。例如,elinksw3m控制台 Web 浏览器。

答案1

不是答案,而是扩展评论。

youtube-dl 有很多依赖项:

$ sudo apt install youtube-dl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  ffmpeg libavdevice57 libdc1394-22 libdouble-conversion1 libopenal-data libopenal1 libqt5core5a libqt5dbus5 libqt5gui5
  libqt5network5 libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5svg5 libqt5webchannel5
  libqt5webkit5 libqt5widgets5 libsdl2-2.0-0 libsndio6.1 libuchardet0 libxcb-xinerama0 mpv phantomjs python3-pyxattr
  qt5-gtk-platformtheme qttranslations5-l10n rtmpdump
Suggested packages:
  ffmpeg-doc libportaudio2 qt5-image-formats-plugins qtwayland5 qt5-qmltooling-plugins sndiod python3-pyxattr-dbg
  python-pyxattr-doc
The following NEW packages will be installed:
  ffmpeg libavdevice57 libdc1394-22 libdouble-conversion1 libopenal-data libopenal1 libqt5core5a libqt5dbus5 libqt5gui5
  libqt5network5 libqt5positioning5 libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5svg5 libqt5webchannel5
  libqt5webkit5 libqt5widgets5 libsdl2-2.0-0 libsndio6.1 libuchardet0 libxcb-xinerama0 mpv phantomjs python3-pyxattr
  qt5-gtk-platformtheme qttranslations5-l10n rtmpdump youtube-dl
0 upgraded, 30 newly installed, 0 to remove and 11 not upgraded.
Need to get 28.8 MB of archives.
After this operation, 114 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

需要为该小设备的架构编译相当多的库。

答案2

如果您有 VLC,则可以使用 cvlc(可以进行改进):

cvlc -vvv https://www.youtube.com/watch?v=AAAAA --sout '#es{access_audio=file,mux_audio=ts,url_audio=audio-%c.%m}'

输出文件将分为两部分,音频是stream-0-mp4a。

答案3

您可以在外部录制音频,将耳机输出到线路输入,另存为 .wav,然后从那里转换为 .mp3。

相关内容