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

logging.basicConfig()


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

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

Project details


Download files

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

Files for image2pipe, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size image2pipe-0.0.5.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page