15:41 PM
alastairp
ogg? maybe
2014-10-09 28256, 2014
15:41 PM
alastairp
*checks*
2014-10-09 28209, 2014
15:42 PM
alastairp
yes
2014-10-09 28220, 2014
15:42 PM
alastairp
m4a, not mp4
2014-10-09 28230, 2014
15:42 PM
ruaok
from lowest to highest: mp3, mp4, aac, flac?
2014-10-09 28233, 2014
15:42 PM
kepstin-laptop
but what if I want to analyze my music videos?
2014-10-09 28245, 2014
15:42 PM
ruaok
not yet.
2014-10-09 28248, 2014
15:42 PM
kepstin-laptop
:)
2014-10-09 28257, 2014
15:42 PM
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
15:43 PM
alastairp
the alternative that I might switch to is try and run it, and see if it chokes
2014-10-09 28226, 2014
15:43 PM
alastairp
I need to get a version of libav without mp3 support to test this though
2014-10-09 28227, 2014
15:43 PM
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
15:43 PM
alastairp
derwin: this is very low-level
2014-10-09 28251, 2014
15:43 PM
zas
oh great ;)
2014-10-09 28256, 2014
15:43 PM
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
15:44 PM
alastairp
(or wait for someone to do so)
2014-10-09 28218, 2014
15:44 PM
ruaok
alastairp: my "prefer" comment is on the server side.
2014-10-09 28231, 2014
15:44 PM
alastairp
ruaok: oh. I guess
2014-10-09 28238, 2014
15:44 PM
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
15:45 PM
alastairp
e.g. is mp3 320k better than a low quality aac?
2014-10-09 28219, 2014
15:45 PM
ruaok
thats where it gets tricky. :(
2014-10-09 28233, 2014
15:45 PM
ruaok
lots of comparing apples to oranges.
2014-10-09 28246, 2014
15:46 PM
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
15:47 PM
ruaok
heh.
2014-10-09 28237, 2014
15:48 PM
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
15:48 PM
kepstin-laptop
so I guess it's just a matter of picking good values for x and y :)
2014-10-09 28224, 2014
15:50 PM
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
15:51 PM
Mineo
alastairp: you have a pull request :P
2014-10-09 28239, 2014
15:52 PM
ruaok
kepstin-laptop: interesting idea.
2014-10-09 28241, 2014
15:52 PM
kepstin-laptop
... where do I actually get a copy of the essentia stuff? google isn't being very helpful
2014-10-09 28200, 2014
15:53 PM
ruaok
lets see what alastairp comes up with for bit rates
2014-10-09 28220, 2014
15:53 PM
ruaok
2014-10-09 28248, 2014
15:53 PM
kepstin-laptop
oh, now I just feel silly for not looking there :)
2014-10-09 28247, 2014
15:54 PM
alastairp
yeah, I just bashed the readme file out. it needs some care
2014-10-09 28259, 2014
15:54 PM
alastairp
also, there are linux 64 bit static binaries somewhere
2014-10-09 28203, 2014
15:55 PM
alastairp
um. ruaok got link?
2014-10-09 28216, 2014
15:55 PM
ruaok
one sec
2014-10-09 28232, 2014
15:55 PM
alastairp
found it
2014-10-09 28242, 2014
15:55 PM
alastairp
2014-10-09 28200, 2014
15:56 PM
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
15:57 PM
kepstin-laptop
do you need essentia built with gaia for the acousticbrainz tool?
2014-10-09 28251, 2014
15:58 PM
alastairp
no
2014-10-09 28203, 2014
15:59 PM
alastairp
however you do need new libav
2014-10-09 28205, 2014
15:59 PM
alastairp
(sorry)
2014-10-09 28212, 2014
15:59 PM
alastairp
ubuntu 14.04 has it
2014-10-09 28218, 2014
15:59 PM
kepstin-laptop uses ffmpeg 2.4, that shouldn't be a problem
2014-10-09 28228, 2014
16:00 PM
ruaok
feh. time to dist upgrade this vm
2014-10-09 28239, 2014
16:00 PM
kepstin-laptop
it just uses the example binary right? doesn't need the python bindings?
2014-10-09 28222, 2014
16:01 PM
alastairp
yep
2014-10-09 28229, 2014
16:01 PM
alastairp
./waf configure --with-examples
2014-10-09 28233, 2014
16:01 PM
alastairp
should be all you need
2014-10-09 28259, 2014
16:01 PM
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
16:02 PM
ruaok
ouch
2014-10-09 28247, 2014
16:02 PM
ruaok
those better be some pretty yaks
2014-10-09 28243, 2014
16:04 PM
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
16:05 PM
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
16:05 PM
ruaok
don't ask.
2014-10-09 28254, 2014
16:05 PM
alastairp
woo, filename in output!
2014-10-09 28247, 2014
16:07 PM
ruaok
:)
2014-10-09 28204, 2014
16:11 PM
alastairp
hmm. how do you do basename(file) in both posix and windows?
2014-10-09 28208, 2014
16:11 PM
alastairp
in c++
2014-10-09 28233, 2014
16:11 PM
ruaok shrugs
2014-10-09 28245, 2014
16:11 PM
ruaok
those were always part of baseline libraries for whatever project I worked on.
2014-10-09 28208, 2014
16:12 PM
alastairp
yeah
2014-10-09 28214, 2014
16:12 PM
alastairp
don't think there's one here
2014-10-09 28247, 2014
16:12 PM
ruaok
are there ways to determine if you're on windows?
2014-10-09 28253, 2014
16:12 PM
ruaok
using a macro?
2014-10-09 28258, 2014
16:12 PM
alastairp
#ifdef windoes
2014-10-09 28205, 2014
16:13 PM
ruaok
and then #if #else #endif
2014-10-09 28210, 2014
16:13 PM
kepstin-laptop
wow, pytaglib is GPL-3
2014-10-09 28224, 2014
16:13 PM
kepstin-laptop
that's a bit limiting on the licenses of projects that use it...
2014-10-09 28224, 2014
16:13 PM
ruaok
DIR_CONCAT = "/"
2014-10-09 28225, 2014
16:13 PM
ruaok
or
2014-10-09 28232, 2014
16:13 PM
ruaok
DIR_CONCAT = "\\"
2014-10-09 28245, 2014
16:13 PM
ruaok
and then use DIR_CONCAT to join parts.
2014-10-09 28257, 2014
16:13 PM
ruaok
not the best, but gets 99% of the people you care about
2014-10-09 28222, 2014
16:14 PM
alastairp
kepstin-laptop: oh, I didn't see that
2014-10-09 28226, 2014
16:14 PM
alastairp
essentia is agpl-3 :)
2014-10-09 28252, 2014
16:14 PM
ruaok
alastairp: file_name for the key name ?
2014-10-09 28252, 2014
16:14 PM
warp
AGPLv3 \o/
2014-10-09 28255, 2014
16:14 PM
alastairp
ruaok: I'm not joining parts - I'm splitting to get the last. but same process. I know
2014-10-09 28200, 2014
16:15 PM
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
16:15 PM
alastairp
ruaok: in what subkey? metadata->audio_properties
2014-10-09 28225, 2014
16:15 PM
alastairp
?
2014-10-09 28227, 2014
16:15 PM
ruaok
I guess under metadata | tags | file_name ?
2014-10-09 28239, 2014
16:15 PM
ruaok
I think of it more as tag data, not audio.
2014-10-09 28255, 2014
16:15 PM
alastairp
ok
2014-10-09 28259, 2014
16:16 PM
alastairp
CODEC long name `MP3 (MPEG audio layer 3)`
2014-10-09 28206, 2014
16:17 PM
alastairp
winning
2014-10-09 28237, 2014
16:20 PM
ruaok
alastairp:
2014-10-09 28238, 2014
16:20 PM
ruaok
2014-10-09 28247, 2014
16:20 PM
ruaok
I'm planning on making sure those fields exist.
2014-10-09 28253, 2014
16:20 PM
ruaok
think we need to check for more than that?
2014-10-09 28246, 2014
16:21 PM
kepstin-laptop
alright, looks like abzsubmit is running for me now.
2014-10-09 28201, 2014
16:22 PM
ruaok
really? that's scary cool. :)
2014-10-09 28217, 2014
16:22 PM
kepstin-laptop
I guess I should try it on some files now and see if it breaks
2014-10-09 28218, 2014
16:22 PM
alastairp
:)
2014-10-09 28226, 2014
16:22 PM
ruaok
15 tracks!
2014-10-09 28237, 2014
16:22 PM
alastairp
ruaok: yeah, those look like the important ones
2014-10-09 28239, 2014
16:22 PM
ruaok
though kepstin-laptop, pleae stop it for a little while.
2014-10-09 28245, 2014
16:22 PM
alastairp
yeah, I submitted dark side of the moon
2014-10-09 28251, 2014
16:22 PM
kepstin-laptop
I haven't run it over any tracks yet
2014-10-09 28257, 2014
16:22 PM
ruaok
ah, ok.
2014-10-09 28204, 2014
16:23 PM
alastairp
do you realise how long it took me to choose a symbolic first album?
2014-10-09 28210, 2014
16:23 PM
ruaok
so, hang on with any serious running until we get the latest from alastairp.
2014-10-09 28218, 2014
16:23 PM
ruaok
.01 seconds?
2014-10-09 28226, 2014
16:23 PM
kepstin-laptop was just gonna use the album he always uses for testing :)
2014-10-09 28228, 2014
16:23 PM
alastairp
nah, a good minute or so :)
2014-10-09 28246, 2014
16:23 PM
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
16:23 PM
ruaok
I'll put that one on when its submitted for eal.
2014-10-09 28255, 2014
16:23 PM
ruaok
+r
2014-10-09 28211, 2014
16:24 PM
ruaok
alastairp: that gives me a chance to finish the sanity checking.
2014-10-09 28243, 2014
16:24 PM
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
16:25 PM
ruaok nomiates kepstin-laptop
2014-10-09 28213, 2014
16:25 PM
kepstin-laptop
you're using libav as a library, not the command-line tools?
2014-10-09 28242, 2014
16:25 PM
alastairp
yes
2014-10-09 28212, 2014
16:26 PM
alastairp
urg. we're consuming data frame-by-frame though. not sure then how to do it
2014-10-09 28245, 2014
16:26 PM
kepstin-laptop hasn't actually done much with using ffmpeg via the library api :/
2014-10-09 28203, 2014
16:27 PM
kepstin-laptop
I mean, I have a commit in ffmpeg, but that was in a completely unrelated area ;)
2014-10-09 28251, 2014
16:27 PM
alastairp
2014-10-09 28221, 2014
16:29 PM
kepstin-laptop
alastairp: my understanding is that's more for encoding, I dunno if it's populated when decoding?
2014-10-09 28245, 2014
16:29 PM
alastairp
decoding: Set by libavcodec. 0 or some bitrate if this info is available in the stream.
2014-10-09 28253, 2014
16:29 PM
alastairp
so, flac set it to 0, mp3 set it to 192000
2014-10-09 28254, 2014
16:29 PM
kepstin-laptop
ok, then :)
2014-10-09 28203, 2014
16:30 PM
alastairp
let me try ogg and vbr
2014-10-09 28240, 2014
16:31 PM
alastairp
BIT RATE `112000`
2014-10-09 28202, 2014
16:32 PM
alastairp
BIT RATE `162284`
2014-10-09 28219, 2014
16:32 PM
alastairp
well. ruaok, if you're happy with that I'll try and get it into the output
2014-10-09 28222, 2014
16:32 PM
kepstin-laptop
looks like ffprobe gives useful output for opus, vorbis, and vbr mp3 in my testing
2014-10-09 28233, 2014
16:32 PM
alastairp
I think short name for codec? not long_name
2014-10-09 28259, 2014
16:32 PM
ruaok
looks good to me, including short name
2014-10-09 28221, 2014
16:35 PM
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
16:35 PM
ruaok
yep.
2014-10-09 28234, 2014
16:35 PM
alastairp
wav -> BIT RATE `1411200`
2014-10-09 28235, 2014
16:35 PM
alastairp
what?
2014-10-09 28246, 2014
16:35 PM
ruaok
we wont look at that field if lossless = t
2014-10-09 28252, 2014
16:35 PM
alastairp
so
2014-10-09 28205, 2014
16:36 PM
kepstin-laptop
alastairp: that's the exactly correct bitrate for a wav with 16bit 44.1kHz audio...
2014-10-09 28223, 2014
16:36 PM
alastairp
lossless = (decoder == "flac" or decoder == "pcm_s16le") ?
2014-10-09 28226, 2014
16:36 PM
alastairp
kepstin-laptop: right :)
2014-10-09 28244, 2014
16:36 PM
kepstin-laptop
don't forget alac, ape, musepack, etc.
2014-10-09 28251, 2014
16:36 PM
alastairp
yeah
2014-10-09 28208, 2014
16:37 PM
alastairp
so, this depends also on what the persons ffmpeg has
2014-10-09 28223, 2014
16:37 PM
kepstin-laptop
hmm. does ffmpeg do tak decoding yet? I think they added it at some point
2014-10-09 28226, 2014
16:37 PM
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
16:40 PM
ruaok
alastairp: is file_name going to be a list or a single string
2014-10-09 28225, 2014
16:40 PM
ruaok
(everything else in that section is a list)
2014-10-09 28231, 2014
16:40 PM
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
16:40 PM
kepstin-laptop
I don't think I missed any
2014-10-09 28246, 2014
16:40 PM
alastairp
ruaok: that's because taglib did it