PDA

View Full Version : How to play 5.1 Flac files? SB3



Sam Lowry
2010-04-15, 11:05
I finally have a surround-sound setup and would like to try playing some FLACs through my SB3. Unfortunately the two files I have tried, have done nothing. They never play. I couldn't find a basic primer about setting up the SB3 to do this. I thought it was automatic. Are there certain types of 5.1 content that will/won't work?

Any tips?
Thanks,
SL

What happened to the SB Classic forum?

Phil Leigh
2010-04-15, 11:23
I finally have a surround-sound setup and would like to try playing some FLACs through my SB3. Unfortunately the two files I have tried, have done nothing. They never play. I couldn't find a basic primer about setting up the SB3 to do this. I thought it was automatic. Are there certain types of 5.1 content that will/won't work?

Any tips?
Thanks,
SL

What happened to the SB Classic forum?
There never was an SB Classic forum (likewise Transporter...)
Anyway, I presume you have some 5.1 flacs that you would like to play on your AV amp via one of its digital inputs, s/pdif or optical?

It all depends how those flacs were created - you need to read this LONG thread...

http://forums.slimdevices.com/showpost.php?p=72541&postcount=1

Mnyb
2010-04-15, 11:29
They can not really *be* 5.1 FLAC i think flac supports 8 channels or what.

One single spdif can only carry 2ch PCM stereo or a stream that is DTS or DD or mpeg

Read the very long tread suggested by phil

But if you are trying to play 5*24/48 lossles files you can give up now, the end result is lossy DTS or DD encoding, but it is 5.1 and sound really ok.

michael123
2010-04-15, 13:24
Just downmix with Sox, pass '-c2'



# FLAC output starts here

flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -v0.995 --buffer 32768 -q -t wav - -t flac -C0 -b24 -c2 -r96000 - polyphase -cutoff 1.0

flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -v0.995 --buffer 32768 -q -t wav - -t flac -C0 -b24 -c2 -r96000 - polyphase -cutoff 1.0


I am curious why Logitech do not do that by default, there are quite a few 5.1 flacs

jbird21
2010-04-16, 07:29
Just downmix with Sox, pass '-c2'



# FLAC output starts here

flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -v0.995 --buffer 32768 -q -t wav - -t flac -C0 -b24 -c2 -r96000 - polyphase -cutoff 1.0

flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -v0.995 --buffer 32768 -q -t wav - -t flac -C0 -b24 -c2 -r96000 - polyphase -cutoff 1.0


I am curious why Logitech do not do that by default, there are quite a few 5.1 flacs

how can I do this?
running SBS 7.4.1
ubuntu 8.04

MadScientist
2010-04-16, 07:36
If you really do want to play 5.1 FLACs, then the Dune players are the only devices I've seen that provide native MC FLAC support. You would need a processor/amp with HDMI input of course.

http://dune-hd.com/hd_players/111-dune-bd-prime-3.0.html

MS

michael123
2010-04-16, 07:42
Just add the content above as-is to custom-convert.conf (in server/plugins directory), modifying r96000 by r44100.
I think it shall work

jbird21
2010-04-16, 09:13
Just add the content above as-is to custom-convert.conf (in server/plugins directory), modifying r96000 by r44100.
I think it shall work


thanks for your reply
I see this in: convert.conf(/etc/squeezeboxserver)
my plugins directory looked empty....& I didn't see a custom-convert.conf

# FLAC output starts here

#mp3 flc * *
# [lame] --mp3input --decode -t --silent $FILE$ - | [flac] -cs --totally-silent --compression-level-0 -

flc flc * *
-

aif flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$ | [sox] -q -t flac - -t flac -C 0 $RESAMPLE$ -

wav flc * *
# IFD:{RESAMPLE=-r %d}
[sox] -q -t wav $FILE$ -t flac -C 0 $RESAMPLE$ -

ogg flc * *
# IFRD:{RESAMPLE=-r %d}
[sox] -t ogg $FILE$ -t flac -C 0 $RESAMPLE$ -

wma flc * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -

wmal flc * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -

wmap flc * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -

mpc flc * *
# IR
[mppdec] --silent --prev --gain 2 - - | [flac] -cs --totally-silent --compression-level-0 -

ape flc * *
# F
[mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 -

mp4 flc * *
# F
[faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -

aac flc * *
# IF
[faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -

mov flc * *
# FR
[mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -

alc flc * *
# F
[alac] $FILE$ | [flac] -cs --totally-silent --compression-level-0 -

wvp flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[wvunpack] $FILE$ -wq $START$ $END$ -o - | [flac] -cs --totally-silent --compression-level-0 -

michael123
2010-04-16, 10:01
yes, it is not there.
You need to create it.

Phil Leigh
2010-04-17, 03:30
If these are "real" 5.1 flacs, just telling SOX to remix them to 2 channels is not going to make them play properly.

How were these files created? - were they ripped from DVD/dvd-a/sacd somehow?

michael123
2010-04-17, 05:31
ITRAX and few other websites sell now these 5.1 flac files.
I do not know which matrix SoX uses for downmix, but the result was quite acceptable.
I also use foobar2k sometimes to downmix in off-line