Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ffmphisdp-2.6.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file ffmphisdp-2.6.2-py3-none-any.whl.

File metadata

  • Download URL: ffmphisdp-2.6.2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for ffmphisdp-2.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc9ea8b73cb7aa5b5764d0d13091d44336454a346141f28c2f9e611390481dd
MD5 731a9cf75488f8368b0994eabe81746f
BLAKE2b-256 c36298204a952056a781db6745ecedc9834ce379cb1e93ef5fe44646f1564f03

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