Giter Site home page Giter Site logo

Comments (8)

stefankeidel avatar stefankeidel commented on July 28, 2024

Well first of all you have to upload the whole file to the web server so the space consumption in the temporary directory will be at least the filesize of whatever file you're uploading via browser because the web server has to store the file somewhere.

If you're planning on uploading 100GB videos you won't be able to do that via browser anyway because most web servers have hard limits built in that are several orders of magnitude smaller. Also, you just don't want to upload 100GB via web browser, period. For that kind of job you should use the batch media importer (Import > Media in the main menu bar) or a custom importer.

As for the giant temp file: At the time of the upload CollectiveAccess has no idea what kind of file it's about to deal with. So it tries all media processing plugins one by one and asks them if they can handle this kind of file. These plugins usually rely on some kind of external tool - like ImageMagick, GraphicsMagick, ffmpeg, whatever - which is why they try to open the file with that tool. Some of these tools have a tendency to crash or do weird things if you throw particular files at them. This identification process happens way before the actual processing so the queue setting doesn't come into play yet.

What kind of *Magick are you using? You can look that up under Manage > Administration > Configuration Check. One of these *Magick entries in the table should have "available" next to it.

And one last thing: For your own sanity you shouldn't change anything in global.conf . You can enable the media queue in setup.php.

from providence.

pjotrek-b avatar pjotrek-b commented on July 28, 2024

Using "php5-imagick", as suggested in the installation docs.
about editing "global.php": The installation docs say to edit that file.

I'm aware that I won't want (ever!) want to upload files larger than a few MB by browser. Yet, I found it very ineffective that a 3 minute MPEG is blown up to 12 GB by Imagick, just for doing basically nothing... ;)

from providence.

collectiveaccess avatar collectiveaccess commented on July 28, 2024

ImageMagick does some stupid things when opening certain types of video files, such as creating huge tmp files. There's not much we can do about it other than to modify the ImageMagick delegates.xml file so it doesn't try to process video. If you remove all references to ffmpeg in that file you should find things work more smoothly.

from providence.

stefankeidel avatar stefankeidel commented on July 28, 2024

Try using GraphicsMagick instead. In the past the imagick extension, especially the one packaged in Debian, caused a ton of problems in my setups and GM is faster anyway. Get rid of the php5-imagick package, restart your webserver to make sure the extension is not loaded anymore, and then install the package "graphicsmagick" and make sure the path in app/conf/external_applications.conf is correct (which it should be by default).

from providence.

collectiveaccess avatar collectiveaccess commented on July 28, 2024

GraphicsMagick has a delegates.xml file as well, as it's derived from ImageMagick. So the same "trick" of removing ffmpeg references is useful here as well.

from providence.

pjotrek-b avatar pjotrek-b commented on July 28, 2024

Thanks for the tips!
I'll give it a try.

from providence.

pjotrek-b avatar pjotrek-b commented on July 28, 2024

Since you closed it:
Is this fixed, or does it still require the workaround?

from providence.

stefankeidel avatar stefankeidel commented on July 28, 2024

There's nothing to fix for us here, as explained above.

from providence.

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.