not sure if it's a bug. Some minutes ago I didn't even know fingerprinting from a pipe is supposed to work
2014-03-01 06054, 2014
Zastai
yes, but if it also doesn't work on an oherwise valid WAV file...
2014-03-01 06008, 2014
JonnyJD
maybe it nearly works, or some format need a little more input. possibly I can prepend the length somehow
2014-03-01 06023, 2014
JonnyJD
no, it works like `fpcalc cdda.wav`
2014-03-01 06030, 2014
JonnyJD
just not over a pipe
2014-03-01 06032, 2014
Zastai
ah ok
2014-03-01 06041, 2014
Zastai
well, curl could be waiting until the file is transferred (to memory or a temp file) before sending it to its output; in that case, fpcalc's input processing may work "by accident"
2014-03-01 06032, 2014
blast_hardcheese joined the channel
2014-03-01 06003, 2014
simukis_ joined the channel
2014-03-01 06054, 2014
JonnyJD
well, at least not in my case `curl http://kraehen.org/tmp/cdda.wav | fpcalc -` also fails both (fpcalc with the same error and curl with some mismatch Oo)
2014-03-01 06000, 2014
JonnyJD
http://pastebin.com/ct6gTzKS curl: (23) Failed writing body (1157 != 1440) possibly my fault, because I didn't make sure the file type is given correctly
2014-03-01 06035, 2014
blast_hardcheese
I'm having some really frustrating results attempting to build the musicbrainz server inside Docker
2014-03-01 06007, 2014
blast_hardcheese
The command that installs the perl deps fills up / with all kinds of garbage, and subsequent commands don't actually work.
2014-03-01 06014, 2014
JonnyJD
ah okay, the curl/wget error is probably just because fpcalc closes before curl/wget can push the whole file to the pipe
2014-03-01 06039, 2014
blast_hardcheese
Is this behaviour something someone else has wrestled with, or should I ask somewhere else?
2014-03-01 06053, 2014
blast_hardcheese
I've already asked #perl, they couldn't figure it out.
2014-03-01 06059, 2014
Freso
blast_hardcheese: #musicbrainz-devel is generally more suited for these questions.
2014-03-01 06013, 2014
blast_hardcheese
Freso: Ok, thanks
2014-03-01 06023, 2014
Freso
However, it's also the weekend (and in the middle of the night for the main developers), so answers may still be slow.
2014-03-01 06037, 2014
blast_hardcheese
Well, it is midnight for me as well, I should probably sleep ;)
2014-03-01 06048, 2014
Freso
OTOH, it's the middle of the night for the main devs, so they may very well be around. :p
2014-03-01 06050, 2014
blast_hardcheese
I was really hoping to get this built today, this is day three of debugging.
2014-03-01 06015, 2014
JonnyJD
when I encode a flac from cdda.wav `cat cdda.flac | fpcalc -` works. So it just doesn't work with wav and needs to know the length/duration of the wav somehow
2014-03-01 06054, 2014
mokes joined the channel
2014-03-01 06032, 2014
JonnyJD
for anybody still interested: `cdparanoia 1 - | flac - | fpcalc -` works, too
2014-03-01 06000, 2014
Freso
JonnyJD: Working on the CD AcoustID submitter? :)
2014-03-01 06056, 2014
JonnyJD
wouldn't say "working" more like playing with the basica around it. I was quite interested when luks mentioned calculating from pipe already works ;-)
2014-03-01 06022, 2014
JonnyJD
I do have another algorithm to implement this weekend..
2014-03-01 06003, 2014
Freso
:)
2014-03-01 06009, 2014
JonnyJD
Freso: an idea where I should put this informatin about piping from CD?
2014-03-01 06035, 2014
Freso
Uh. The wiki? :/
2014-03-01 06051, 2014
JonnyJD
it really sounds like "acoustidsubmit" can work, but I won't work at it that soon
2014-03-01 06053, 2014
Freso
Submit a patch for fpcalc's README?
2014-03-01 06013, 2014
mokes joined the channel
2014-03-01 06053, 2014
JonnyJD
hm, not sure if its "good enough" to commit already
2014-03-01 06013, 2014
mokes joined the channel
2014-03-01 06035, 2014
JonnyJD
and wiki: doc/AcoustID?
2014-03-01 06011, 2014
Freso shrugs
2014-03-01 06014, 2014
Freso
I've no idea. :)
2014-03-01 06043, 2014
JonnyJD
if somebody feels like blogging this, that would also be a start (and make somebody implement something) I can't prepare a full blog post right now
2014-03-01 06039, 2014
JonnyJD
maybe I do it exactly the same I did with isrcsubmit: start with posting command lines in the forum
2014-03-01 06002, 2014
JonnyJD
ah and Lotheric: ^ (getting fingerprints directly from CD is possible)
2014-03-01 06059, 2014
JonnyJD
`cdparanoia 1 - | flac - | fpcalc -`, probably needs more tweaking, but works (track 1 that is)
2014-03-01 06054, 2014
JonnyJD
first thing to change would probably lowering the "paranoia level" to make reading faster. We don't need to make sure every bit is as on disc
2014-03-01 06014, 2014
JonnyJD
I can't even find where pyacoustid is linked (python web service wrapper)
2014-03-01 06045, 2014
JonnyJD
sampsyo: ^ (maybe you are interested in this, since a acoustdicsubmit (from CD) would probably use your library) Or maybe your tool already can do that and I just didn't know
2014-03-01 06039, 2014
HibiscusKazeneko joined the channel
2014-03-01 06025, 2014
rocker joined the channel
2014-03-01 06034, 2014
rocker_ joined the channel
2014-03-01 06003, 2014
sv2241 joined the channel
2014-03-01 06059, 2014
adhawkins
Hi guys. If I make an edit to rename a release group, does that rename releases in that group too, or do I need to make a further edit?
Maybe some student is bored in between semesters and makes something like it
2014-03-01 06007, 2014
simukis_1 joined the channel
2014-03-01 06052, 2014
Zastai
i'm going to have a quick nose around in the fpcalc sources. I think it should be possible to adjust it to handle being run as a filter
2014-03-01 06053, 2014
Zastai
incidentally jonny, cdparanoia also supports ripping to aiff/aifc instead of wav - does that help fpcalc?
2014-03-01 06036, 2014
JonnyJD
Zastai: cdparanoia -f and -a work, thanks for the tip
2014-03-01 06054, 2014
Zastai
so no need for flac that way? then i'll stop looking into fpcalc sources :-)
2014-03-01 06053, 2014
JonnyJD
Zastai: yes, no need for flac
2014-03-01 06010, 2014
Gentlecat joined the channel
2014-03-01 06002, 2014
JonnyJD updated the forum post
2014-03-01 06053, 2014
KillDaBOB joined the channel
2014-03-01 06016, 2014
simukis_ joined the channel
2014-03-01 06038, 2014
JonnyJD_hex joined the channel
2014-03-01 06052, 2014
JonnyJD_kvirc joined the channel
2014-03-01 06007, 2014
Zastai
i'm seeing triple
2014-03-01 06041, 2014
JonnyJD_kvirc
yeah, sorry about that. I am testing IRC programs on my Laptop
2014-03-01 06043, 2014
JonnyJD_hex
hexchat looks the best so far, but KVIrc has a lot of features and 1-2 I like..
2014-03-01 06039, 2014
Zastai
looks like fpcalc relies on ffmpeg's libavresample api for opening/readig files/pipes, so nothing to fix there for wav. still, might mean that a newer ffmpeg fixes even the wav case
2014-03-01 06002, 2014
Zastai
i only use irc occasionally for #musicbrainz, so the freenode webchat is good enough
2014-03-01 06044, 2014
JonnyJD
ffmpeg 2.1.1 on my end
2014-03-01 06057, 2014
simukis_ joined the channel
2014-03-01 06058, 2014
JonnyJD__hex joined the channel
2014-03-01 06003, 2014
JonnyJD__kvirc joined the channel
2014-03-01 06036, 2014
JonnyJD_ joined the channel
2014-03-01 06012, 2014
JonnyJD__hex
Zastai: I really think the problem isn't with the tools, but that WAV files inherently just don't have a header telling about lenght and fpcalc needs the length at start
2014-03-01 06042, 2014
Zastai
Maybe - but not sure why it _needs_ the length
2014-03-01 06034, 2014
Zastai
in any case, it works for cd ripping with aiff/aifc so the point is mostly moot
2014-03-01 06038, 2014
JonnyJD__kvirc
maybe it's not the length, just some kind of header to say what file it is
2014-03-01 06029, 2014
Zastai
nah; there's other errors it throws for unknown audio streams; it will already have been past that
2014-03-01 06004, 2014
JonnyJD__kvirc
well, at least for the cdparanoia "backend" it is no issue.
2014-03-01 06013, 2014
JonnyJD__hex
finding a command line backend on Windows might be a problem, but that is a TODO for later..
2014-03-01 06035, 2014
luks
Zastai: it needs the length because the acoustid service needs the length
2014-03-01 06004, 2014
JonnyJD__hex
luks, but does it need the length up front?
2014-03-01 06004, 2014
luks
maybe it doesn,t it's probably just how wav demuxing in ffmpeg works
2014-03-01 06049, 2014
luks
but the point is, if it can't get the length at the start, it won't get it in the middle
2014-03-01 06000, 2014
luks
and it never gets to the end, because fpcalc closes the pipe after 120 seconds
2014-03-01 06010, 2014
JonnyJD__hex
ah okay
2014-03-01 06012, 2014
JonnyJD__hex
didn't think about that. So it is a conceptional problem with WAV/RAW data
2014-03-01 06017, 2014
luks
yesx
2014-03-01 06043, 2014
luks
but I think that WAV generally does have the total number of samples in the header
2014-03-01 06003, 2014
luks
so I think it's not the same problem as with RAW files, at least in general
2014-03-01 06042, 2014
Zastai
could be that ffmpeg chooses not to trust the sample count for its get_av_length function
2014-03-01 06000, 2014
Zastai
(or whatever it's called)
2014-03-01 06006, 2014
luks
maybe
2014-03-01 06036, 2014
Zastai
jonny, i know cdrdao does commandline extraction on windows -not sure how maintained it is though
2014-03-01 06010, 2014
Zastai
not very it seems- last release is from 2009
2014-03-01 06018, 2014
JonnyJD__hex
Zastai, cdrdao only theoretically works on Windows. As in: only very few users will have a working installation, I guess.
2014-03-01 06050, 2014
Zastai
for reading too? its writing will be driver-dependent of course, but that's not needed
2014-03-01 06001, 2014
JonnyJD__hex
Never tried it, but in theory I also use it as a backend with isrcsubmit on Windows
2014-03-01 06002, 2014
JonnyJD__hex
Well, I think one of the problems was that no Windows build is available or something like that