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
chendajun
V2EX  ›  Python

使用 FFmpeg 命令解析 http://xxxx.m3u8 报 403 Forbidden

  •  
  •   chendajun · 2017-04-06 17:56:50 +08:00 · 6145 次点击
    这是一个创建于 2578 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在代码里加上 headers 后访问正常,请问有什么办法能用 FFmpeg 正常解析?
    8 条回复    2017-04-07 09:08:21 +08:00
    lshero
        1
    lshero  
       2017-04-06 18:01:29 +08:00
    写个代理帮着加 header 呗
    chendajun
        2
    chendajun  
    OP
       2017-04-06 18:40:53 +08:00
    @lshero 代理是什么意思?
    chendajun
        3
    chendajun  
    OP
       2017-04-06 18:41:29 +08:00
    @lshero FFmpeg 命令里不能直接加 header 是吧?
    lshero
        4
    lshero  
       2017-04-06 19:37:52 +08:00
    doyel
        5
    doyel  
       2017-04-06 19:45:45 +08:00 via iPhone
    m3u8 的就算连上也很不稳定……
    yttyhf2006
        6
    yttyhf2006  
       2017-04-06 19:52:50 +08:00 via Android
    @chendajun Nginx
    aleen42
        7
    aleen42  
       2017-04-06 21:23:38 +08:00
    不才与劣者认为你可以直接在 ffmpeg 加上 header

    `ffmpeg -v 9 -loglevel 99 -headers "X-Forwarded-For: 160.53.186.194" -i http://pebbles112-lh.akamaihd.net/i/daserste_1@97481/index_900_av-p.m3u8?sd=6&b=0-1000&rebase=on`
    chendajun
        8
    chendajun  
    OP
       2017-04-07 09:08:21 +08:00
    @lshero
    @doyel
    @yttyhf2006
    @aleen42
    谢谢各位热心帮助
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5635 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:39 · PVG 14:39 · LAX 23:39 · JFK 02:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.