天天看点

You-Get实现从Web下载媒体内容

用you-get 下载爱奇艺的时候 出现错误

[aac_adtstoasc @ 0000027f0518c8c0] Codec 'eac3' (86056) is not supported by the bitstream filter 'aac_adtstoasc'. Supported codecs are: aac (86018)
Error initializing bitstream filter: aac_adtstoasc
           

You-Get官网:https://you-get.org

You-Get github官网中文说明https://github.com/soimort/you-get/wiki/%E4%B8%AD%E6%96%87%E8%AF%B4%E6%98%8E

You-Get github官网:https://github.com/soimort/you-get

来自官网的介绍:You-Get是一个很小的命令行实用程序,可从Web下载媒体内容(视频,音频,图像)。

  • 下载流行网站之音视频,例如YouTube, Youku, Niconico,以及更多. (查看完整支持列表:https://github.com/soimort/you-get#supported-sites)
  • 于您心仪的媒体播放器中观看在线视频,脱离浏览器与广告
  • 下载您喜欢的网页上的图片
  • 下载任何非HTML内容,例如二进制文件

准备工作:1、打开cmd,输入pip install you-get

2、在https://github.com/BtbN/FFmpeg-Builds/tags下载ffmpeg或者https://www.lanzoux.com/b01hlwsdi密码:W4mT下载ffmpeg.rar(解压密码:52pojie),然后添加环境变量

3、这里把ffmpeg放在D盘,然后此电脑右键属性->高级系统设置->最下面环境变量->用户变量->把ffmpeg下的bin目录添加到PATH变量名里,这里我的是D:\ffmpeg\bin

4、(可选)从https://www.lanzoux.com/b01hlwsdi密码:W4mT下载ffmpeg.py.rar(解压密码:52pojie),解压后后替换Python安装目录\Lib\site-packages\you_get\processor下的ffmpeg.py。这一步是为了解决爱奇艺下载出现

Codec 'eac3' (86056) is not supported by the bitstream filter 'aac_adtstoasc'. Supported codecs are: aac (86018)

Error initializing bitstream filter: aac_adtstoasc

的问题,如果出现这个情况,你可以换个网站下载,这样第四步可以省略,如果一定要使用爱奇艺下载,这步必不可少。

转载于 :https://www.52pojie.cn/forum.php?mod=viewthread&tid=1276632