V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mingyun
V2EX  ›  Python

如何下载知乎 m3u8 视频

  •  
  •   mingyun · 2018-01-07 22:35:33 +08:00 · 3161 次点击
    这是一个创建于 2294 天前的主题,其中的信息可能已经有所发展或是发生改变。

    视频地址 https://v.vzuu.com/video/930514486520012800 抓包看到 https://lens.zhihu.com/api/videos/930514486520012800 这个请求 ,里面有 m3u8 地址,但是用 ffmpeg 下载失败了

    $ ffmpeg  -i 'https://vdn.vzuu.com/Act-ss-m3u8-hd/74d0edb67b0c44dca559375da1e4df74/6005a040-ed51-11e7-9313-0242ac112a03None.m3u8?auth_key=1515338325-0-0-89d1ba089ceda0022fff9f4448af9786&expiration=1515338325&disable_local_cache=0' 'jump.mp4'
    [https @ 0000000000099280] HTTP error 403 Forbidden
    https://vdn.vzuu.com/Act-ss-m3u8-hd/74d0edb67b0c44dca559375da1e4df74/6005a040-ed51-11e7-9313-0242ac112a03None.m3u8?auth_key=1515338325-0-0-89d1ba089ceda0022fff9f4448af9786&expiration=1515338325&disable_local_cache=0: Server returned 403 For
    bidden (access denied)
    
    2 条回复    2018-11-23 23:57:23 +08:00
    mingyun
        2
    mingyun  
    OP
       2018-11-23 23:57:23 +08:00
    ffmpeg -i "https://xxx.m3u8" -vcodec copy -acodec copy -absf aac_adtstoasc baihespxyz.mp4
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2775 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:47 · PVG 17:47 · LAX 02:47 · JFK 05:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.