-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tone tagging takes a long time for some files #58
Comments
@jeff47 Thanks for reporting. I already heard of this. Would you be able to (non publicly) provide a file that takes this long so that I can do further investigation? If so, I would invite you to a private github repo where you could upload the file, so we could discuss this with the |
Yes, I'd be happy to. I'm out of town for a few days but when I get back, I'll try to identify a file that reproducibly causes a slowdown. |
Awesome, thank you... let me know if you are ready to share it. |
@jeff47 Did you ever get back to town? I'm a bit worried... |
Haha, sorry! Life got in the way. Let me go back through and see if I can find a troublesome file. |
@jeff47 ok let me know. I'm preparing a new release with lots of improvements in atldotnet, so maybe this will be fixed with these, too. |
OK, can you point me where to upload a file? I think I've got one. |
I've invited you to a private repo, then you can share a One Click Hoster file (e.g. mega.io). I'll have to point out that these files are only to investigate the bug and not meant for any kind of file sharing, so please upload only the files necessary to reproduce it :-) Thank you. |
Please let me know when you've grabbed the files so I can remove them from Mega. |
done, thank you very much. I'll try to investigate... could you provide a full command line that takes long? |
@jeff47 On Linux (Ubuntu) I get the following error when trying to tag these files: tone tag --meta-album test test.m4b
Stream was not readable.
at System.IO.BinaryReader..ctor(Stream , Encoding , Boolean )
at System.IO.BinaryReader..ctor(Stream )
at ATL.AudioData.IO.MP4.read(Stream source, ReadTagParams readTagParams)
at ATL.AudioData.IO.MetaDataIO.prepareWrite(Stream r, TagData tag)
at ATL.AudioData.IO.MetaDataIO.Write(Stream s, TagData tag, ProgressToken`1 writeProgress)
at ATL.AudioData.AudioDataManager.UpdateTagInFile(TagData theTag, TagType tagType, ProgressManager writeProgress)
Cannot access a closed file.
at System.IO.FileStream.get_Length()
at ATL.BufferedBinaryReader..ctor(Stream stream)
at ATL.AudioData.IO.APEtag.read(Stream source, ReadTagParams readTagParams)
at ATL.AudioData.IO.MetaDataIO.prepareWrite(Stream r, TagData tag)
at ATL.AudioData.IO.MetaDataIO.Write(Stream s, TagData tag, ProgressToken`1 writeProgress)
at ATL.AudioData.AudioDataManager.UpdateTagInFile(TagData theTag, TagType tagType, ProgressManager writeProgress) Something with these files seems to be wrong. Are you using linux? |
Hmm, they work here. Could they have been corrupted during the upload or download? I can try to send them again -- do I need a new repo invite? |
@jeff47
You can just reupload and update your issue, you are still member of the private repo :-) |
I'm running Ubuntu on a 64 bit system. It's tone 0.1.5. I renamed the files when I uploaded them to (slightly) obfuscate the contents, and I didn't keep track of which was which. But if doing it by file size is ok, then: |
Ok, it seems we found the problem: dc18bf16b0a3f645f5faabbbdad4b13b9cd2e6ef481a9b0b4482227f89ee1db3 => 274M None of the files I downloaded has the original content. Very strange... Well, I would say you reupload the files and I download them ensuring the hash is correct :-) I'm really sorry you have to do it again... can't say what happened. |
@jeff47 |
tone |
It's still happening, but I think I have a clue! I have some m4b files where tone runs just fine on the initial file, but if I try to add a tag after telling Audiobookshelf (ABS) to embed tags, it takes a long time. Could it be something to do with the tag structure that ABS is creating? Happy to share an untagged/tagged set so you can compare, if you can provide a private way to share. (It's a large file, ~1 Gb, I can try to find a smaller example but I don't have one identified right now.) |
Possibly. I'll get back to you soon, some other things to do atm. I'm going to prepare a github invite for a private repo to share the files. |
On a number of files in my library, tone takes an excessively long time... 45 minutes or more. The files aren't unusually large, and size doesn't seem to be a predictor. I tried running tone with --debug but there was no additional data that was presented. For most of my library, it takes only a few seconds per file.
Are there some additional flags or tips you can suggest to help troubleshoot this problem? I thought it might be a corrupt m4b, but I've gone back and re-encoded using m4b-tools and the result is the same.
The text was updated successfully, but these errors were encountered: