V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
182247236
V2EX  ›  Python

使用 Python -vlc 做了一个播放器该怎么获取音频来制作音量柱

  •  
  •   182247236 · Jul 19, 2018 · 3294 views
    This topic created in 2850 days ago, the information mentioned may be changed or developed.
    最近在使用 wxpython+python-vlc 来做一个直播轮询的软件,中间遇到个问题,有些直播是纯音频内容,那么直播是否正常就需要有音量柱来体现,目前一直卡在这个地方,segmentfault 上提问了,没人解答,想看看 V2EX 又没有大神能指点下。因为 wxpython 比较多,只贴下 vlc 播放的简单代码。
    import vlc
    import time
    player = vlc.MediaPlayer('you-video-url')
    player.play()
    time.sleep(20)
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1571 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:44 · PVG 00:44 · LAX 09:44 · JFK 12:44
    ♥ Do have faith in what you're doing.