Code Monkey home page Code Monkey logo

Comments (3)

pdima avatar pdima commented on June 10, 2024

Not directly documentation related but may be relevant:

looks like pims package used does not work with the recent av 0.4 and requires version 0.3.3

it may be worth to consider removing dependency on pims and to use av directly (or if desired another library for decoding video files), the pims usage is currently very limited.

from zamba.

pjbull avatar pjbull commented on June 10, 2024

Updated title to reflect changing these libraries.

If we can use a library that is consistently installable with pip then we can remove the Anaconda requirement as well, which would be a nice plus.

from zamba.

caseyfitz avatar caseyfitz commented on June 10, 2024

Using sk-video instead of pims and PyAV almost works as a one-line change, but not quite:

  • 👍 The sk lib still allows indexing into the time dimension
  • 👎 sk loads video as a numpy.ndarray whereas pims loads a pims.pyav_reader.PyAVReaderTimed. Array contents are the same (unit8) but the PyAV object can be put in a with block whereas the numpy array lacks the required __enter__() and __exit()__ methods.

So it seems like the fastest the fix is to either load the full array every time or provide the methods.

from zamba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.