Page 1 of 1

downsampling/transcoding = crash

PostPosted: Sat Jan 21, 2012 10:43 am
by jpo
<-------------------------Subsonic Help Request---------------------->
Problem Description: I find my problem to be a real peculiar one although I have no idea how to fix this. Pretty sure its related to transcoding/downsampling though. Shortly the problem is that whenever anyone plays a music file that has higher bitrate than the max bitrate set in "Users" page in subsonic his/her web player crashes (or at least goes crazy) and subair skips tracks. Its very irritating problem, as I have only 1Mbit upload. I've tried different max bitrate settings, but only "no limit" seems to be working with all music files. I've NOT tried playing any video files. I've checked that transcoding steps are default and lame and ffmpeg are placed in transcoding folder. I've not touched them, they're the ones that came with subsonic.
TL;DR if bitrate > max bitrate -> browser = crash
Troubleshooting Steps: tried different max bitrate settings, verified transcoding steps are default, tried different browsers.
Playback Application and version: IE9, chrome, firefox, subair, android app
Subsonic Version: Version 4.6 (build 2583) – December 6, 2011
Server Version:Server jetty-6.1.x, java 1.6.0_29, Windows 7 (50.6 MB / 85.1 MB)
Hardware Platform: Windows 7, 2500K, Asrock z68 mobo
Java Memory Limit: 256MB(?) Found in subosonic control panel -> Settings
Problem Filename: depends on max bitrate setting
Output from ffmpeg -i: "not recognized as an internal or external command" I'm not doing this right :(
Last ten log file lines:
Code: Select all
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [wmav2 @ 01905640] overflow in spectral RLE, ignoring
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [wmav2 @ 01905640] next_block_len_bits 5 out of range
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Error while decoding stream #0.0
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [wmav2 @ 01905640] block_len_bits 6 out of range
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Error while decoding stream #0.0
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [wmav2 @ 01905640] prev_block_len_bits 6 out of range
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Error while decoding stream #0.0
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [wmav2 @ 01905640] block_len_bits 4 out of range
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Error while decoding stream #0.0
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [wmav2 @ 01905640] prev_block_len_bits 6 out of range
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Error while decoding stream #0.0
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) size= 6kB time=00:00:00.31 bitrate= 150.0kbits/s
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg)
[1/21/12 12:23:07 PM EET]    DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) video:0kB audio:5kB global headers:0kB muxing overhead 17.228315%

<-------------------------Subsonic Help Request---------------------->

And then lastly a bit more information about the browser crash in firefox: The songs plays like "ding - pause - dong - pause - ding", like helluva short parts and a long pause between them. Plugin cointainer goes into loop(?) and uses 25% processor. Then flash crashes and usually at this part if plugin container is killed firefox is saved. If not however after a little wait firefox goes boom.

edit. edited topic, as it sucked

Re: downsampling/transcoding = crash

PostPosted: Sat Jan 21, 2012 3:04 pm
by BKKKPewsey
It looks if there may be a problem with your SS ffmpeg install.
If you open up a command prompt and navigate to your transcode dir eg: c:\subsonic\transcode\
Then type in ffmpeg -i you should then get an output from ffmpeg showing all the library filters and other things I don't understand :?
If you input the same command but follow it with a valid media file you will get even more info.
:mrgreen:

Re: downsampling/transcoding = crash

PostPosted: Sat Jan 21, 2012 3:22 pm
by jpo
Ah, now I got it. Heres the output. It doesnt tell me anything though :D
Code: Select all
C:\subsonic\transcode>ffmpeg -i
ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul 28 2011 01:57:12 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  9. 0 / 53.  9. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 27. 3 /  2. 27. 3
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
ffmpeg: missing argument for option 'i'

Re: downsampling/transcoding = crash

PostPosted: Sat Jan 21, 2012 4:16 pm
by BKKKPewsey
That seems to be ok can you check that your transcode settings are as default:

settings/transcode - step 1
Code: Select all
ffmpeg -i %s -ab %bk -v 0 -f mp3 -

:mrgreen:

Re: downsampling/transcoding = crash

PostPosted: Sat Jan 21, 2012 4:43 pm
by jpo
As I stated already I have checked that the settings are default. I've been wondering that when I set max bitrate at "User" page to no limit, but at android app to say 256 doesn't it use the exact same tanscoding settings? It doesn't transcode the music at android app, that would make no sense right? Because that way it works flawlessly.