PDA

View Full Version : Transcoding



JJZolx
2005-05-09, 10:29
What determines if a particular file format gets transcoded to FLAC when streaming to an SB2?

For instance, take a WAV file. I see the settings under

Server Settings / File Types

If I have an SB1 on the network I can't disable WAV -> WAV, as the SB1 doesn't understand FLAC. But when streaming to an SB2, does SlimServer automatically transcode to FLAC whenenever it can for non-MP3 and non-FLAC files?

What happens in a network with a mix of synchronized SB1s and SB2s? Will one stream as WAV and the other be transcoded to FLAC or will both stream as WAV?

I'm guessing that

Player Settings / Audio / Bitrate Limiting

also plays a part in the logic, but that it only controls whether or not a stream is transcoded to MP3. Assume that it's set at 'No Limit'.
________
Harley-Davidson X8A (http://www.cyclechaos.com/wiki/Harley-Davidson_X8A)

kdf
2005-05-09, 12:09
Quoting JJZolx <JJZolx.1oryzz (AT) no-mx (DOT) forums.slimdevices.com>:

>
> What determines if a particular file format gets transcoded to FLAC when
> streaming to an SB2?

Each palyer requests in order of preference:
SB2: FLAC, WAV/AIFF, MP#
SB1: WAV/AIFF, MP3
Slimp3: mp3

> If I have an SB1 on the network I can't disable WAV -> WAV, as the SB1
> doesn't understand FLAC. But when streaming to an SB2, does SlimServer
> automatically transcode to FLAC whenenever it can for non-MP3 and
> non-FLAC files?

For now, yes.

>
> What happens in a network with a mix of synchronized SB1s and SB2s?
> Will one stream as WAV and the other be transcoded to FLAC or will both
> stream as WAV?

mixed groups will find lowest common file type. if you have a slimp3 in the
group, they all get mp3.

Bitrate limiting affects each player individually (sync groups go to lowest
bitrate limits of the group). No Limit lets the palyer choose its preferred
type. Bitrate limiting as a number sets the bitrate for mp3 and forces an mp3
trancoding. Choosing a limit between WAV and FLAC is not yet implemented.
Eventually, you could use something like that to allow WAV files to play
natively and avoid teh extra cpu use of FLAC.

refer to:
http://bugs.slimdevices.com/show_bug.cgi?id=994

-kdf

Mark Bennett
2005-05-09, 12:27
On Mon, 2005-05-09 at 12:09 -0700, kdf wrote:
> Quoting JJZolx <JJZolx.1oryzz (AT) no-mx (DOT) forums.slimdevices.com>:
>

> Bitrate limiting affects each player individually (sync groups go to lowest
> bitrate limits of the group). No Limit lets the palyer choose its preferred
> type. Bitrate limiting as a number sets the bitrate for mp3 and forces an mp3
> trancoding. Choosing a limit between WAV and FLAC is not yet implemented.
> Eventually, you could use something like that to allow WAV files to play
> natively and avoid teh extra cpu use of FLAC.
>
> refer to:
> http://bugs.slimdevices.com/show_bug.cgi?id=994

The key point here would be to disable the file types transcode
from WAV to FLAC. This would prevent the CPU load on the server
at the expense of network bandwidth.

I can just about see that you might want to do this on a player
by player basis if some players were on a wired network, and
others were on a wireless, and your CPU wasn't powerful enough
to do the flac encode for all payers at the same time.....

I can't see this affecting too many people though.

--
"The biggest problem encountered while trying to design a system that
was completely foolproof, was, that people tended to underestimate the
ingenuity of complete fools." (Douglas Adams)

kdf
2005-05-09, 12:35
I agree, Mark. This bug used to be for adding flac conversion lines as well,
but was remakred when that part was done since those were much more critical
than the remaining issue. It may eventually be more important if other mative
formats start coming along.

-kdf