FAQ
Are there some quality libraries I can or should use or port? I'd like a
library so I can get individual samples and do things like Fourier analysis
on sections of the track. Thanks.

--

Search Discussions

  • Mateusz Czapliński at Nov 28, 2012 at 11:06 am

    On Tuesday, November 27, 2012 8:42:37 PM UTC+1, rhiro wrote:
    Are there some quality libraries I can or should use or port? I'd like a
    library so I can get individual samples and do things like Fourier analysis
    on sections of the track. Thanks.

    The only mp3-related lib already in Go that I know of, supports only
    reading ID3 data (i.e. metadata) from mp3 files AFAIK -
    http://go.pkgdoc.org/github.com/ascherkus/go-id3/src/id3

    I have once tried to build/port a lib which would let me manipulate mp3s
    *without* actually decoding the mpeg frames contents (for splitting mp3s in
    lossless way), but I abandoned this work in unfinished state. I think I
    based the port on the https://github.com/mpatric/mp3agic Java library,
    which is nice in that it is MIT-licensed, and has decent test coverage,
    from what I remember. But it also does not support decoding of the frames,
    if I understand correctly, so probably not enough for you. That said, I
    could probably share the initial work I did, should you be interested (also
    on MIT licensing terms & for free). Please contact me privately in such
    case.

    /Mateusz.

    --
  • Matt Montag at Feb 19, 2013 at 1:09 pm
    Hi Mateusz,
    I'm interested in the work you've done on splitting mp3s in a lossless way.
    Can you point me to any resources?

    Thanks,
    Matt
    On Wednesday, November 28, 2012 3:06:20 AM UTC-8, Mateusz Czapliński wrote:
    On Tuesday, November 27, 2012 8:42:37 PM UTC+1, rhiro wrote:

    Are there some quality libraries I can or should use or port? I'd like a
    library so I can get individual samples and do things like Fourier analysis
    on sections of the track. Thanks.

    The only mp3-related lib already in Go that I know of, supports only
    reading ID3 data (i.e. metadata) from mp3 files AFAIK -
    http://go.pkgdoc.org/github.com/ascherkus/go-id3/src/id3

    I have once tried to build/port a lib which would let me manipulate mp3s
    *without* actually decoding the mpeg frames contents (for splitting mp3s in
    lossless way), but I abandoned this work in unfinished state. I think I
    based the port on the https://github.com/mpatric/mp3agic Java library,
    which is nice in that it is MIT-licensed, and has decent test coverage,
    from what I remember. But it also does not support decoding of the frames,
    if I understand correctly, so probably not enough for you. That said, I
    could probably share the initial work I did, should you be interested (also
    on MIT licensing terms & for free). Please contact me privately in such
    case.

    /Mateusz.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Mateusz Czapliński at Mar 10, 2013 at 10:19 pm
    Hi Matt,

    I've dug up the code and put it at: https://github.com/akavel/splitsound
    Please note, as I've written earlier, that this is totally WIP, unfinished,
    etc, etc, I can't guarantee it will help you with anything. But I sure hope
    it will :)
    But if you're interested just in lossless mp3 splitting, I'd suggest to
    look directly at the pcutmp3 project, http://code.google.com/p/pcutmp3/
    that I tried to port.

    I've worked on this code somewhere in 2011, and from what it looks like,
    first I tried to port Java code from https://github.com/mpatric/mp3agic
    (MIT licensed), because it claims to "read low-level mpeg frame data", I
    believe. Then at some moment I switched to another approach and started
    trying to directly port http://code.google.com/p/pcutmp3/ ("New BSD
    license", from looking at that page, linked to "BSD 3-clause":
    http://opensource.org/licenses/BSD-3-Clause). Then I put the project on a
    shelf, I think my main problem was that I couldn't manage to verify for
    long time if the code is actually working OK, because I didn't manage to
    verify test coverage. So then I started trying to help revive the Golang's
    gocov tool, but that's totally another story, and not that much related.
    And now there seem to be some thirdparty coverage verification tools, e.g.
    https://github.com/axw/gocov, so the verification should be possible again.

    Please note also, that the code is written for some pre-1.0 version of Go,
    so it will probably need some gofixing and maybe manual adjustments. Ah,
    and for the parts I authored I claim MIT license, but probably BSD for the
    pcutmp3 port if that would apply better.

    Hope this will help you or anyone else anyone with anything. If you manage
    to build something usable on that, I'd be very grateful for info! I still
    have a hobby usecase where I might like to be able to use lossless mp3
    splitting.
    Good luck
    /Mateusz.
    On Tuesday, February 19, 2013 10:03:55 AM UTC+1, matt....@gmail.com wrote:

    Hi Mateusz,
    I'm interested in the work you've done on splitting mp3s in a lossless
    way. Can you point me to any resources?

    Thanks,
    Matt
    On Wednesday, November 28, 2012 3:06:20 AM UTC-8, Mateusz Czapliński wrote:
    On Tuesday, November 27, 2012 8:42:37 PM UTC+1, rhiro wrote:

    Are there some quality libraries I can or should use or port? I'd like
    a library so I can get individual samples and do things like Fourier
    analysis on sections of the track. Thanks.

    The only mp3-related lib already in Go that I know of, supports only
    reading ID3 data (i.e. metadata) from mp3 files AFAIK -
    http://go.pkgdoc.org/github.com/ascherkus/go-id3/src/id3

    I have once tried to build/port a lib which would let me manipulate mp3s
    *without* actually decoding the mpeg frames contents (for splitting mp3s in
    lossless way), but I abandoned this work in unfinished state. I think I
    based the port on the https://github.com/mpatric/mp3agic Java library,
    which is nice in that it is MIT-licensed, and has decent test coverage,
    from what I remember. But it also does not support decoding of the frames,
    if I understand correctly, so probably not enough for you. That said, I
    could probably share the initial work I did, should you be interested (also
    on MIT licensing terms & for free). Please contact me privately in such
    case.

    /Mateusz.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Tony Worm at Mar 11, 2013 at 4:17 pm
    I have an unfinished wav library that might be used as a reference:
    github.com/verdverm/go-wav

    you can see how I read the file with the 'encoding/binary' package

    hope this helps

    ~Tony
    On Tuesday, November 27, 2012 2:42:37 PM UTC-5, rhiro wrote:

    Are there some quality libraries I can or should use or port? I'd like a
    library so I can get individual samples and do things like Fourier analysis
    on sections of the track. Thanks.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 27, '12 at 9:13p
activeMar 11, '13 at 4:17p
posts5
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase