Skip to content

Instantly share code, notes, and snippets.

@esc
Last active September 8, 2017 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esc/320cc3260b466162f25dd46ad38ad52b to your computer and use it in GitHub Desktop.
Save esc/320cc3260b466162f25dd46ad38ad52b to your computer and use it in GitHub Desktop.
GulpIO Blogpost Reading Example
# import the main interface for reading
from gulpio import GulpDirectory
# instantiate the GulpDirectory
gulp_directory = GulpDirectory('/tmp/something_something_gulps')
# iterate over all chunks
for chunk in gulp_directory:
# for each 'video' get the metadata and all frames
for frames, meta in chunk:
# do something with the metadata
for i, f in enumerate(frames):
# do something with the frames
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment