Code Monkey home page Code Monkey logo

clj-media's People

Contributors

phronmophobic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

clj-media's Issues

Improve memory usage

For whatever reason, allocing a bunch of frames, then freeing them in bulk has much worse memory usage than freeing frames as you go. Setting things up so frames can be 1) reused and 2) freed as you go is probably the better design anyways.

namespace 'com.phronemophobic.clj-media.impl.raw' not found (not compiled)

I just want to try out clj-media to probe the aspect ratio of input videos. However, I am getting an error when I try to use it.

I use leiningen. In :dependencies in my project.clj:

;;;;;; everything else
[com.phronemophobic/clj-media "2.3"]

attempting use in an ns:

(ns test.ns
  (:require
   [com.phronemophobic.clj-media :as cljm]
  ) ;; attempting to evaluate the ns statement:
  ;; => namespace 'com.phronemophobic.clj-media.impl.raw' not found

I have checked the maven repository and verified that the downloaded jar DOES include the impl.raw ns, so perhaps the error is not what it says it is. fwiw, I do have ffmpeg installed on my system and can use it from the CLI. Why can't I use clj-media?

edit: I restarted my system repl and found a more instructive error:

Syntax error (UnsatisfiedLinkError) compiling at (com/phronemophobic/clj_media/impl/raw.clj:61:1).
~/.javacpp/cache/ffmpeg-6.0-1.5.9-linux-x86_64.jar/org/bytedeco/ffmpeg/linux-x86_64/libjniavdevice.so: libxcb.so.1: cannot open shared object file: No such file or directory

it looks like a system error of some kind. I see I am not alone with similar errors: https://stackoverflow.com/questions/72554450/aws-ec2-linux-cannot-open-shared-object-file

The solution is to make a bunch of system upgrades, which are apparently needed so that the latest xcb version is viable. For clj-media, I guess the docs should mention that a recent libxcb library is needed so that the C-linker has what it needs when Clong does its thing.

I'm trying to update things so that it works. I'm leaving this message here so that others might find it when necessary.

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.