Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
image2pipe-0.1.7.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None May 31, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page