ffmpeg stream to numpy arrays
# ffmpeg must be installed!
$pip install ffmpeg-stream-to-numpy
from ffmpeg_stream_to_numpy import NumpyVideo
import cv2
vi = NumpyVideo(
videofile=r"C:\Users\Gamer\Videos\dfbs4.mp4",
ffmpeg_param=(
"-re", # real speed
"-hwaccel",
"cuda",
"-c:v",
"h264_cuvid",
),
)
for ini, i in enumerate(vi.play_video_ffmpeg()):
# do something here
cv2.imshow("test", i)
if cv2.waitKey(1) & 0xFF == ord("q"):
break
if ini == 100:
vi.playvideo = False # stops the stream
cv2.destroyAllWindows()
Metadata
Release files for ffmpeg-stream-to-numpy 0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ffmpeg_stream_to_numpy-0.10.tar.gz | 3.8 kB | Without provenance | Details for ffmpeg_stream_to_numpy-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ffmpeg_stream_to_numpy-0.10-py3-none-any.whl | Python 3 | none | any | Details for ffmpeg_stream_to_numpy-0.10-py3-none-any.whl |
Total release size: 9.2 kB
Release files / ffmpeg_stream_to_numpy-0.10.tar.gz
| Download URL | ffmpeg_stream_to_numpy-0.10.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32cc5b38aa65cd9ecb8d2e206457ad09e1090fc0602b6b35126e8354b7dc94b8
|
|
BLAKE2b-256 checksum How to use checksums |
7c55b9e928bfacc332685249869021beb072c90bf003e05a04885ef9fec0cf9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / ffmpeg_stream_to_numpy-0.10-py3-none-any.whl
| Download URL | ffmpeg_stream_to_numpy-0.10-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
591801e796c8911ad2d8ae7c596bff8c0e3b830eab39924a366d61308ef5e38e
|
|
BLAKE2b-256 checksum How to use checksums |
dcb82ca7957d7f8aaa600c5488e390e1bff8cb9543de3ca96b68ec506423f7c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for ffmpeg-stream-to-numpy 0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.