GithubHelp home page GithubHelp logo

go-lame's People

Contributors

grahamlyus avatar viert 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

Watchers

 avatar  avatar  avatar  avatar  avatar

go-lame's Issues

Add installation instructions?

Hi there! This seems like a super useful library for a project I'm working on that needs to do a bit of wav > mp3 transcoding, but I'm not really sure how to actually use the library?

Even just running go get "github.com/viert/go-lame" fails, since it can't find lame/lame.h. I'm not familiar with calling code via cgo, so if any additional setup instruction could be provided, it'd be super helpful.

Cheers!

Click sound at start of MP3 files

When reading a wav file (generated by github.com/go-audio/wav) there is an audible click at the start of the resulting mp3 file.

I wonder, is it treating the wav file header like audio data? I don't know enough about wav files and lame to have an intuition as to what is causing this.

[Fixed]: Error building package in travis

go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
0.57s$ go get -u github.com/viert/go-lame
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
# github.com/viert/go-lame
../../viert/go-lame/encoder.go:5:23: fatal error: lame/lame.h: No such file or directory
compilation terminated.
The command "go get -u github.com/viert/go-lame" failed and exited with 2 during .

Chipmunk Mp3 files

When I use the code exactly as per the readme it works out of the box except for one important problem.

When used on mac os x, on a sample wav file, the mp3 plays faster than the wav file. The mp3 audio and sounds like a sped up chipmunk.

The bitrate of the input file is 22khz / mono / 16bit. It appears that the library doesn't read the metadata of the wav file. So it assume your code must first open the wav file, read the metadata, then pass that metadata on to go-lame. It would be more convenient if the library just used the metadata inside the wav file. cf github.com/go-audio/wav

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.