Strange OGG -> MP3 transcoding problem

Need help? Post your questions here.

Moderator: moderators

Strange OGG -> MP3 transcoding problem

Postby rage4order » Mon Jun 29, 2009 9:09 pm

Hi guys, so I installed Subsonic on my Ubuntu 9.04 based server, and I really like it, alas I've run into a weird issue I can't seem to resolve. My library consists of files in FLAC and OGG formats. Transcoding from FLAC to MP3 works flawlessly and the resulting stream plays fine through the integrated flash player, however there is a problem with files which are in OGG format. The transcoding seems to work, however the resulting stream is *always* cut off about half way through the song. The weird thing is that if I manually decode the ogg to a WAV file using the same oggdec executable which Subsonic is using and then stream that WAV file from subsonic, it plays all the way through until the end of the song, so it's obviously not a problem with oggdec, but rather something with how Subsonic pipes the output of oggdec into lame. Has anyone seen something similar? Any suggestions are welcome.
rage4order
 
Posts: 33
Joined: Mon Jun 29, 2009 8:58 pm

Postby lavamind » Sat Oct 24, 2009 8:56 pm

I have the exact same problem. OGG files are always cut-off near the middle of the song. Tried different oggdec settings, to no avail. Reading the subsonic log files I find this occurs when the cut-off happens :
Code: Select all
WARN org.mortbay.log - /stream: java.io.IOException: Closed
lavamind
 
Posts: 6
Joined: Sun Sep 27, 2009 11:45 pm

Postby jarim » Mon Nov 02, 2009 10:50 am

Indeed. Internal player seem to play always 73% of the ogg and then cuts. And gives the same warning in the log:

Code: Select all
409691648 [btpool0-608] WARN org.mortbay.log - /subsonic/stream: java.io.IOException: Closed


With external player throws similar error to log but plays the file till the end normally.
jarim
 
Posts: 5
Joined: Wed Apr 15, 2009 6:51 am

Postby elitenoobboy » Fri Nov 27, 2009 5:09 am

I get the same error code, and the flash player won't play. Also, the external player doesn't want to open. Clicking play does nothing.
elitenoobboy
 
Posts: 2
Joined: Mon Nov 23, 2009 4:14 am

Postby colli419 » Mon Nov 30, 2009 8:25 pm

I am getting a similar error, though in my case the song is cutting off at random percentages (e.g. 89%, 87%, 83% for three songs respectively). I am also using oggdec. It has the right song length, which sometimes doesn't happen with transcoding but it does not play all the way through.
colli419
 
Posts: 75
Joined: Thu Aug 27, 2009 8:23 pm

Postby jonny_137 » Mon Dec 21, 2009 10:19 pm

Hi,

i found out what the problem is:
lame wants to transcode the wav without getting the bitrate and so lame uses 128. If it differ from the ogg file bitrate, the play stops to early. If you set %b to the bitrate of the ogg file (e.g. 80) it works fine.
But now the bitrate ist not longer variable ....

Hope it helps some people :D

Jonny

PS: Sorry for my englisch. I'm from Germany...
jonny_137
 
Posts: 1
Joined: Mon Dec 21, 2009 10:10 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 31 guests