#musicbrainz-devel

/

      • alastairp
        ogg? maybe
      • 2014-10-09 28256, 2014

      • alastairp
        *checks*
      • 2014-10-09 28209, 2014

      • alastairp
        yes
      • 2014-10-09 28220, 2014

      • alastairp
        m4a, not mp4
      • 2014-10-09 28230, 2014

      • ruaok
        from lowest to highest: mp3, mp4, aac, flac?
      • 2014-10-09 28233, 2014

      • kepstin-laptop
        but what if I want to analyze my music videos?
      • 2014-10-09 28245, 2014

      • ruaok
        not yet.
      • 2014-10-09 28248, 2014

      • kepstin-laptop
        :)
      • 2014-10-09 28257, 2014

      • alastairp
        it doesn't prefer one over the other, this is just to see if it should try and open the file
      • 2014-10-09 28215, 2014

      • alastairp
        the alternative that I might switch to is try and run it, and see if it chokes
      • 2014-10-09 28226, 2014

      • alastairp
        I need to get a version of libav without mp3 support to test this though
      • 2014-10-09 28227, 2014

      • derwin
        how much of the "phrasing" stuff is in the toolkit? I don't have the link to the info handy, but echonest has like measure and etc info?
      • 2014-10-09 28238, 2014

      • alastairp
        derwin: this is very low-level
      • 2014-10-09 28251, 2014

      • zas
        oh great ;)
      • 2014-10-09 28256, 2014

      • alastairp
        the idea is you can look at the implementation, see what numbers you have, and go and make phrases yourself
      • 2014-10-09 28208, 2014

      • alastairp
        (or wait for someone to do so)
      • 2014-10-09 28218, 2014

      • ruaok
        alastairp: my "prefer" comment is on the server side.
      • 2014-10-09 28231, 2014

      • alastairp
        ruaok: oh. I guess
      • 2014-10-09 28238, 2014

      • ruaok
        meaning, if I have one lossy format, under which conditions do I want to replace it with something that is better than what I have?
      • 2014-10-09 28203, 2014

      • alastairp
        e.g. is mp3 320k better than a low quality aac?
      • 2014-10-09 28219, 2014

      • ruaok
        thats where it gets tricky. :(
      • 2014-10-09 28233, 2014

      • ruaok
        lots of comparing apples to oranges.
      • 2014-10-09 28246, 2014

      • kepstin-laptop
        and we're trying to compare them by diameter, when we really want to compare them by sugar content.
      • 2014-10-09 28209, 2014

      • ruaok
        heh.
      • 2014-10-09 28237, 2014

      • kepstin-laptop
        "on average, an apple has x sugar per cm³, and an orange has y sugar per cm³, so if we assume both are spherical, we can approximatly compare if we know the diameter"
      • 2014-10-09 28258, 2014

      • kepstin-laptop
        so I guess it's just a matter of picking good values for x and y :)
      • 2014-10-09 28224, 2014

      • kepstin-laptop
        (in other words, maybe just assign a bitrate multiplier for each codec, and pick which one has the higher bitrate * multiplier score?)
      • 2014-10-09 28234, 2014

      • Mineo
        alastairp: you have a pull request :P
      • 2014-10-09 28239, 2014

      • ruaok
        kepstin-laptop: interesting idea.
      • 2014-10-09 28241, 2014

      • kepstin-laptop
        ... where do I actually get a copy of the essentia stuff? google isn't being very helpful
      • 2014-10-09 28200, 2014

      • ruaok
        lets see what alastairp comes up with for bit rates
      • 2014-10-09 28220, 2014

      • ruaok
      • 2014-10-09 28248, 2014

      • kepstin-laptop
        oh, now I just feel silly for not looking there :)
      • 2014-10-09 28247, 2014

      • alastairp
        yeah, I just bashed the readme file out. it needs some care
      • 2014-10-09 28259, 2014

      • alastairp
        also, there are linux 64 bit static binaries somewhere
      • 2014-10-09 28203, 2014

      • alastairp
        um. ruaok got link?
      • 2014-10-09 28216, 2014

      • ruaok
        one sec
      • 2014-10-09 28232, 2014

      • alastairp
        found it
      • 2014-10-09 28242, 2014

      • alastairp
      • 2014-10-09 28200, 2014

      • alastairp
        also, the readme says it looks in $PATH for a binary. that's a lie, it just looks in .
      • 2014-10-09 28251, 2014

      • kepstin-laptop
        do you need essentia built with gaia for the acousticbrainz tool?
      • 2014-10-09 28251, 2014

      • alastairp
        no
      • 2014-10-09 28203, 2014

      • alastairp
        however you do need new libav
      • 2014-10-09 28205, 2014

      • alastairp
        (sorry)
      • 2014-10-09 28212, 2014

      • alastairp
        ubuntu 14.04 has it
      • 2014-10-09 28218, 2014

      • kepstin-laptop uses ffmpeg 2.4, that shouldn't be a problem
      • 2014-10-09 28228, 2014

      • ruaok
        feh. time to dist upgrade this vm
      • 2014-10-09 28239, 2014

      • kepstin-laptop
        it just uses the example binary right? doesn't need the python bindings?
      • 2014-10-09 28222, 2014

      • alastairp
        yep
      • 2014-10-09 28229, 2014

      • alastairp
        ./waf configure --with-examples
      • 2014-10-09 28233, 2014

      • alastairp
        should be all you need
      • 2014-10-09 28259, 2014

      • kepstin-laptop
        ok, good. to install numpy, I need to rebuild my gcc with fortran support enabled, that could take a while :)
      • 2014-10-09 28232, 2014

      • ruaok
        ouch
      • 2014-10-09 28247, 2014

      • ruaok
        those better be some pretty yaks
      • 2014-10-09 28243, 2014

      • kepstin-laptop
        huh, weird. it builds essentia as a static library only? then statically links it into the example tools?
      • 2014-10-09 28205, 2014

      • kepstin-laptop
        but odd, but I guess it makes it easier to handle since I only need the 1 tool and not extra libs.
      • 2014-10-09 28217, 2014

      • ruaok
        don't ask.
      • 2014-10-09 28254, 2014

      • alastairp
        woo, filename in output!
      • 2014-10-09 28247, 2014

      • ruaok
        :)
      • 2014-10-09 28204, 2014

      • alastairp
        hmm. how do you do basename(file) in both posix and windows?
      • 2014-10-09 28208, 2014

      • alastairp
        in c++
      • 2014-10-09 28233, 2014

      • ruaok shrugs
      • 2014-10-09 28245, 2014

      • ruaok
        those were always part of baseline libraries for whatever project I worked on.
      • 2014-10-09 28208, 2014

      • alastairp
        yeah
      • 2014-10-09 28214, 2014

      • alastairp
        don't think there's one here
      • 2014-10-09 28247, 2014

      • ruaok
        are there ways to determine if you're on windows?
      • 2014-10-09 28253, 2014

      • ruaok
        using a macro?
      • 2014-10-09 28258, 2014

      • alastairp
        #ifdef windoes
      • 2014-10-09 28205, 2014

      • ruaok
        and then #if #else #endif
      • 2014-10-09 28210, 2014

      • kepstin-laptop
        wow, pytaglib is GPL-3
      • 2014-10-09 28224, 2014

      • kepstin-laptop
        that's a bit limiting on the licenses of projects that use it...
      • 2014-10-09 28224, 2014

      • ruaok
        DIR_CONCAT = "/"
      • 2014-10-09 28225, 2014

      • ruaok
        or
      • 2014-10-09 28232, 2014

      • ruaok
        DIR_CONCAT = "\\"
      • 2014-10-09 28245, 2014

      • ruaok
        and then use DIR_CONCAT to join parts.
      • 2014-10-09 28257, 2014

      • ruaok
        not the best, but gets 99% of the people you care about
      • 2014-10-09 28222, 2014

      • alastairp
        kepstin-laptop: oh, I didn't see that
      • 2014-10-09 28226, 2014

      • alastairp
        essentia is agpl-3 :)
      • 2014-10-09 28252, 2014

      • ruaok
        alastairp: file_name for the key name ?
      • 2014-10-09 28252, 2014

      • warp
        AGPLv3 \o/
      • 2014-10-09 28255, 2014

      • alastairp
        ruaok: I'm not joining parts - I'm splitting to get the last. but same process. I know
      • 2014-10-09 28200, 2014

      • kepstin-laptop is having to package it for exherbo to get this stuff going, which is why he noticed that.
      • 2014-10-09 28224, 2014

      • alastairp
        ruaok: in what subkey? metadata->audio_properties
      • 2014-10-09 28225, 2014

      • alastairp
        ?
      • 2014-10-09 28227, 2014

      • ruaok
        I guess under metadata | tags | file_name ?
      • 2014-10-09 28239, 2014

      • ruaok
        I think of it more as tag data, not audio.
      • 2014-10-09 28255, 2014

      • alastairp
        ok
      • 2014-10-09 28259, 2014

      • alastairp
        CODEC long name `MP3 (MPEG audio layer 3)`
      • 2014-10-09 28206, 2014

      • alastairp
        winning
      • 2014-10-09 28237, 2014

      • ruaok
        alastairp:
      • 2014-10-09 28238, 2014

      • ruaok
      • 2014-10-09 28247, 2014

      • ruaok
        I'm planning on making sure those fields exist.
      • 2014-10-09 28253, 2014

      • ruaok
        think we need to check for more than that?
      • 2014-10-09 28246, 2014

      • kepstin-laptop
        alright, looks like abzsubmit is running for me now.
      • 2014-10-09 28201, 2014

      • ruaok
        really? that's scary cool. :)
      • 2014-10-09 28217, 2014

      • kepstin-laptop
        I guess I should try it on some files now and see if it breaks
      • 2014-10-09 28218, 2014

      • alastairp
        :)
      • 2014-10-09 28226, 2014

      • ruaok
        15 tracks!
      • 2014-10-09 28237, 2014

      • alastairp
        ruaok: yeah, those look like the important ones
      • 2014-10-09 28239, 2014

      • ruaok
        though kepstin-laptop, pleae stop it for a little while.
      • 2014-10-09 28245, 2014

      • alastairp
        yeah, I submitted dark side of the moon
      • 2014-10-09 28251, 2014

      • kepstin-laptop
        I haven't run it over any tracks yet
      • 2014-10-09 28257, 2014

      • ruaok
        ah, ok.
      • 2014-10-09 28204, 2014

      • alastairp
        do you realise how long it took me to choose a symbolic first album?
      • 2014-10-09 28210, 2014

      • ruaok
        so, hang on with any serious running until we get the latest from alastairp.
      • 2014-10-09 28218, 2014

      • ruaok
        .01 seconds?
      • 2014-10-09 28226, 2014

      • kepstin-laptop was just gonna use the album he always uses for testing :)
      • 2014-10-09 28228, 2014

      • alastairp
        nah, a good minute or so :)
      • 2014-10-09 28246, 2014

      • alastairp
        so, I have filename and codec extracted, but need to wire it into the monster that is essentia to get it into the output
      • 2014-10-09 28253, 2014

      • ruaok
        I'll put that one on when its submitted for eal.
      • 2014-10-09 28255, 2014

      • ruaok
        +r
      • 2014-10-09 28211, 2014

      • ruaok
        alastairp: that gives me a chance to finish the sanity checking.
      • 2014-10-09 28243, 2014

      • alastairp
        still debating bitrate. I need to see what I can get from libav - if anyone feels like reading libav docs to help me :)
      • 2014-10-09 28200, 2014

      • ruaok nomiates kepstin-laptop
      • 2014-10-09 28213, 2014

      • kepstin-laptop
        you're using libav as a library, not the command-line tools?
      • 2014-10-09 28242, 2014

      • alastairp
        yes
      • 2014-10-09 28212, 2014

      • alastairp
        urg. we're consuming data frame-by-frame though. not sure then how to do it
      • 2014-10-09 28245, 2014

      • kepstin-laptop hasn't actually done much with using ffmpeg via the library api :/
      • 2014-10-09 28203, 2014

      • kepstin-laptop
        I mean, I have a commit in ffmpeg, but that was in a completely unrelated area ;)
      • 2014-10-09 28251, 2014

      • alastairp
      • 2014-10-09 28221, 2014

      • kepstin-laptop
        alastairp: my understanding is that's more for encoding, I dunno if it's populated when decoding?
      • 2014-10-09 28245, 2014

      • alastairp
        decoding: Set by libavcodec. 0 or some bitrate if this info is available in the stream.
      • 2014-10-09 28253, 2014

      • alastairp
        so, flac set it to 0, mp3 set it to 192000
      • 2014-10-09 28254, 2014

      • kepstin-laptop
        ok, then :)
      • 2014-10-09 28203, 2014

      • alastairp
        let me try ogg and vbr
      • 2014-10-09 28240, 2014

      • alastairp
        BIT RATE `112000`
      • 2014-10-09 28202, 2014

      • alastairp
        BIT RATE `162284`
      • 2014-10-09 28219, 2014

      • alastairp
        well. ruaok, if you're happy with that I'll try and get it into the output
      • 2014-10-09 28222, 2014

      • kepstin-laptop
        looks like ffprobe gives useful output for opus, vorbis, and vbr mp3 in my testing
      • 2014-10-09 28233, 2014

      • alastairp
        I think short name for codec? not long_name
      • 2014-10-09 28259, 2014

      • ruaok
        looks good to me, including short name
      • 2014-10-09 28221, 2014

      • alastairp
        so, the "annoying" thing is that flac gives 0. I guess that's OK though because of the encoder
      • 2014-10-09 28231, 2014

      • ruaok
        yep.
      • 2014-10-09 28234, 2014

      • alastairp
        wav -> BIT RATE `1411200`
      • 2014-10-09 28235, 2014

      • alastairp
        what?
      • 2014-10-09 28246, 2014

      • ruaok
        we wont look at that field if lossless = t
      • 2014-10-09 28252, 2014

      • alastairp
        so
      • 2014-10-09 28205, 2014

      • kepstin-laptop
        alastairp: that's the exactly correct bitrate for a wav with 16bit 44.1kHz audio...
      • 2014-10-09 28223, 2014

      • alastairp
        lossless = (decoder == "flac" or decoder == "pcm_s16le") ?
      • 2014-10-09 28226, 2014

      • alastairp
        kepstin-laptop: right :)
      • 2014-10-09 28244, 2014

      • kepstin-laptop
        don't forget alac, ape, musepack, etc.
      • 2014-10-09 28251, 2014

      • alastairp
        yeah
      • 2014-10-09 28208, 2014

      • alastairp
        so, this depends also on what the persons ffmpeg has
      • 2014-10-09 28223, 2014

      • kepstin-laptop
        hmm. does ffmpeg do tak decoding yet? I think they added it at some point
      • 2014-10-09 28226, 2014

      • alastairp
        if you could do all the hard work and get me a list of lossless ffmeg decoders, that'd be awesome :)
      • 2014-10-09 28220, 2014

      • ruaok
        alastairp: is file_name going to be a list or a single string
      • 2014-10-09 28225, 2014

      • ruaok
        (everything else in that section is a list)
      • 2014-10-09 28231, 2014

      • kepstin-laptop
        the list of short names of lossless ffmpeg audio decoders is: alac, ape, flac, pcm_*, shorten, tak, truehd, tta, wavpack (sometimes), wmalossless,
      • 2014-10-09 28239, 2014

      • kepstin-laptop
        I don't think I missed any
      • 2014-10-09 28246, 2014

      • alastairp
        ruaok: that's because taglib did it