mediapy
mediapy copied to clipboard
This Python library makes it easy to display images and videos in a notebook.
Hi, would like to ask if mediapy can load, visualize or write a video with audio in a colab notebook. I checked the functions in mediapy, but cannot find any...
Fix #9 . Adding `np.clip(a, 0.0, 1.0)` seems unnecessary because the color map function handles this already.
Since to_rgb simply subtracts vmin from array, low pixels can underflow to high values, producing unexpected results. I think it should be simple to fix: upcast array to int32 before...
Created a mediapy_examples.py file that mirrors the mediapy_examples.ipynb notebook (using jupytext). Running lint tools on it suggested several small improvements. Got the package to also work on sys.platform == 'win32';...
Noticed this when using ffmpeg installed from apt, when vcodec and acodec are copy, the frame= XXX line does not appear in the output, causing api like `read_video` to fail....
Issue tested with version: https://github.com/google/mediapy/pull/41 a) If I call `media.show_images()` once passing it a dict of 32 images, each with shape (512, 512, 3), it stubbornly displays a row matrix...
Hello, sometimes we have video bytes rather than a file or URL. Will be great to have mediapy support reading video bytes directly.