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

Need help? Post your questions here.

Moderator: moderators

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

Postby barfly » Wed Jan 11, 2012 1:24 pm

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!
barfly
 
Posts: 2
Joined: Wed Jan 11, 2012 1:18 pm

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

Postby wraithdu » Wed Jan 11, 2012 4:04 pm

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?
wraithdu
 
Posts: 50
Joined: Thu Apr 01, 2010 10:34 pm

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

Postby barfly » Thu Jan 12, 2012 9:01 am

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.
barfly
 
Posts: 2
Joined: Wed Jan 11, 2012 1:18 pm

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

Postby wraithdu » Thu Jan 12, 2012 3:49 pm

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).
wraithdu
 
Posts: 50
Joined: Thu Apr 01, 2010 10:34 pm

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

Postby papatel » Sat Jan 14, 2012 10:23 am

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 :)
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

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

Postby GJ51 » Tue Feb 21, 2012 8:21 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

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

Postby papatel » Thu Aug 16, 2012 12:54 am

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 :)
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

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

Postby GJ51 » Thu Aug 16, 2012 2:46 am

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.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

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

Postby papatel » Fri Oct 19, 2012 12:06 am

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.
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

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

Postby GJ51 » Fri Oct 19, 2012 2:53 am

Works fine for me.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 21 guests