PDA

View Full Version : flac -> wav decoding



Michael W. Oliver
2003-11-21, 17:02
Hi folks!

I am beating my head against the wall trying to figure out how to decode
FLAC to WAV. My (current) server doesn't have the juice to transcode
from FLAC to MP3, and since I have more bandwidth than money, I would
like to just decode the FLAC to WAV. I have this in convert.conf:

flc wav * *
flac -dc $FILE$

Ok, so I am trying to open the stream from
http://slimserver:9000/stream.wav and I find out that there is no
'stream.wav'. Next I try stream.mp3 instead (which works, btw, with
flac -> mp3 transcoding, but I don't have the horsepower.. etc..) and I
get the following debug output:


Use of uninitialized value in numeric eq (==) at Slim/Player/Source.pm
line 135.
2003-11-21 18:34:32 realpos 0 calcuated from bytes received: 0 minus buffer fullness: 0
Use of uninitialized value in concatenation (.) or string at Slim/Player/Source.pm line 175.
Use of uninitialized value in concatenation (.) or string at Slim/Player/Source.pm line 175.
2003-11-21 18:34:32 songTime: 0 = (0(realpos) / 0(size) * (duration) * 1(rate)) + (time offset of started stream)
Undefined string: FLC
requested language: EN
failsafe language: EN
2003-11-21 18:34:34 10.0.0.26: Switching to mode play
2003-11-21 18:34:34 openSong on: /usr/local/smbshares/flac_audio_files/04-In_The_Summertime.flc Use of uninitialized value in concatenation (.) or string at Slim/Player/Source.pm line 684.
2003-11-21 18:34:34 openSong: getting duration 214.373333333333, size 21461372, and offset for /usr/local/smbshares/flac_audio_files/04-In_The_Summertime.flc
2003-11-21 18:34:34 checking formats for: flc-mp3-http-10.0.0.26
2003-11-21 18:34:34 ******* Error: Didn't find any command matches ******
2003-11-21 18:34:34 openSong: this is an flc file: /usr/local/smbshares/flac_audio_files/04-In_The_Summertime.flc
2003-11-21 18:34:34 file type: flc format: mp3 Use of uninitialized value in concatenation (.) or string at Slim/Player/Source.pm line 695.
2003-11-21 18:34:34 command: Use of uninitialized value in concatenation (.) or string at Slim/Player/Source.pm line 755.
2003-11-21 18:34:34 Couldn't create command line for flc playback (command: ) for /usr/local/smbshares/flac_audio_files/04-In_The_Summertime.flc
2003-11-21 18:34:34 Couldn't open song. Stopping.
2003-11-21 18:34:34 New play mode: stop
2003-11-21 18:34:34 Stopping and clearing out old chunks for client 10.0.0.26
2003-11-21 18:34:34 10.0.0.26: Current playmode: stop


I am running this on FreeBSD 4.8-RELEASE-p13 with Perl 5.8.2.

Thanks in advance for any information and/or help that you can give!

--
Mike
perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E<G,*");'