GithubHelp home page GithubHelp logo

Comments (6)

robertfoss avatar robertfoss commented on September 17, 2024 1

Fixed here: 45d2871

from audio_shop.

robertfoss avatar robertfoss commented on September 17, 2024

If you can provide me with a complete command and the input image you used, I'll try to replicate the behavior.

from audio_shop.

VirenMohindra avatar VirenMohindra commented on September 17, 2024

This error occurs with every flag (bass, echo, vol) etc.

I did install sox with HomeBrew but I don't think that should be a problem. I think the cleanup() function might play a role in this error.

I've run every command and it does produce an output image, but it is corrupted.

example:

test
output

EDIT: The image doesn't preview well on Mac OSX but it appears the effect is applied even though the script still throws the error.

from audio_shop.

robertfoss avatar robertfoss commented on September 17, 2024

So which exact command did you issue?
And do you see any console errors?

from audio_shop.

VirenMohindra avatar VirenMohindra commented on September 17, 2024

Th error applies to every flag

I used ./mangle.sh test.jpg output.jpg bass 2 for the above image.

verbose output in the console:

TMP_DIR:         /tmp/audio_shop-ewZnM
RES:             290x158
VIDEO:
AUDIO:
FFMPEG_IN_OPTS:
FFMPEG_OUT_OPTS:
SOX_OPTS:        bass 100
Extracting raw image data..
Processing as sound..
Recreating image data from audio..
rm: illegal option -- -
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file

from audio_shop.

robertfoss avatar robertfoss commented on September 17, 2024

Ok, I think I see what is happening here.
rm -rf --preserve-root "${TMP_DIR}" is being executed in an environment with a version of rm that doesnt support --preserve-root.

--preserve-root was a development safety measure and can be removed

from audio_shop.

Related Issues (7)

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.