Skip to main content

ffmphisDP

This package takes care of reading a video stream one frame at a time from a local file or a url while converting it to a given framerate.

Features:

  • Streaming all frames from a video url or a video file
  • Jumping to another point of the stream at a given frame index or timestamp
  • For a given video and a given framerate always returns the same frames

How to use it

from ffmphisdp.video_reader import ControlledFPSVideoCapture

stream = ControlledFPSVideoCapture("myvideo.mp4", fps=10)

while True:
    ret, frame = stream.read()
    if not ret:
        break # End of the stream
    <do something with the frame>

Important Note

Previously reading video was handled by the skcvideo package, it's important to understand that ffmphisdp introduces a breaking change from skcvideo.

The frames returned by ffmphisdp and those returned by skcvideo are not the exact same, care should be taken when using legacy data to read videos using the correct reader.

Here is an example, for a given video at 25fps converted to 10fps:

  • skcvideo would return the original video frame indexes: 0,1,2,4,7,9,12,14,17
  • ffmphisdp return the original video frame indexes: 1,3,6,8,11,13,16

Metadata

Release files for ffmphisdp 2.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ffmphisdp 2.6.2
File Interpreter ABI Platform
ffmphisdp-2.6.2-py3-none-any.whl Python 3 none any Details

Release files / ffmphisdp-2.6.2-py3-none-any.whl

Download URL ffmphisdp-2.6.2-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fc9ea8b73cb7aa5b5764d0d13091d44336454a346141f28c2f9e611390481dd
BLAKE2b-256 checksum
How to use checksums
c36298204a952056a781db6745ecedc9834ce379cb1e93ef5fe44646f1564f03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.14

Security for ffmphisdp 2.6.2

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page