Page 1 of 1

FLAC Transcoding

PostPosted: Wed Nov 11, 2009 9:46 pm
by WildWalker
Hello All,

I put some FLAC files on my server just to see how Subsonic would handle the Transcoding. All seems fine except the files are transcoded to 128Kb/s even though no limit is set.

Does Lame have a max bit rate setting of 128Kb/s for FLAC files?

[11/11/09 9:43:19 PM GMT] INFO PlaylistInputStream WildWalker listening to "Best Of R.E.M FLAC Test\16-R.E.M. _ Everybody Hurts.flac"
[11/11/09 9:43:19 PM GMT] DEBUG TranscodeInputStream Starting transcoder: [c:\subsonic\transcode\flac] [-c] [-s] [-d] [C:\_Media\_Music\R.E.M\Best Of R.E.M FLAC Test\16-R.E.M. _ Everybody Hurts.flac]
[11/11/09 9:43:19 PM GMT] DEBUG TranscodeInputStream Starting transcoder: [c:\subsonic\transcode\lame] [-b] [128] [-] [-]
[11/11/09 9:43:19 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) LAME version 3.96.1 (http://lame.sourceforge.net/)
[11/11/09 9:43:19 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) CPU features: MMX (ASM used), SSE, SSE2
[11/11/09 9:43:19 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
[11/11/09 9:43:19 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Encoding to
[11/11/09 9:43:19 PM GMT] DEBUG InputStreamReaderThread (c:\subsonic\transcode\lame) Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3

PostPosted: Wed Nov 11, 2009 9:54 pm
by flacflac
Hi,

there is no max-bitrate specific to FLAC file transcodes, but you should look into the Transcoding tab and see what kind of transcode command you have activated there. I have no trouble transcoding to 320kbps, although I am still hoping that some day a fix will come along that would allow lossless playback... .

But yeah, just post what you have set up and I'm sure it can be fixed.

ff :shock:

PostPosted: Wed Nov 11, 2009 10:18 pm
by WildWalker
Here are my FLAC settings:

flac > mp3 flac mp3 flac -c -s -d %s lame -b %b - -

Thanks for your last reply :)
Alan.

PostPosted: Wed Nov 11, 2009 10:33 pm
by WildWalker
From what I have read the %b is the bit rate, and I assumed that bit rate would be either the assigned user bit rate or the transcoder max bit rate.

Alan.

PostPosted: Thu Nov 12, 2009 12:20 pm
by flacflac
WildWalker wrote:From what I have read the %b is the bit rate, and I assumed that bit rate would be either the assigned user bit rate or the transcoder max bit rate.

Alan.



For step2, try:

Code: Select all
lame -b 192 - -


You can exchange 192 with anything up to 320.

ff

PostPosted: Thu Nov 12, 2009 5:50 pm
by WildWalker
Thanks FF, I will try that.

But am I correct in thinking that.

If you have no bitrate limit it should stream in it's native bit rate.
If you have a bitrate limit, it should stream at the specified limit?

Best Regards,
Alan.

PostPosted: Fri Nov 13, 2009 12:31 am
by flacflac
WildWalker wrote:Thanks FF, I will try that.

But am I correct in thinking that.

If you have no bitrate limit it should stream in it's native bit rate.
If you have a bitrate limit, it should stream at the specified limit?

Best Regards,
Alan.


I am not sure what you mean by "native bit rate" - you need to specify the bitrate in the transcode command or otherwise I would guess it will just do 128kbps coming from FLAC. The max-bitrate setting in the user-specific settings only applies if you're streaming mp3 files directly. Those will get transcoded to a lower bitrate using the command specified in the "Advanced" tab, but I do not believe it applies to FLAC transcodes. Correct me if I'm wrong. :shock:

ff

PostPosted: Fri Nov 13, 2009 8:01 am
by WildWalker
Ok, thanks flacflac,

I just assumed that if specified, the users bit rate was passed to the encoder via the %b parameter :)

Silly me.

Alan.