#musicbrainz

/

      • D4RK-PH0ENiX joined the channel
      • Nyanko-sensei joined the channel
      • JesseW joined the channel
      • The_Freso joined the channel
      • JoeLlama joined the channel
      • atsampson joined the channel
      • pbryan joined the channel
      • d4rkie joined the channel
      • randybias joined the channel
      • Audioburn joined the channel
      • hibiscuskazeneko joined the channel
      • KRSCuan joined the channel
      • STalKer-X joined the channel
      • randybias joined the channel
      • cacabuzztoes joined the channel
      • ujjwal joined the channel
      • cacabuzztoes joined the channel
      • Audioburn joined the channel
      • simukis_ joined the channel
      • shredpub joined the channel
      • JesseW joined the channel
      • yeeeargh joined the channel
      • ruaok joined the channel
      • simukis_ joined the channel
      • WizJin joined the channel
      • reosarevok joined the channel
      • v6lur joined the channel
      • simukis_ joined the channel
      • CatCat
        Now grooving to: Nicholas Hooper ~ Professor Umbridge (2:32) (from Harry Potter and the Order of the Phoenix) (2007)
      • Yurim joined the channel
      • ruaok joined the channel
      • chungy joined the channel
      • madmouser1 joined the channel
      • ruaok joined the channel
      • reosarevok joined the channel
      • simukis_ joined the channel
      • Audioburn joined the channel
      • simukis_ joined the channel
      • ujjwal joined the channel
      • jesus2099 joined the channel
      • jesus2099
        JonnyJD_: Hi Jonny, if you’re here i have something that you must know
      • i think you know about it but i was wondering why we wouldn’t have any FreeDB→DiscID convertor, but it seems that the info that we have for the length of last track is not exact http://freedb.org/freedb/rock/570d1c08 for all tracks we can have the length in frame but for last track, where we can use the total length in second, we are missing the frames, the total length in frames+1 is then floored to lowest second…
      • it would explain why my little FreeDB importer i was writing was never matching our releases… — "# Disc length: N" in http://ftp.freedb.org/pub/freedb/latest/DBFORMAT
      • mezod joined the channel
      • hibiscuskazeneko joined the channel
      • i don’t know if you read the logs… it’s a pity their discid format is not storing either the total frame count or the last frame number instead of storing the total length in seconds (which is more human readable but what human is reading the raw data anyway)… this must have been covered already by many previous discussions…
      • btw “total frame count” or “the last frame number” means the same :) — see you next time, i thought you were here…
      • DarkAudit joined the channel
      • hibiscuskazeneko
        …I think I may have unintentionally stuck my foot in my mouth http://musicbrainz.org/edit/31916667
      • johtso joined the channel
      • Mineo
        want some ketchup?
      • JonnyJD_
        jesus2099: not sure what you are talking about. When you just have the ID (either FreeDB or DiscID) you can't generate the other ID (without ID lookup on the server). Both IDs are or include hashes so are not reversible.
      • but the MB server has the full TOC so server-side a "conversion" somewhat works. Except that that the server has two different FreeDB IDs. One is the "real" CDDB ID which often has collisions (meaning there are multiple DiscIDs that match)
      • And the other one is a "fake" misc FreeDB ID that is just an encoding of the "medium ID (number)" on the MB server and a unique ID on the MB server
      • If you have the TOC or CD locally, you can calculate FreeDB and DiscID. That is what libdiscid does.
      • So I have no clue what you want with a FreeDB->DiscID converter. Without access to a full TOC (server or local) it doesn't work and with server access it is not necessarily unique
      • hibiscuskazeneko joined the channel
      • hibiscuskazeneko
        Mineo: I would, but I'm fresh out of hash browns.
      • JonnyJD_
        you do know about http://musicbrainz.org/doc/FreeDB_Gateway I guess. Which is a search, not a lookup, since it is not unique.
      • I mean, there is a reason we are not just using FreeDB IDs.. they don't work very well
      • Nyanko-sensei joined the channel
      • note that a FreeDB lookup does send the freeDB ID *and* the TOC so the results given by the FreeDB gateway are somewhat okay
      • jesus2099 joined the channel
      • jesus2099
        hi JonnyJD_:  ! :)
      • i was generating a TOC submission URL (which gives the DISCID MB style) from the mb.org/freedb/xxx/xxx page
      • but the last track would always be exact seconds, without remaining frames / milliseconds…
      • JonnyJD_
        what?
      • jesus2099
        i wanted to import complete track length (not only seconds) from that source… it could have been handy when no CD in hands
      • JonnyJD_
        you have a TOC submission URL. Okay, normally that is a DiscID plus offsets/TOC.
      • what about mb.org/freedb now?
      • can you give an example?
      • jesus2099
      • http://freedb.org/freedb/rock/570d1c08 is missing the last track lmengtgh we can only compute up to seconds, not frames if i understood completely
      • but there is another FreeDB request that could give me TOC ?
      • JonnyJD_
        No, I don't know of any request.
      • jesus2099
        Yes i’ve read their docs it seems they just don’t need that precision, they mostly care of the start of each track frame accurately but not the CD end
      • (only seconds)
      • JonnyJD_
        what you need to do is use the FreeDB gateway with the information provided (given FreeDB TOC, which is inexact as you noticed) then get a list of results and choose the best
      • reosarevok joined the channel
      • well, CDDB was never meant to be an input for other DBs or for other IDs
      • you just can't "calculate" a usable MB DiscID from FreeDB info
      • jesus2099
        i’ve lost my time but not completely, now i know that there are 75 frames per seconds in an audio CD :) (it’s said to compute to the famous 44100 khz)
      • JonnyJD_
        usable in a sense that you get the result you want (in general, you might be lucky sometimes)
      • jesus2099
        yes, we can’t, but we are only missing ONE piece of information, a pity… ;)
      • jesus2099 YES WE CAN'T
      • JonnyJD_
        yes, that is why the FreeDB gateway works somewhat.
      • Didn't we have a way when adding a release by MB discid to use the track titles from FreeDB?
      • jesus2099
        we do
      • but we would only set secondes… i was just looking for a way to get milliseconds for all tracks (i’m missing last track here)
      • JonnyJD_
        this way works, because you have the full TOC so you can match TOC -> MB Discid *and* FreeDB ID
      • with that thing we are not using anything from FreeDB except titles. The TOC (with frames) comes from the user trying to add a release with MB Discid + TOC
      • meaning: the only good way to import from FreeDB is when you have the disc in your drive
      • jesus2099
        from FreeDB we will not have full TOC, last track will only be in rounded to inferior second
      • yes
      • i was precisely doing stuf for when i don’t have disc in hands ;)
      • JonnyJD_
        you have a link to a WIP of your "import from FreeDB" userscript?
      • jesus2099 doesn’t usually use MB→my‐stuff (tagging) but rather my‐stuff→MB (storing info in the music encyclopedia)
      • you basically need to implement the CDDB protocol to check if the release is already in MB (and give the user a list, since it is not unique)
      • jesus2099
        i have deleted it… it was hopeless… but it was almost same as my COPY_TOC code, just the parsing and compute varied a little
      • my user scripts was launched from https://musicbrainz.org/freedb/rock/570d1c08 and would add another button to lead to http://freedb.org/freedb/rock/570d1c08 and then compute
      • JonnyJD_
        jesus2099: This is what you need to parse and list with your usercript: http://freedb.musicbrainz.org/~cddb/cddb.cgi?cm...
      • somethink like "if the release is already in that list.. don't import it from FreeDB"
      • reading that list is mandatory though to check if the release is already in MB
      • jesus2099
        what is B20DEE0B ?
      • JonnyJD_
        the FreeDB ID
      • note that the "misc" results have different (fake) FreeDB IDs
      • so for a "normal" CDDB result you would have the same FreeDB ID in the results but with different genres (instead of "misc")
      • jesus2099
        all this CD stuff is interesting… :)
      • JonnyJD_
        jesus2099: FYI: this is the same query when using FreeDB.org: http://freedb.freedb.org/~cddb/cddb.cgi?cmd=cdd...
      • (freedb.org needs the handshake, our gateway doesn't) and the result looks like what I called a "normal" result
      • oh and that example is bad in terms of: that freeDB ID in the query doesn't match the TOC given in the query.. :-/
      • loujine joined the channel
      • this would be the query with a correct FreeDB ID: http://freedb.freedb.org/~cddb/cddb.cgi?cmd=cdd...
      • jesus2099
        thank you for info, i’m always interested in CD stuff. but this thing is useful for track names but i take track names from my release or photos… ;) i was just looking for detailed track times.
      • JonnyJD_
        and the same (corrected) query to our gateway: http://freedb.musicbrainz.org/~cddb/cddb.cgi?cm... (note the rock entry on the bottom, which is the only real FreeDB ID)
      • well, for track times you can forget about CDDB
      • jesus2099
        JonnyJD_: in my setup, isrcsubmit.bat launches my editor with isrcsubmit.py… would it be harmful in general to call “python isrcsubmit.py” instead of “isrcsubmit.py” in that .bat file ?
      • « you can forget about CDDB » yes :)
      • (for *last* track time)
      • JonnyJD_
        jesus2099: it does the same thing
      • chirlu` joined the channel
      • jesus2099
        It’s special probably to my PC to have *.py associated to an editor…
      • JonnyJD_
        especially, just "isrcsubmit.py" might not work on every windows setup
      • jesus2099
        so maybe it’s safer to be specific and call the “python.exe isrcsubmit.py”… ?
      • Yurim joined the channel
      • JonnyJD_
        well, if you just install python the normal way you even might have to doe "C:/Programs/Python/Python.exe isrcsubmit.py"..
      • Python doesn't install itself in the PATH either I think. (or add to the PATH)
      • from what I remembered that .bat file worked for me though
      • jesus2099
        (i checked that option but) it was optional indeed…
      • JonnyJD_
        hm, I don't even remember having such an option, but that was quite a while ago
      • jesus2099
        maybe it’s better to leave it as is… i thought i asked (checked by default) python to associate *.py with itself but it seems that my emeditor settings kept its setting
      • JonnyJD_
        so the bat file doesn't work for you out of the box?
      • jesus2099
        no but it’s a special case…
      • before i told windows to open all *.py with emeditor, it would work.
      • JonnyJD_
        not sure why you would associate *.py with an editor as default action. There is that "edit" action..
      • and with Vim I normally just install "edit with vim" to the context menu
      • jesus2099
        i don’t remamber why… but i have just installed python… usually i just read *.py files to learn some stuff (in my editor) but i was/am not really using python…
      • JonnyJD_
        yes... but don't do that :-D
      • you wouldn't do that with .exe files either (though they are not fun to read)
      • jesus2099
        yeah yeah yeah… ;)
      • chirlu`
        In a disassembler?
      • jesus2099, I finally intal
      • *installed the Super Mind Control.
      • jesus2099
        omg, who will you remote conrtol, now ?
      • chirlu`
        I had long been in doubt, because of the many components. :)
      • jesus2099
        yes… it’s scary…
      • chirlu`
        But it works fine so far.
      • jesus2099
        but i had so many little scripts… i stil want to merge some others in there… but i don’t know…