Giter VIP home page Giter VIP logo

grunt-audiosprite's People

Contributors

bigtimebuddy avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-audiosprite's Issues

env: node\r: No such file or directory

Encountered on MacOSX - it appears that the line endings in the repo version are of 'windows' standard. Resolved by changing line endings of the following files:

node_modules/audiosprite/audiosprite.js
node_modules/grunt-audiosprite/tasks/grunt-audiosprite.js
node_modules/audiosprite/cli.js

...to 'unix' (in SublimeText: View -> Line Endings), and saving file as encoding 'UTF-8'.

Issue using the native FFmpeg AAC encoder

In order to use the native FFmpeg AAC encoder, an additional argument must be passed to
the command line of FFmpeg when transcoding the raw audio file to .m4a file format.

The command line would have to look something like this:
ffmpeg -y -ac 1 -f s16le -i RAW_TEMP_FILE -strict experimental -ab 48k OUTPUT.m4a

This is an issue with the audiosprite utility in your repository. But I can't open new issues there.

I haven't tested if that has any negative side-effects when not using the native AAC encoder because
that's not available to me.

source: https://trac.ffmpeg.org/wiki/Encode/AAC

Error code 127 'No file or directory'

cmd = [__dirname + '/../node_modules/.bin/audiosprite'] Returns 'No file or directory' on linux, should be cmd = [__dirname + '/../../../node_modules/.bin/audiosprite']

"files" parameter fails when wildcard or array are used

For the following task:

 audiosprite : {
        all : {
            output: "./app/assets/audio/",
            files: "audio/*.wav",
            export: 'm4a,ogg,mp3',
            bitrate: 48,
            silence: 5
        }
    }

This is the output:

Running "audiosprite:all" (audiosprite) task
>> debug:Parsed arguments _=[audio/*.wav], output=./app/assets/audio/, o=./app/assets/audio/, export=m4a,ogg,mp3, e=m4a,ogg,mp3, bitrate=48, b=48, silence=5, s=5, priority=, y=, loop=, u=, log=info, l=info, autoplay=null, a=null, samplerate=44100, r=44100, channels=1, c=1, rawparts=, p=, $0=node c:\xampp\htdocs\gamedev\phaser\test002\node_modules\grunt-audiosprite\node_modules\cloudkid-audiosprite\audiosprite.js
>> debug:Created temporary file file=C:\Users\parka\AppData\Local\Temp\audiosprite.7499742431100458
>> debug:Spawn cmd=ffmpeg -version
info: Silence gap added duration=6
>> debug:Start processing file=audio/*.wav

>> Exited with code: 1.

Warning: Task "audiosprite:all" failed. Use --force to continue.

Using:

files: ["audio/*.wav"]

Returns:

Running "audiosprite:all" (audiosprite) task
Warning: Cannot use 'in' operator to search for 'src' in audio/*.wav Use --force to continue.

Aborted due to warnings.

This works ok:

files: "audio/interface6.wav audio/metal-ringing.wav audio/swing.wav"

I don't know how relevant it could be but upon installation of audiosprite I get the following warnings (I'm sorry for the image, idk how to dump that log):
audiosprite installation

Additional data:
Windows 8
Node v0.10.31

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.