viert / lame Goto Github PK
View Code? Open in Web Editor NEWSimple libmp3lame-powered mp3 encoder for Go
License: MIT License
Simple libmp3lame-powered mp3 encoder for Go
License: MIT License
Thanks for library, it's very usefull. Could you please indicate which license is it?
Thank you for resolving my previous issue about license. However, I did a little bit more research and found out that LGPL license is not a good choice for Go library. It's because LGPL doesn't favor static-linking and for Go it's the exact situation, every package is linked statically. By using LGPL for go package you implicitly restrict anybody from re-using your source code.
You can use any kind of license for this wrapper library because you link lame dynamically.
[ugjka@ArchT dumb-mp3-streamer]$ go get github.com/viert/lame
# github.com/viert/lame
../../viert/lame/lame.go:34: cannot use handle (type *C.struct_lame_global_struct) as type Handle in field value
../../viert/lame/lame.go:40: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:44: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:48: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:52: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:56: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:60: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:65: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:70: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:75: cannot use e.handle (type Handle) as type *C.struct_lame_global_struct in argument to func literal
../../viert/lame/lame.go:75: too many errors
I get this error:
mp3: only MPEG version 1 (want 3; got 2) is supported
when trying to decode the result of my mp3 using:
github.com/hajimehoshi/go-mp3
if h.ID() != consts.Version1 {
return nil, 0, fmt.Errorf("mp3: only MPEG version 1 (want %d; got %d) is supported", consts.Version1, h.ID())
Hello, I'm trying to use VBR quality constants and get absolutely same results:
e.SetVBR(lame.VBR_MTRH)
e.SetMode(lame.JOINT_STEREO)
e.SetVBRQuality(lame.V0)
Results in 18 kb file.
e.SetVBR(lame.VBR_MTRH)
e.SetMode(lame.JOINT_STEREO)
e.SetVBRQuality(lame.V9)
Also results in 18 kb file.
When I execute lame commands:
%s %d -V 0
184 kb
%s %d -V 9
18 kb
Could you please help me out with examples?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.