Giter VIP home page Giter VIP logo

trec's Introduction

TREC: A threaded video player and recorder

TREC is a GUI application for video recording and playing. This application is especially interesting for new camera devices if they are supported by Video4Linux.

Gallery

Two example screenshots are displayed below. The left screenshot displays TREC capturing the integrated camera of a laptop. The MLPG video codec with a resolution of 320x180 pixels at 15 frames per second (FPS) is selected (Many options are possible normally). The right screenshot displays TREC capturing a recorded video of an additive manufacturing process, Directed Energy Deposition (DED), to be specific. The video is played back at 90+ FPS.

Light         Dark

Main Features / Comments

Major information:

  • 4 Threads; GUI, Display, Recording, Data acquisition for speed.
  • Multiple resolutions and frame rates through Video4Linux integration
  • Easy to expand for new devices i.e. Dinolite-edge etc.
  • Build with Python,Qt, OpenCV and Numpy
  • Live frame-rate and frame-rate capacity (%) based on thread capacity

Dependencies

Video4Linux device drivers are needed. To check run in terminal:

v4l2-ctl

If the package is not installed, install it with:

sudo apt install v4l-utils

After installation the visible devices can be checked with:

v4l2-ctl --list-devices

If no devices are visible, the application will not be able to capture any. In that case only recorded videos can be played in the application.

How to get it

Git has to be installed to clone:

sudo apt install git

Clone the repository to current working directory

git clone https://github.com/gijsvanhoutum/trec.git

We advise to install a new python virtual environment first with:

python3 -m venv venv

Activate environment

source venv/bin/activate

Install all necessary Python packages with:

pip install -r /trec/requirements.txt

How to run it

To run execute the following from the current working directory:

python3 /trec/trec/main.py

TODO

  • Make dynamic update of menu items possible in GUI. Currently, a newly created cannot be played back immediately. It requires a complete restart of the app.
  • Complete comments for all classes.
  • Currently Python Queues are used, which are thread-safe. All Mutex and locking is handled within the queue itself. A switch to QThreads is started (QMutex etc.) is implemented, but needs to be finished.

trec's People

Contributors

gijsvanhoutum avatar

Watchers

 avatar

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.