Default transcoding to VBR mp3 rather than CBR
The current default transcoding creates mp3 files of CBR. That produces 320kbps mp3 files when the "unlimited" bitrate option is ticked. This is noted in the ffmpeg documentation to be wasteful:
I've tried to adjust the transcoding string myself to enable VBR transcoding, but I believe there is some bug in how Subsonic handles VBR transcoding since the output files aren't properly labeled as VBR mp3s even though I can properly transcode flac files without subsonic using the same ffmpeg string.
I would suggest the default transcoding become VBR using qscale. If the client specifies a bitrate limit (e.g. 192kbps), subsonic should transcode with the qscale option that provides approximately 192kbps avg bitrate (in this case v2).
Thank you for consideration!
The variable bitrate mp3 files produced using the qscale option adjust the bitrate as a function of the musical content to optimize transparancy; higher bitrates are used in complex sections of a song while a lower bitrate is used for less complex sections of songs like silence. This approach produces a transparent transode with a much smaller file size than CBR mp3 can provide (or better quality for equal size). Because subsonic is a networked player, data usage is something that should be optimized (particularly for the use case of cell phone networks).Note: Using -b:a 320k is generally considered wasteful because: -q:a 0 through -q:a 3 will normally produce transparent results.
I've tried to adjust the transcoding string myself to enable VBR transcoding, but I believe there is some bug in how Subsonic handles VBR transcoding since the output files aren't properly labeled as VBR mp3s even though I can properly transcode flac files without subsonic using the same ffmpeg string.
I would suggest the default transcoding become VBR using qscale. If the client specifies a bitrate limit (e.g. 192kbps), subsonic should transcode with the qscale option that provides approximately 192kbps avg bitrate (in this case v2).
Thank you for consideration!