Skip to content

pagekey/pkvid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PKVid

This is a Python package intended to help with automation of video editing.

See the docs site at docs.pkvid.pagekey.io.

Getting Started

  1. Build the Docker image. It will take a while. Final image will be huge, ~10-15 GB.
docker-compose build
  1. Install the helper script.
sudo ./scripts/install.sh
  1. Run pkvid in a directory with pkvid.yaml.
cd your-project
pkvid

Developer Instructions

Run the test suite:

docker-compose run dev pytest

Run integration test:

docker-compose run dev pkvid test/integration/pkvid.yaml

Get a shell:

docker-compose run dev bash

Usage without Docker (Not Recommended)

These are old guides - leaving them here in case they're useful at some point.

Installation Guide

This package is not meant to be installed in a regular Python environment. Instead, you must install it from the Python that is embedded in Blender.

  1. Find the path to Blender's embedded Python.
cd $(dirname $(which blender))
ls

In my case, I was able to find it at the following path: /opt/blender/blender-3.1.2-linux-x64/3.1/python/bin/python3.10

Let's save this path for use in later steps.

# replace with the path you found:
export BLENDER_PYTHON=/opt/blender/blender-3.1.2-linux-x64/3.1/python/bin/python3.10
  1. Ensure that pip is installed.
$BLENDER_PYTHON -m ensurepip
$BLENDER_PYTHON -m pip install --upgrade pip
  1. Install pkvid from pypi.
$BLENDER_PYTHON -m pip install pkvid

Development Install

Same process, but for the last step, run this instead:

$BLENDER_PYTHON -m pip install -e .

Example Run Command

blender -b -P pkvid/__main__.py test/sample_config.json 

Refernces

Building Blender from scratch: