Skip to main content

Video Frameserver for Numpy

Project description

Vidsrc is a Python library to read frames from video files as numpy arrays via the DirectShow IMediaDet interface.

Author:

Christoph Gohlke

Organization:

Laboratory for Fluorescence Dynamics. University of California, Irvine

License:

BSD 3-Clause

Version:

2020.1.1

Requirements

  • CPython >= 3.6

  • Numpy 1.14

  • Microsoft Visual Studio (build)

  • DirectX 9.0c SDK (build)

  • DirectShow BaseClasses include files (build)

  • DirectShow STRMBASE.lib (build)

Revisions

2020.1.1

Remove support for Python 2.7 and 3.5. Update copyright.

Notes

The DirectShow IMediaDet interface is deprecated and may be removed from future releases of Windows (https://docs.microsoft.com/en-us/windows/desktop/directshow/imediadet).

Example

>>> from vidsrc import VideoSource
>>> video = VideoSource('test.avi', grayscale=False)
>>> len(video)  # number of frames in video
48
>>> video.duration  # length in s
1.6016
>>> video.framerate  # frames per second
29.970089850329373
>>> video.shape  # frames, height, width, color channels
(48, 64, 64, 3)
>>> frame = video[0]  # access first frame
>>> frame = video[-1]  # access last frame
>>> for frame in video:
...     pass  # do_something_with(frame)

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

vidsrc-2020.1.1.tar.gz (146.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vidsrc-2020.1.1-pp37-pypy37_pp73-win_amd64.whl (13.9 kB view details)

Uploaded PyPyWindows x86-64

vidsrc-2020.1.1-cp38-cp38-win_amd64.whl (14.0 kB view details)

Uploaded CPython 3.8Windows x86-64

vidsrc-2020.1.1-cp38-cp38-win32.whl (13.0 kB view details)

Uploaded CPython 3.8Windows x86

vidsrc-2020.1.1-cp37-cp37m-win_amd64.whl (14.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

vidsrc-2020.1.1-cp37-cp37m-win32.whl (12.9 kB view details)

Uploaded CPython 3.7mWindows x86

vidsrc-2020.1.1-cp36-cp36m-win_amd64.whl (13.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

vidsrc-2020.1.1-cp36-cp36m-win32.whl (12.8 kB view details)

Uploaded CPython 3.6mWindows x86

File details

Details for the file vidsrc-2020.1.1.tar.gz.

File metadata

  • Download URL: vidsrc-2020.1.1.tar.gz
  • Upload date:
  • Size: 146.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1.tar.gz
Algorithm Hash digest
SHA256 b414d66d64ea4c4c5f1888ace522e0d567e5d3318a0e83c99f8b46690e0853c1
MD5 cb4e71e2f8d14ce490bdb8c3701dbcc6
BLAKE2b-256 568638bb6c7e560fff24b6c8a3b18a5dcaa81ac4d2f089d432315ad012d36886

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-pp37-pypy37_pp73-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-pp37-pypy37_pp73-win_amd64.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: PyPy, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.10

File hashes

Hashes for vidsrc-2020.1.1-pp37-pypy37_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 ba44017d91afd2eca9cb5fc88055093a6b2a00bcfcba169eb4f6a8cba02ba1ff
MD5 1f37dc3a21c7852888be0d7ef363ddba
BLAKE2b-256 93c087d0029b220310b600448f398b40affb54e30940eb0bff3c86b57521594d

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d93ed961cc292b883c473bc1632262ebf3f9ad6d4ab61602dd0eab01cdf35422
MD5 f8582aec43a544e0fbad920c43e333f0
BLAKE2b-256 93d661dc0e2edc5eed964eae0521bdbe4d366d0aa307aa73aad840b2ea8152ca

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-cp38-cp38-win32.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-cp38-cp38-win32.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 db38e28e334aa9bb282304d0cfdccf1d66d2eda13f8c5f80e0debf487dc15a64
MD5 4aea63314d4fc65ed8b6f485b1769c11
BLAKE2b-256 7246b55647efaad93b75061989236c62a43de8b6c9b4722dc65ce60d0d567aae

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 762a64ec234c1eac16023c7b02d34ed83ef665014f2f2c7babe40f91db71e570
MD5 358a977a2443332fc1fc3bd757a5a948
BLAKE2b-256 2e29c9af7806041fb4abf004d795bff072d77a4d2b2bde825d50fc4ee13da952

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 00d18da0f3f4f89d6bc3feee12cdec164de673eef2eda45bd3ad01c14f90ad68
MD5 2cb4603f0daea92db8960117b5d8f4df
BLAKE2b-256 e82ad0e5190fb5fc5952bb2fcf27626ca394f0c2789c0d762673abf057198cdc

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e96f830de62a995ea0d270655a421798c7a3fa1f203210921038482bb34e0e62
MD5 5f1feafb0041065db10576460a8fb6aa
BLAKE2b-256 cea8393acafb014b7a7169e778a7cc3b35d1269288740c1fb3d99ccd1c8da371

See more details on using hashes here.

File details

Details for the file vidsrc-2020.1.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: vidsrc-2020.1.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for vidsrc-2020.1.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 5c70afb502a2b0673c2aefd5753fe74ccd23225bff375723c446be9ddcfa0df1
MD5 b65a0b50a739c5e3cca003451a940698
BLAKE2b-256 db1a78f0fe13983ebdb4a0363a3b73dd26fa8a24cb93cfbcf84acebd651bf539

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page