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

[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

  

[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]# 

  

[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启动。

接下来就是配置使它能够和我们自己的服务器配合工作了。

posted on 2018-12-02 21:48  Laijx  阅读(550)  评论(0编辑  收藏  举报

导航