Coder Social home page Coder Social logo

camorah's Introduction

Camorah

Camorah is a python tool aimed to start Orah 4i 360 camera. It's not the napolitan mafia...

SETUP

You will need a POE module, a dhcp server and a rtmp server to make the setup work.
The camera is powered through POE (take care which plug is powered on it).
The camera need an ip adress through dhcp.
The camera sends its stream in RTMP.
RTMP protocol need an intermediate server for publishing video/audio stream (you can't stream from camera to viewer directly with rtmp).

For dhcp server you can set your own or use your ISP box. There is no limitation.

For rtmp server we advise to use nginx with rtmp module:
download nginx source : http://nginx.org/en/download.html
download nginx rtmp module sources : git clone https://github.com/arut/nginx-rtmp-module.git
Go in nginx directory and compile it with rtmp support:
./configure --add-module=/path/to/nginx-rtmp-module
make
make install
We provide a default nginx.conf file for easy setup but there is no security implemented (anyone can publish and listen on your server).
We provide a stat.xsl file for displaying nginx streaming stat through its http server. Put it in the html root dir of the http server.

Running camorah tool

You will need the following python libraries as dependencies :
autobahn, protobuf, zeroconf
you can install them with pip.

To start the camorah tool:
python3 camorah.py
or
python3 camorah.py -s 192.168.0.2 -p 2048 -a mystream -d ./rec/

When using no option, we will consider that the rtmp server is on the same computer as camorah and at port 1935 with rtmp app named "inputs".
Here is the help page if you want to define another rtmp server or dump the stream:

Camorah

Tool for starting 4i 360 camera from orah

-h | --help Prints this help screen.
-s | --server Set ip address of rtmp server. (default : ip of this device)
-p | --port Set port of rtmp server. (default : 1935)
-a | --app Set rtmp application name. (default : inputs)
-d | --dump Dump streams in specified dir.

Example:
python3 camorah.py
python3 camorah.py -s 192.168.0.2 -p 2048 -a mystream -d ./rec/

The tool keep running until you kill it as it's continusouly running waiting to detect camera through zeroconf and then start them.
Camorah also retrieve a ptv file named "factoryPresetsProject.ptv" followed by the date that you can use as calibration in stitchem.

Practical SETUP

Different setup are possible and have been used (don't forget the POE):

Debug or Livestitch at home : Plug your cam in your ISP box, setup a rtmp server and stitchEm Vahana on your PC.
Livestitch mobile : Plug your cam in your PC, setup a dhcp server, a rmtp server and stitchEm Vahana on your PC.
Record mobile : Plug your cam in a raspberry, setup a dhcp server. a rtmp server on raspberry and dump the
stream on an usb key plug in the raspberry. Stitch the dumps in stichEm Studio.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.