Just playing around with TileDB and OpenCV with the following goals
- Understand how to use TileDB
- Figure out different ways to save images and videos in TileDB
- Understand video concepts - formats, codecs, compression etc.
- Perform Read/Write operations on images & videos using TileDB and OpenCV video-writer and compare their performance
Setup Python environment
python3 -m venv venv
source ./venv/bin/activate
pip install -r ./requirements.txt
Export environment variables
export OUTPUT_VIDEO_PATH=./output.mp4
export TILE_DB_PATH=./tiledb/video/video.array
export SAMPLE_VIDEO_PATH=./sample-5m43s.mp4
Execute from the root of the repository
python3 ./opencv/read_video.py
python3 ./tiledb/video/read_video.py
python3 ./opencv/save_video.py
python3 ./tiledb/video/save_video.py
python3 ./opencv/get_one_frame.py
python3 ./tiledb/video/get_one_frame.py