![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
|
Windows - Editting Metadata - What's it doing?
So every time I purchase a new audiobook I do the same thing - strip the DRM, convert to MP3 and add the title and author to the file's metadata. I do this by simply right-clicking the file in Windows explorer, choosing properties and under the details tab I enter the new values.
Very straight forward and easy. But slow. When I hit the Apply or OK button I get that little graph animation (the same one you get for copying files) and it takes a couple of minutes. It's as if changing the metadata it's got to read/re-write the whole file - which is ridiculous. Has anyone else noticed this? Is it just me? Am I doing it wrong? |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75
Karma: 90470
Join Date: Apr 2008
Location: Alberta, Canada
Device: Kobo Touch, Kobo Vox, iPad
|
Hi,
Yes, I have noticed that editing the Metadata on audio / video files in Windows File Explorer seems to copy the existing file when updating the metadata. It was bad enough that I looked into a tag editor. I currently use MP3Tag. Ken |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 137
Karma: 2156958
Join Date: Jan 2013
Device: Too many random androids to list
|
Actually, it does have to sort of rewrite the whole file. ID3v1 tags are fixed length and placed at the end (for backwards compatibility) but ID3v2 tags are variable length and placed at the start (for streaming compatibility).
Which means when you add new ones to a file that didn't have any, things like the offset from the beginning of the file where the actual audio really starts have to be recalculated and the entire file rewritten to disk - it'll always take longer. If it really bothers you, don't strip the tags entirely, it'll save you a few seconds here and there. After that though, it gets trickier. Smart tag editors generally pad a little extra room into the tags (filled with null bytes like packaging beans, just there to take up space) so that they take up just a little bit more space than needed - which means if you edit them later, they have some leeway to expand or contract within that space. But if you edit a tag really a lot (like say, you paste the lyrics into the comments field so it goes way over the extra space allotted for it), or you add new tags that weren't there before, it'll probably have to rewrite the file anyway. Generally if you are editing existing tags, and not changing the length of them very much (enough so the "frame" or "chunk" of space it's taking up in the file is the same size), it's possible to do it a lot faster. That said, it's usually safer from a programming point of view to just rewrite the file entirely into a new copy and then remove the old one. I suspect Windows Explorer, since it has to handle a billion types of metadata for all kinds of files, takes the slower but very safe and guaranteed to work route, rather than trying to do the fast but tricky method for every file type it knows about. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
|
Thanks for the info, very useful.
You've inspired me to tweak my conversion script to add the metadata in at the stage when the mp3 is created so there's no extra re-writing of the file. Also I then don't have to do it manually later. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I sync metadata to a Windows 8 tablet? | Beanxx | Devices | 1 | 08-16-2015 09:42 PM |
Error importing/editing metadata with files from Feedbooks - Calibre 1.48 Windows x64 | goyta | Library Management | 5 | 08-10-2014 05:52 AM |
problem editting metadata from version 9.29 and on | Reader53 | Calibre | 0 | 06-09-2013 08:04 AM |
Any way to automate editting metadata? | louwin | Library Management | 4 | 04-24-2012 06:58 PM |
E-paper tablets, for editting documents | SmokeAndMirrors | Which one should I buy? | 11 | 12-06-2011 09:40 PM |