Page 1 of 1
6.1 webplayer hangs on long tracks when transcoding
Posted: 26 Mar 2016, 16:41
by garyo
I'm running 6.1.8150 in a FreeNAS jail. Since the previous 6.1 (which was my first try with the HTML player), the HTML web player plays ogg/flac files fine for the first 4 or so minutes, then hangs up for 10-20 sec, plays a few sec more, then hangs again, plays again, and so on to the end of the track. A streaming Android player does the same thing, but DSub which pre-caches tracks is fine. The log file looks to me like the ffmpeg process exits or it thinks it's done playing or something, but there's not a lot of detail. There are no actual errors in the log, just repeated "starting transcoder"/"listening to" the same track once it starts doing this. It only happens for non-mp3 (transcoded) tracks longer than about 4 min.
My ffmpeg is built from latest github source (I've tried a few different versions, no difference). If I just run the ffmpeg command from the log (piped to a file or /dev/null), it runs to completion, exit status 0. If I remove the "-v 0" all the stderr output looks correct, and it runs very fast (much faster than realtime). So I don't really suspect my ffmpeg, I guess I suspect something in the new HTML player.
Looking at the client's Javascript console (I'm running Chrome on Linux, but this happens on Windows Chrome too), I see this error every time it happens:
Code: Select all
http://my-domain:4040/stream?player=6&id=4981&auth=XXXXXXXX Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
so I think that's significant.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 01 Apr 2016, 01:28
by Zetlali
Actually I've noticed this issue as well. Once the issue happens, it plays just 5 seconds and then starts again from the same spot. It doesn't happen on every song over 4 minutes, I think its actually a size limitation.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 03 Apr 2016, 10:13
by pr0tagonist
I have the same problem!
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 03 Apr 2016, 19:18
by garyo
One thing I saw online said this can happen due to the web server timing out while serving the request, if the client is only processing the data slowly (as this player appears to do). Solutions to that (if it is the problem) would include extending the server timeout, or (better) the player making multiple small requests or caching locally.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 05 Apr 2016, 21:16
by Zetlali
Timeouts are going to be double annoying for me because I use a reverse proxy. Adding an extended timeout to my apache reverse proxy didn't seem to change anything. I then went and added a ridiculous timeout value to the end of web.xml.
Code: Select all
<!--
All session-config, mime-mapping, welcome-file-list, error-page, taglib,
resource-ref, security-constraint, login-config, security-role,
env-entry, and ejb-ref elements should follow this fragment.
-->
<session-config>
<session-timeout>600</session-timeout>
</session-config>
</web-app>
I don't have much experience with jetty, but I believe this is the correct way to do this. I played a song that I was consistently reproducing the issue on and it played all the way through. Doing extended testing now to see if this indeed fixes the issue. I'll update my post if this works.
Edit: Nope this didn't work.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 07 Apr 2016, 00:38
by garyo
The new release 6.1.8190 seems to fix this for me, thanks! At least on a couple of long tracks I've tried so far.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 07 Apr 2016, 08:18
by pr0tagonist
Upgraded to 6.1.8190, but nothing changed

Re: 6.1 web player hangs on long tracks when transcoding
Posted: 07 Apr 2016, 11:48
by garyo
Unfortunately I agree, it's still happening for me too, even on 6.1.8190.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 20 Apr 2016, 10:14
by pr0tagonist
6.1.8220
Problem still exists.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 26 Apr 2016, 21:29
by Zetlali
I've actually gone back to the flash player until this is resolved.
Re: 6.1 web player hangs on long tracks when transcoding
Posted: 04 May 2016, 21:11
by pr0tagonist
Problem was solved in 6.1.8260. Thanks!
Re: 6.1 webplayer hangs on long tracks when transcoding [sol
Posted: 16 May 2016, 21:48
by garyo
I thought it was fixed too, in 6.1.8280.4b123ec.20160505.0739, but now it's still happening to me on ogg tracks.

Re: 6.1 webplayer hangs on long tracks when transcoding
Posted: 04 Jun 2016, 13:03
by garyo
Bump -- any further ideas on this, anyone? Happens to me on all ogg and flac tracks, even with latest version.
Re: 6.1 webplayer hangs on long tracks when transcoding
Posted: 16 Jun 2016, 11:47
by Madsonic
please can you send me an example for recheck?
best regards
Re: 6.1 webplayer hangs on long tracks when transcoding
Posted: 02 Jul 2016, 15:04
by garyo
I sent you a PM with a file that causes the problem.
-- Gary
Madevil wrote:please can you send me an example for recheck?
best regards
[SOLVED] Re: 6.1 webplayer hangs on long tracks when transco
Posted: 09 Jul 2016, 15:10
by garyo
I can confirm that this is fixed as of the next version (when that's available). Do a full rescan and then ogg and flac tracks will have the correct content lengths and will play just fine!