All Projects → ottomatic-io → pycine

ottomatic-io / pycine

Licence: LGPL-3.0 license
Reading Vision Research .cine files with python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pycine

trembita
Model complex data transformation pipelines easily
Stars: ✭ 44 (+91.3%)
Mutual labels:  phantom
www-react-postgres
A complete template for 2022 focused on around React, Postgres and various web3 integrations. You can use the template to make a website, a web application, a hybrid decentralized web application, or even a DAO.
Stars: ✭ 36 (+56.52%)
Mutual labels:  phantom
Phantom-Cyber
Apps for Splunk Phantom security automation | Cisco Meraki | Ansible Tower | F5 | A10
Stars: ✭ 24 (+4.35%)
Mutual labels:  phantom
micro-note
📝 A micro note application
Stars: ✭ 74 (+221.74%)
Mutual labels:  phantom
PhantomShodan
Shodan.io connector for Phantom Cyber Security Orchestration
Stars: ✭ 19 (-17.39%)
Mutual labels:  phantom
PHANTOM
An efficient implementation of the PHANTOM (GhostDAG) block-DAG protocol, complete with a block-DAG network simulation framework and other niceties.
Stars: ✭ 27 (+17.39%)
Mutual labels:  phantom

pycine

PyPI version GitHub license Code style: black Codacy Badge

Reading Vision Research .cine files with python

Installation

Release Version

With pip

If you have Python 3 installed you can just use pip:

pip3 install -U pycine

Development version

pip install git+https://github.com/ottomatic-io/pycine.git

Example usage

Changing the playback and timecode framerates

pfs_meta set --playback-fps 60/1.001 --timecode_fps 60/1.001 A001C001_190302_16001.cine

You can also set metadata for multiple clips at once:

pfs_meta set --playback-fps 24/1.001 --timecode_fps 24/1.001 *.cine

Help

Every command has its own help output. Just append --help:

$ pfs_meta --help
Usage: pfs_meta [OPTIONS] COMMAND [ARGS]...

  This tool allows .cine file metadata manipulation. Use COMMAND --help for
  more info.

Options:
  --help  Show this message and exit.

Commands:
  copy  Copy metadata from a source clip
  set   Set metadata
  show  Show metadata
$ pfs_meta set --help
Usage: pfs_meta set [OPTIONS] [DESTINATIONS]...

  Set metadata

Options:
  --temp FLOAT          Set color temperature.
  --cc FLOAT            Set color correction.
  --record-fps INTEGER  Set record FPS.
  --playback-fps TEXT   Set playback FPS. Use 60 or 60/1.001 but not 59.94
  --timecode-fps TEXT   Set timecode FPS. Use 60 or 60/1.001 but not 59.94
  --tone TEXT           Set tone curve in the form of "[LABEL] x1 y1 x2 y2".
                        You can set up to 32 xy points.
  --help                Show this message and exit.
$ pfs_raw --help
Usage: pfs_raw [OPTIONS] CINE_FILE [OUT_PATH]

Options:
  --file-format [.png|.jpg|.tif]
  --start-frame INTEGER
  --count INTEGER
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Jupyter notebook

Check out an example on how to use the library from a jupyter notebook: notebooks/Display frames.ipynb

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].