Skip to main content

Synchronized multi-video recorder and player, controllable via OSC

Project description

pyOscVideo

pyOscVideo is a multi-video recorder and player controllable via Open Sound Control (OSC).

The main purpose is to record video from multiple cameras synchronized with another source, for instance, another software recording audio. Since recording multiple videos in high resolution is a demanding task for the hardware, other tasks (audio recording, sensor data recording, measurements, dsp, etc.) can be performed on a separate computer and synchronized via OSC over the network.

pyOscVideo currently does not support Windows, recording of multiple high definition videos on GNU/Linux might depend on your build of OpenCV.

pyOscVideo is developed within the research project "Social interaction through sound feedback – Sentire"

Install notes

You should be able to install directly from PyPI:

pip install pyoscvideo

Please note that you will need to install VLC for the player functionality.

Usage

After installing you can run it by typing:

pyoscvideo and pyoscvideoplayer

You can control both the recorder and the player via OSC or using the GUI. To start the player with GUI control run as:

$ pyoscvideoplayer --no-osc

Controlling the recorder

OSC command argument description reply (on success)
/oscVideo/prepareRecording string, the recording path Prepares all the internal buffers for writing to filesystem but won't start recording. Sends a reply when finished preparing. /oscVideo/status Prepared Recording
/oscVideo/record boolean Starts/stops the recording. Sends a reply about the success of starting the recording /oscVideo/status Started Recording

Controlling the player

OSC command argument description
/oscVideo/loadFolder string, video folder path Loads all videos inside the folder path
/oscVideo/loadFile string, video file path Loads a video
/oscVideo/setVideoPlay Starts playing the videos
/oscVideo/setVideoPause Pauses the player
/oscVideo/setVideoPosition time in milliseconds Sets playback position
/oscVideo/clean Unloads / removes all loaded videos from the player

Development

  • Check coding style (PEP-8) and type hints

  • First need to install the tools (in case you don't have): pip install pycodestyle mypy

  • then simply run: ./run_tests.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyoscvideo-0.2.0.tar.gz (52.9 kB view details)

Uploaded Source

File details

Details for the file pyoscvideo-0.2.0.tar.gz.

File metadata

  • Download URL: pyoscvideo-0.2.0.tar.gz
  • Upload date:
  • Size: 52.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for pyoscvideo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e1879ac174c23d362d50c7c0815e1c2b2b021898079f6d45bab3cf956e33ef54
MD5 49a5f7d242aa62eb311106fda2deb1c0
BLAKE2b-256 ee1abf62364bc1dce02959f7bc0a39bf420e9e55f04232d4c16b734e4020d95e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page