Closed GOATS2K closed 1 month ago
Roger that. I'm gonna take care of it in a few weeks as I'm currently on holidays 😎
Enjoy your holiday!
Hi there~
Maybe I'm out of luck, but I just tried on two very different FLAC files, and suceeded the check after adding the cover.
Could you please send me that FLAC file you're using through a 3rd party file hosting service? My address is (my Github username) [at] (not-cold)mail [dot] com
Did you use the latest flac version? I've found the strictness to vary a bit between versions.
On Fri, 2 Aug 2024 at 21:52, Zeugma440 @.***> wrote:
Hi there~
Maybe I'm out of luck, but I just tried on two very different FLAC files, and suceeded the check after adding the cover.
Could you please send me that FLAC file you're using through a 3rd party file hosting service? My address is (my Github username) [at] (not-cold)mail [dot] com
— Reply to this email directly, view it on GitHub https://github.com/Zeugma440/atldotnet/issues/272#issuecomment-2266130728, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUV7F5KXROJ7HPTSQ6DZPPWPHAVCNFSM6AAAAABKY6SCM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRWGEZTANZSHA . You are receiving this because you authored the thread.Message ID: @.***>
I used the flac command line exe v1.4.3
Okay, I'll send you the files!
On Sat, 3 Aug 2024 at 10:28, Zeugma440 @.***> wrote:
I used the flac command line exe v1.4.3
— Reply to this email directly, view it on GitHub https://github.com/Zeugma440/atldotnet/issues/272#issuecomment-2266652753, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUVWUFV2RSU4BZCLDYLZPSPEFAVCNFSM6AAAAABKY6SCM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRWGY2TENZVGM . You are receiving this because you authored the thread.Message ID: @.***>
Check your email! :)
Thanks for the files (let's call them OK file and KO file)!
flac -t
detecting the KO file as corrupted.I'll fix that very soon and let you know~
PS : I noticed you're calling Track.Save()
inside an async
method. Did you see there's a Track.SaveAsync()
method?
Yes, however I recalled that SaveAsync was slower than sync Save - so I use the sync Save method instead.
That sounds about right, I store the general metadata first and then the artwork if it is present, so that explains why saving it twice reproduces the issue. Thanks for figuring it out!
On Sun, 4 Aug 2024 at 12:00, Zeugma440 @.***> wrote:
Thanks for the files (let's call them OK file and KO file)!
- I can reproduce flac -t detecting the KO file as corrupted.
- I cannot reproduce your issue by embedding a cover in the OK file once.
- I can reproduce your issue by embedding a cover in the OK file twice 😅.
I'll fix that very soon and let you know~
PS : I noticed you're calling Track.Save() inside an async method. Did you see there's a Track.SaveAsync() method?
— Reply to this email directly, view it on GitHub https://github.com/Zeugma440/atldotnet/issues/272#issuecomment-2267500227, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUV2GQH3CQGJYQICDTDZPYCWLAVCNFSM6AAAAABKY6SCM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGUYDAMRSG4 . You are receiving this because you authored the thread.Message ID: @.***>
Fix is done; however I have to tell you that your code will add multiple versions of the same picture to your file, as you call track.EmbeddedPictures.Add(pictureEmbed);
on top of a file that might already have that image embedded, and FLAC specs allow for multiple front covers inside the same file.
I recalled that SaveAsync was slower than sync Save
That's for sure. However, as you're working on FLAC files, did you customize Settings.FileBufferSize
to something bigger than the default, say 2MB? That one setting plays a big role in performance.
Yep, changing buffer sizes made a huge difference in performance. Looking forward to trying out your fix soon! :)
On Sun, 4 Aug 2024 at 16:07, Zeugma440 @.***> wrote:
Fix is done; however I have to tell you that your code will add multiple versions of the same picture to your file, as you call track.EmbeddedPictures.Add(pictureEmbed); on top of a file that might already have that image embedded, and FLAC specs allow for multiple front covers inside the same file.
I recalled that SaveAsync was slower than sync Save
That's for sure. However, as you're working on FLAC files, did you customize Settings.FileBufferSize to something bigger than the default, say 2MB? That one setting plays a big role in performance.
— Reply to this email directly, view it on GitHub https://github.com/Zeugma440/atldotnet/issues/272#issuecomment-2267574923, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XURV3FXQZQLY2VXDXWDZPY7RZAVCNFSM6AAAAABKY6SCM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRXGU3TIOJSGM . You are receiving this because you authored the thread.Message ID: @.***>
You can try it with today's v5.26.
Please close the issue if it works on your side~
Yep, that works! Thank you for the fix!
The problem
The FLAC integrity test fails on files with artwork that is embedded by ATL.
Environment
Details
You can reproduce this by first finding a FLAC file that passes
flac -t file.flac
.Then using ATL to embed artwork like this:
Observe that
flac -t
now fails with the following error: