Create videos from numpy arrays in a jupyter notebook
Project description
notebook-video-writer
Create videos from numpy arrays in a jupyter notebook
Original source from Alexander Mordvintsev
Install
pip install notebook-video-writer
Dependencies
- Must have ffmpeg installed
Usage
import numpy as np
# optionally wrap with tqdm for progress bar
from tqdm import tqdm
from notebook_video_writer import VideoWriter
with VideoWriter(fps=40) as vw:
for i in tqdm(range(100)):
frame = np.random.rand(256,256,3)
vw.add(render)
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
Built Distribution
File details
Details for the file notebook-video-writer-0.0.1.tar.gz
.
File metadata
- Download URL: notebook-video-writer-0.0.1.tar.gz
- Upload date:
- Size: 3.0 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.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfe573c6929eefed80266222615499bd199f828f5dc0b48ac71f78a06504e869 |
|
MD5 | 363bef6ec8d329effa5cb93b027b92df |
|
BLAKE2b-256 | e6e1f9cbaf5dfbff48b3541982cd8911b683aa15e321c7424e66dd97522c763c |
File details
Details for the file notebook_video_writer-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: notebook_video_writer-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- 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.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9c258ad5550b33649c2de8554a06719281424dc72dc71b0e1fffb18bed2242 |
|
MD5 | 79080bfaa4be12793e3bdd4f1aafb163 |
|
BLAKE2b-256 | a5fa0ac32579289f26cdfa5a5026d6c30e13e616bb28c0c903e04f3034106eda |