HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: bobgeorge on 2018-04-08 22:13:05

Title: bug attach picture
Post by: bobgeorge on 2018-04-08 22:13:05
Hello,

My FLAC files get corrupted when I attach pictures on them with Foobar2000.
The way I proceed is:
Tagging>attach pictures>Front cover
Then the files are unreadable and their names are changed ending with a ~ symbol.
I never used this codec before, but since I do it I have this problem very often.

Thank you.
Title: Re: bug attach picture
Post by: Case on 2018-04-09 06:33:03
Which version of foobar2000 are you using? There have been some FLAC issues with versions 1.3.11 - 1.3.15, so if you are using such an old version you should upgrade.
Title: Re: bug attach picture
Post by: o-l-a-v on 2018-04-09 06:36:18
What format on the album art? Jpeg?
Try using TagScanner. Though I've never had that problem with foobar2000.
I suspect it has something to do with either the file system, or permissions. ~ usually idicates temporary files.
Title: Re: bug attach picture
Post by: Porcus on 2018-04-09 07:43:26
~ usually idicates temporary files.

At least recent versions of fb2k use .tmp when writing metadata (larger than the padding, so that a new file needs to be created).


Title: Re: bug attach picture
Post by: bobgeorge on 2018-04-09 10:42:18
Thank you for your replies.
Here are more explanations about my issue:

The files names look like xxx.FLA~ and take place in the final directory instead of the valid .flac files.
Sometimes just a few files are corrupted although the other ones are safe, sometimes everything has to been ripped again.
Sometimes everything is ok, but I can't be sure so I'm afraid to use .flac now... it's such a loss of time!
It happened with .png and .jpg. I analyzed the pictures with Windows Defender and there was nothing wrong with them.
My OS is Windows 10.
I have used 1.16 until this morning. I just updated to latest one 1.17.
I'll report if I still have the problem with this new version.
Thank you for Tagscanner, I'll report error messages.
Title: Re: bug attach picture
Post by: Case on 2018-04-09 14:33:24
foobar2000 doesn't use such syntax for temporary filenames. Are your files on some network storage? It almost looks like the storage system alters the names on its own. You could use Process Monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to log the tagging operation and share a log that shows the error. If some program on your computer is reponsible it would be visible in the log.
Title: Re: bug attach picture
Post by: bobgeorge on 2018-04-18 11:48:26
Hello,

I had the problem again under foobar2000 v1.3.17.

Here is the error message:
Attached picture editing failure on "C:\Users\stephane\Music\Prince\HITnRUN Phase Two\08-When She Comes.flac": Object not found
Attached picture editing failure on "C:\Users\stephane\Music\Prince\HITnRUN Phase Two\10-Black Muse.flac": Object not found
Attached picture editing failure on "C:\Users\stephane\Music\Prince\HITnRUN Phase Two\11-Revelation.flac": Object not found

The files are in the folder.
Filenames got changed into:
08-WHE~1.FLA
09-SCR~1.FLA
etc...
Title: Re: bug attach picture
Post by: Case on 2018-04-18 13:36:18
That makes more sense. The file extensions don't change to FLA~ but file names somehow get truncated to the short 8.3 format.
Title: Re: bug attach picture
Post by: Porcus on 2018-04-18 14:31:00
The 8.3 "short format" is a "fallback option" in Windows - I have no idea why that happens on Windows 10 though.
A "reference": https://en.wiktionary.org/wiki/Micros~1

Try to open these .FLA files in foobar2000. Likely they are just OK FLAC files, except the filename. Check it - with foobar2000, this component is a must: http://www.foobar2000.org/components/view/foo_verifier
A standalone application that does pretty much the same thing (for FLAC - for mp3 it will be very, very picky about the metadata blocks): Audiotester from http://www.vuplayer.com/other.php
 
Title: Re: bug attach picture
Post by: Case on 2018-04-18 18:46:41
@bobgeorge , can you use Process Monitor (https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to monitor the next tagging you do and if you hit the file renaming issue, share the logs from the sessions?
Title: Re: bug attach picture
Post by: m19911004 on 2020-07-03 09:31:30
 Hi ! I have the same problem, too. But I fix it by uncheck the "read only" box of the music files!
Sometimes we are prone to forget the very basic setting LOL.
Hope this helps you and those found this page.