opencast 视频捕获代理 pyCA安装和功能实现
pyCA安装过程:
36 git clone https://github.com/opencast/pyCA.git
37 cd pyCA/
41 yum install python-pycurl python-dateutil python-configobj python-flask python-sqlalchemy
46 ./start.sh
1 2 3 4 5 6 7 8 9 10 11 | [root@localhost pyCA]# ./start.sh Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py" , line 162, in _run_module_as_main "__main__" , fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py" , line 72, in _run_code exec code in run_globals File "/root/pyCA/pyca/__main__.py" , line 14, in <module> from pyca import capture, config, schedule, ingest, ui, agentstate, utils File "pyca/capture.py" , line 19, in <module> import sdnotify ImportError: No module named sdnotify |
1 2 3 4 5 6 7 | [root@localhost pyCA]# pip install sdnotify Collecting sdnotify Downloading https: //files.pythonhosted.org/packages/ce/d8/9fdc36b2a912bf78106de4b3f0de3891ff8f369e7a6f80be842b8b0b6bd5/sdnotify-0.3.2.tar.gz Installing collected packages: sdnotify Running setup.py install for sdnotify ... done Successfully installed sdnotify-0.3.2 [root@localhost pyCA]# |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | [root@localhost pyCA]# ./start.sh [pyca.config:135:logger_init()] [INFO] Log level set to info [pyca.config:95:update_configuration()] [INFO] Configuration loaded from ./etc/pyca.conf Process Process-1: Traceback (most recent call last): File "/usr/lib64/python2.7/multiprocessing/process.py" , line 258, in _bootstrap self.run() File "/usr/lib64/python2.7/multiprocessing/process.py" , line 114, in run self._target(*self._args, **self._kwargs) File "pyca/schedule.py" , line 137, in run configure_service( 'scheduler' ) File "pyca/utils.py" , line 119, in configure_service get_service( 'org.opencastproject.' + service) File "pyca/utils.py" , line 75, in get_service response = http_request(url).decode( 'utf-8' ) File "pyca/utils.py" , line 58, in http_request config()[ 'server' ][ 'password' ])) TypeError: invalid arguments to setopt Process Process-2: Traceback (most recent call last): File "/usr/lib64/python2.7/multiprocessing/process.py" , line 258, in _bootstrap self.run() File "/usr/lib64/python2.7/multiprocessing/process.py" , line 114, in run self._target(*self._args, **self._kwargs) File "pyca/capture.py" , line 187, in run configure_service( 'capture.admin' ) File "pyca/utils.py" , line 119, in configure_service get_service( 'org.opencastproject.' + service) File "pyca/utils.py" , line 75, in get_service response = http_request(url).decode( 'utf-8' ) File "pyca/utils.py" , line 58, in http_request config()[ 'server' ][ 'password' ])) TypeError: invalid arguments to setopt Process Process-3: Traceback (most recent call last): File "/usr/lib64/python2.7/multiprocessing/process.py" , line 258, in _bootstrap self.run() File "/usr/lib64/python2.7/multiprocessing/process.py" , line 114, in run self._target(*self._args, **self._kwargs) File "pyca/ingest.py" , line 151, in run configure_service( 'ingest' ) File "pyca/utils.py" , line 119, in configure_service get_service( 'org.opencastproject.' + service) File "pyca/utils.py" , line 75, in get_service response = http_request(url).decode( 'utf-8' ) File "pyca/utils.py" , line 58, in http_request config()[ 'server' ][ 'password' ])) TypeError: invalid arguments to setopt Process Process-4: Traceback (most recent call last): File "/usr/lib64/python2.7/multiprocessing/process.py" , line 258, in _bootstrap self.run() File "/usr/lib64/python2.7/multiprocessing/process.py" , line 114, in run self._target(*self._args, **self._kwargs) File "pyca/agentstate.py" , line 43, in run control_loop() File "pyca/agentstate.py" , line 30, in control_loop update_agent_state() File "pyca/utils.py" , line 220, in update_agent_state configure_service( 'capture.admin' ) File "pyca/utils.py" , line 119, in configure_service get_service( 'org.opencastproject.' + service) File "pyca/utils.py" , line 75, in get_service response = http_request(url).decode( 'utf-8' ) File "pyca/utils.py" , line 58, in http_request config()[ 'server' ][ 'password' ])) TypeError: invalid arguments to setopt [root@localhost pyCA]# |
正在解决,持续更新。
12-03:
再论坛跟pyCA技术人员反馈后,对方更新了github上的内容。
(https://github.com/opencast/pyCA)
上面介绍说实现录制还需要借助 ffmpeg。web界面需安装 Gunicom 。(https://gunicorn.org/)
再次参照上面的介绍安装。顺利完成pyCA启动。
接下来就是配置使它能够和我们自己的服务器配合工作了。
。
-----------------------------------------------------------------
能力不高,水平有限,如有不妥还请指出,谢谢!
本文来自博客园,作者:Laijx,转载请注明原文链接:https://www.cnblogs.com/laijx/p/10055568.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 一文读懂知识蒸馏
· 终于写完轮子一部分:tcp代理 了,记录一下