Skip to main content

Simple ffmpeg wrapper for image2pipe

Project description

# Why

I need to extract frames from videos in order to feed into dnn pipeline.

this is the answer package.

# Install

pip install image2pipe

# Usage

from multiprocessing import Queue
import logging
import cv2

import image2pipe


q = Queue()
decoder = image2pipe.images_from_url(q, "shuttle-flip.mp4", fps="30", scale=(1000, 556))

for i in range(30):
fn, img = q.get()
cv2.imshow("frame %d" % i, img)

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

image2pipe-0.1.3.tar.gz (4.4 kB view hashes)

Uploaded Source

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