Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FLAC 1.2.0 decodes to read-only .wavs? (Read 5330 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FLAC 1.2.0 decodes to read-only .wavs?

I tracked a bug in Omni Encoder down to the fact that flac (probably just 1.2.0, maybe others) seems to be decoding to .wav files that have the read-only flag set on them. For now i'm just unsetting the bit after decoding, but why does it do this? It doesn't appear that FLAC saves encoded files with the read-only bit; it just decodes that way. Weird.

FLAC 1.2.0 decodes to read-only .wavs?

Reply #1
Are the source .flac files read-only, by any chance?
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848 --scale 0.5 | FLAC -5 -e -p -b 512 -P=4096 -S- (having set foobar to output 24-bit PCM; scaling by 0.5 gives the ANS headroom to work)

FLAC 1.2.0 decodes to read-only .wavs?

Reply #2
Are the source .flac files read-only, by any chance?


heh, honestly - it might have been. Why this didn't occur to me I don't know, but it would explain why i had to use someone else's FLAC file to reproduce it


FLAC 1.2.0 decodes to read-only .wavs?

Reply #4
flac clones the permissions from the source file to the destination file, so probably the input was read-only.

FLAC 1.2.0 decodes to read-only .wavs?

Reply #5
flac clones the permissions from the source file to the destination file, so probably the input was read-only.

can we get a switch to over-ride this, that would make all decoded wav's write allowed, regardless of the input file?

when transcoding from flacs sourced on optical media it gets annoying as the wavs aren't automatically deleted, and when i don't realise straight away it can cause low disk space problems.

FLAC 1.2.0 decodes to read-only .wavs?

Reply #6
ok, I'll probably add a switch for this.  metaflac already has a similar one.