Bug 1030 - FLAC decoding parameters could be improved to avoid bug
: FLAC decoding parameters could be improved to avoid bug
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Transcoding
: unspecified
: All All
: P2 minor (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-10 14:55 UTC by Jim
Modified: 2008-08-18 10:53 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim 2005-03-10 14:55:49 UTC
This effects all current & beta versions.

If you use a hash at the start of a filename it will fail with FLAC decoding,
e.g. file "- Please Please Me.flac" would fail.  Try it yourself from a command
line.  Whilst they are ugly and extremely rare (I found my first 1 yesterday)
they are still valid Windows filenames, however reading the FLAC documentation
comes up with a solution (http://flac.sourceforge.net/documentation.html#flac )

<quote>
To encode or decode files that start with a dash, use -- to signal the end of
options, to keep the filenames themselves from being treated as options:

    * flac -V -- -01-filename.wav
</quote>

So for example this statement in convert.conf:

flc wav * *
	[flac] -dcs --force-raw-format --endian=little --sign=signed --skip=$START$
--until=$END$ $FILE$

Should be changed to:

flc wav * *
	[flac] -dcs --force-raw-format --endian=little --sign=signed --skip=$START$
--until=$END$ -- $FILE$


A rare problem and of course most would change the filename, but hope it helps
and is implemented.
Comment 1 Blackketter Dean 2005-03-11 20:23:51 UTC
kevin, can you make this change along with your other convert.conf changes?  thx.
Comment 2 KDF 2005-03-11 20:59:55 UTC
done r2345