Skip to content

moi15moi/VideoTimestamps

Repository files navigation

VideoTimestamps

VideoTimestamps - CI Build Status VideoTimestamps - Version VideoTimestamps - Python Version VideoTimestamps - Coverage VideoTimestamps - mypy VideoTimestamps - Ruff

This tool allows to recover the timestamps of each frame in a video in milliseconds. It also help to convert a frame to a time in milliseconds and vice-versa.

Installation

pip install VideoTimestamps

How to use it?

See the example file.

How to build the project from scratch?

Unix

  1. Run: ./build_dependencies.sh
  2. Run: export PKG_CONFIG_PATH="$(pwd)/build_dependencies/usr/local/lib/pkgconfig"
  3. Run python -m build to create a wheel. To perform an editable install, first run pip install meson meson-python and then pip install --no-build-isolation --editable .

Windows

  1. In MSYS2 (any environment), run ./build_dependencies.sh
  2. In Windows CMD, run C:\msys64\usr\bin\env.exe MSYSTEM=CLANG64 MSYS2_PATH_TYPE=inherit /usr/bin/bash -l (replace the MSYSTEM value with the one you used in the first step)
  3. Run export PKG_CONFIG_PATH="$(cygpath -w "$(pwd)/build_dependencies/usr/local/lib/pkgconfig")"
  4. Repeat step 3 from the Unix section. Verify that python refers to your Windows installation, not the MSYS2 one, by running which python. If it points to the MSYS2 Python, use the absolute path to your Windows Python installation instead.

About

Recover the timestamps of each frame in a video + conversion.

Topics

Resources

License

Stars

Watchers

Forks