Giter Site home page Giter Site logo

realies / audiowaveform-docker Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 9.0 36 KB

๐Ÿณ Audiowaveform Docker Container

Home Page: https://hub.docker.com/r/realies/audiowaveform

Dockerfile 100.00%
docker bbc audiowaveform alpine-linux amd64 arm64 static

audiowaveform-docker's Introduction

Audio Waveform Image Generator Docker Container

GitHub Workflow Status Docker Build Docker Pulls Docker Image Size

audiowaveform is a C++ command-line application that generates waveform data from either MP3, WAV, FLAC, Ogg Vorbis, or Opus format audio files. Waveform data can be used to produce a visual rendering of the audio, similar in appearance to audio editing applications. The code for the application binary can be found here. Compiled for 386, amd64, arm/v6, arm/v7, arm64, ppc64le, s390x.

Example Waveform

Waveform data files are saved in either binary format (.dat) or JSON (.json). Given an input waveform data file, audiowaveform can also render the audio waveform as a PNG image at a given time offset and zoom level.

Typical Usage

Using Docker CLI
alias awf='docker run --rm -v `pwd`:/tmp -w /tmp realies/audiowaveform'
awf -i input.wav -o output.png

audiowaveform-docker's People

Contributors

nums avatar realies avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

audiowaveform-docker's Issues

Dockerfile fails to build with alpine:latest

I was not able to build this again after the last alpine update(3.16). Changing the first line in the Dockerfile with FROM alpine:3.14 from builder fixes the building issue. It might also work with newer version alpine 3.15 but did not test it.

Docker cannot build

Hello :) i've been using this docker file for a while, i was building it myself in order to cooperate with a java microservice, as of a week ago it doesn't build any more , i think because of an update to google testing, since it's working against the latest version of it

Problem running from inside a NodeJs app inside a Docker container

I've been struggling with this for a few days. I have a React/NodeJs app that calls audiowaveform to generate waveforms from user-supplied mp3 and wav files. Works great on a local Mac system. I have Dockerized my app and hoped to use your image from within the project container. Since your image is strictly command line based, I have tried using dockerode to issue a docker run to call realies/audiowaveform from within the container running my nodejs code. It seems that your image requires mount binding in order to get the output saved. Since I'm calling your image from inside a container, the bind is to a container volume that is in turn bound to the host via settings in docker-compose. When I run this I get a "mounts denied" error. Here's the call:

docker.run("realies/audiowaveform", [-i ${track.mp3Uri} -o 'test.png' -z auto -b 8 --background-color 00000000 --waveform-color 1976d2FF --axis-label-color FFFFFFFF --border-color 00000000 -h 50 -w 400], process.stdout, { WorkingDir: '/tmp', Hostconfig: { Binds: ['/music:/tmp'] } } )

The exact error message is: "Mounts denied: The path /music is not shared from the host and is not known to Docker".

Any suggestions would be much appreciated!

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.