Page 1 of 1

How to change bits/sample when transcoding flac > ogg?

PostPosted: Wed Jan 11, 2012 1:24 pm
by barfly
Hi,

Does anyone know how to change number of bits/sample when transcoding from flac to ogg? I have some songs 24/96 (flac) which won't play on my android when transcoding them to ogg. I suspect the android player does not know how to play them and therefore I would like to resample them to 16/44.1. How do I do that?

I currently use

oggenc -Q -q2 --resample 44100 -s 1 -o - %s

for my transcoding and that takes care of the samples/second but what about the bits/sample?

Thanks in advance.


Ps. Thanks everybody involved with Subsonic! I really love it!

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Wed Jan 11, 2012 4:04 pm
by wraithdu
Maybe make it a 2 step process with ffmpeg decoding your flac to a 16/44 wav, then piping the wav data to oggenc.

PS, if you're using Subsonic 4.6, do you have any problems streaming VBR oggs to mobile devices like Android, or do you just use the web player?

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Thu Jan 12, 2012 9:01 am
by barfly
Thanks, I'll give it a try.

I'm still using 4.4 which is working like a dream so I've not got around trying out the 4.6 yet. Using 4.4, the ogg streaming is working flawlessly (and the sound quality is superior compared to mp3 at the same bitrate). Is there a problem with 4.6? I only use the -q2 to specify quality, is that VBR or fixed bitrate?

I only use subsonic with my android mobile.

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Thu Jan 12, 2012 3:49 pm
by wraithdu
OGG is inherently VBR. There's an issue with 4.6 streaming VBR transcodes where the content length is set incorrectly by the server (see my comments in the Subsonic 4.6 Announcement thread). It seems to only affect certain clients that cache the stream, like Android. So if I were you I'd hold off on upgrading until the first 4.7 beta is out where Sindre said we will be able to disable the content-length http header (which is how older server versions operated and should fix the problem).

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Sat Jan 14, 2012 10:23 am
by papatel
confirmed ogg streaming broken on 4.6 but works on 4.4
I've downgraded until 4.7 comes out. Good to see progress forward even if it breaks my primary means of listening to music :)

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Tue Feb 21, 2012 8:21 am
by GJ51
I concur. I spent the whole night trying to get mp3 > ogg working on 4.5 and 4.6 - neither worked. I dropped back to 4.4 and it worked first try. I've now set up ver 4.4 in a VM just for mobile access that I can use when the 3g bandwidth on my Android phones sucks.

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Thu Aug 16, 2012 12:54 am
by papatel
So if I were you I'd hold off on upgrading until the first 4.7 beta is out where Sindre said we will be able to disable the content-length http header (which is how older server versions operated and should fix the problem).


I assume this still isn't in 4.7 Beta 3 since I have the same ogg playback problem if the stream gets interrupted. Going back to 4.4 yet again... Pretty please Sindre, can you fix this so I can use your new subsonic versions :)

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Thu Aug 16, 2012 2:46 am
by GJ51
I'm using 4.7 beta 3 to transcode to ogg without any issues. I am using the WAR version on Tomcat 6.0 on Windows.

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Fri Oct 19, 2012 12:06 am
by papatel
Looks like Sindre is not interested in supporting vorbis streaming properly in his newer versions of subsonic. I'm still using this old beta as well.

Re: How to change bits/sample when transcoding flac > ogg?

PostPosted: Fri Oct 19, 2012 2:53 am
by GJ51
Works fine for me.