Skip to main content

Topic: FLAC 1.2.0 decodes to read-only .wavs? (Read 3478 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Jebus
  • [*][*][*][*][*]
  • Developer
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.

  • Nick.C
  • [*][*][*][*][*]
  • Developer
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 1| FLAC -5 -e -p -b 512 -P=4096 -S- ~= 320kbps

  • Jebus
  • [*][*][*][*][*]
  • Developer
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

  • Delerious
  • [*]
FLAC 1.2.0 decodes to read-only .wavs?
Reply #3

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


  I haven't noticed it here either - unless I decode from CD/DVD.

J

  • jcoalson
  • [*][*][*][*][*]
  • Developer
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.

  • trev
  • [*][*]
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.

  • jcoalson
  • [*][*][*][*][*]
  • Developer
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.

  • trev
  • [*][*]
FLAC 1.2.0 decodes to read-only .wavs?
Reply #7
ok, I'll probably add a switch for this.  metaflac already has a similar one.

that would be great! thanks