推荐学习书目
› 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 · Apr 6, 2017 · 7376 views
    This topic created in 3473 days ago, the information mentioned may be changed or developed.
    在代码里加上 headers 后访问正常,请问有什么办法能用 FFmpeg 正常解析?
    8 replies  •  2017-04-07 09:08:21 +08:00
    lshero
        1
    lshero  
       Apr 6, 2017
    写个代理帮着加 header 呗
    chendajun
        2
    chendajun  
    OP
       Apr 6, 2017
    @lshero 代理是什么意思?
    chendajun
        3
    chendajun  
    OP
       Apr 6, 2017
    @lshero FFmpeg 命令里不能直接加 header 是吧?
    lshero
        4
    lshero  
       Apr 6, 2017
    doyel
        5
    doyel  
       Apr 6, 2017 via iPhone
    m3u8 的就算连上也很不稳定……
    yttyhf2006
        6
    yttyhf2006  
       Apr 6, 2017 via Android
    @chendajun Nginx
    aleen42
        7
    aleen42  
       Apr 6, 2017
    不才与劣者认为你可以直接在 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
       Apr 7, 2017
    @lshero
    @doyel
    @yttyhf2006
    @aleen42
    谢谢各位热心帮助
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5446 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 140ms · UTC 07:56 · PVG 15:56 · LAX 00:56 · JFK 03:56
    ♥ Do have faith in what you're doing.