FFVideo
Installation
In Ubuntu you can install the above using the following commands:
sudo aptitude install python-dev cython libavcodec-dev libavformat-dev libswscale-dev tar -xf FFVideo-0.0.13.tar.gz cd FFVideo-0.0.13 python setup.py install
or:
sudo aptitude install python-dev cython libavcodec-dev libavformat-dev libswscale-dev python-pip pip install ffvideo
How to use
Getting thumnails or videostream info
from ffvideo import VideoStream
def print_info(vs):
print '-' * 20
print "codec: %s" % vs.codec_name
print "duration: %.2f" % vs.duration
print "bit rate: %d" % vs.bitrate
print "frame size: %dx%d" % (vs.frame_width, vs.frame_height)
print "frame_mode: %s" % vs.frame_mode
vs = VideoStream('0.flv')
print_info(vs)
vs = VideoStream('0.flv',
frame_size=(128, None), # scale to width 128px
frame_mode='L') # convert to grayscale
print_info(vs)
frame = vs.get_frame_at_sec(2)
print frame.size
# PIL image, required installed PIL
frame.image().save('frame2sec.jpeg')
# numpy.ndarray, required installed numpy
print frame.ndarray().shape
Iterating over frame sequence
from ffvideo import VideoStream
for frame in VideoStream('0.flv'):
print frame.timestamp
Metadata
Release files for FFVideo 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| FFVideo-0.0.13.tar.gz | 47.4 kB | Without provenance | Details |
Release files / FFVideo-0.0.13.tar.gz
| Download URL | FFVideo-0.0.13.tar.gz |
|---|---|
| Size | 47.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
648aa2f45dd2091fd814de4b55479f7089379c2bf290b63a637afac6df9ac28b
|
|
BLAKE2b-256 checksum How to use checksums |
00881837ebf7d023f03ecfcad0d49e95102969c4d0f631efcc137f2611500770
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for FFVideo 0.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.