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 Distribution

ffmphisdp-2.3.0.tar.gz (290.0 kB view details)

Uploaded Source

Built Distribution

ffmphisdp-2.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ffmphisdp-2.3.0.tar.gz.

File metadata

  • Download URL: ffmphisdp-2.3.0.tar.gz
  • Upload date:
  • Size: 290.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.16

File hashes

Hashes for ffmphisdp-2.3.0.tar.gz
Algorithm Hash digest
SHA256 7c420000953f41680a8dce40c8e19d37d6e684a40ed7c3f2f61e83b10cb3b79f
MD5 d56f18d743f175222bfd4dc0756fa073
BLAKE2b-256 1d9dc5f81b430c082144d2f6601ae4116c8546e4ed913a8b1b1b54c526e1320e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ffmphisdp-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 085051cd773ddfc3c8b9bebe2a60b6125723628f66ad160c0dff923b125e998e
MD5 1aeea6113f65f3c217c3006e4696d5c2
BLAKE2b-256 cef531b9d7e92ee8877c26498d2e03f47b52c9a4ba98259b80e77440573942a0

See more details on using hashes here.

Supported by

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