Page 1 of 1

mp3s not fully playing back

PostPosted: Wed Mar 12, 2014 6:53 pm
by mosjev
Hello all,

I just installed subsonic and am quite excited but have one nagging problem. Every mp3 file I try to stream, doesn't play the whole file, cutting off a varying time points but mainly less than 30 seconds in. This problem seems to be localized to just source mp3 files; if I transcode a flac to mp3, everything seems to work fine.

I did notice the max_analyze_duration error in ffmpeg but can't find a command line arg to use to change it. I am also not positive that is the culprit. Does ffmpeg get called when no transcoding is occuring?

Has anyone seen similar behavior or know of any course of action I can take?

Thanks,
mosjev

Help Request Form:
Problem Description: MP3 files do not buffer entirely, cuting off approximately 20 second into a song. This seems to happen regardless of the player used, ie the same behavior is seen in the web player, minisub, and an external player. Transcoding from flac or ogg works perfectly though.
Troubleshooting Steps: I tried changing the max bitrate of the webplayer, using alternate players, and checked different transcoding sources, but beyond that I'm stumped.
Subsonic Version: 4.9 (build 3819) – January 23, 2014
Server Version: jetty-6.1.x, java 1.7.0_51, Linux (83.1 MB / 135.5 MB)
Hardware Platform: uname -srvmo: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux
Java Memory Limit: 2048mb
Problem Filename: *.mp3
Output from ffmpeg -i:
Code: Select all
$ ffmpeg -i Wes\ Montgomery\ -\ 1967\ -\ A\ Day\ In\ The\ Life\ \[MP3\]/03.\ -When\ A\ Man\ Loves\ A\ Woman.mp3
ffmpeg version 0.8.6-6:0.8.6-1, Copyright (c) 2000-2013 the Libav developers
  built on Mar 24 2013 18:40:26 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[mp3 @ 0x19b0b20] max_analyze_duration reached
[mp3 @ 0x19b0b20] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'Wes Montgomery - 1967 - A Day In The Life [MP3]/03. -When A Man Loves A Woman.mp3':
  Metadata:
    artist          : Wes Montgomery
    title           : When A Man Loves A Woman
    album           : A Day In The Life
    date            : 1967
    track           : 03
    genre           : Jazz
    encoder         : Lavf53.21.1
  Duration: 00:29:09.48, start: 0.000000, bitrate: 32 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 32 kb/s
At least one output file must be specified


Last ten lines from log file:
Code: Select all
[3/12/14 5:00:53 PM UTC]   WARN   CoverArtController   Failed to create thumbnail for Media file 3270 - MD_KOB_OGG
[3/12/14 5:01:00 PM UTC]   WARN   StreamController   Unknown duration for A1.so_what. Unable to estimate transcoded size.
[3/12/14 5:01:00 PM UTC]   INFO   PlayQueueInputStream   admin listening to "MD_KOB_OGG/A1.so_what.ogg"
[3/12/14 5:01:00 PM UTC]   DEBUG   TranscodeInputStream   Starting transcoder: [/media/sdc1/home/fellow/private/subsonic/transcode/ffmpeg] [-i] [/media/sdc1/home/fellow/private/deluge/data/MD_KOB_OGG/A1.so_what.ogg] [-ab] [128k] [-v] [0] [-f] [mp3] [-]
[3/12/14 5:01:10 PM UTC]   WARN   CoverArtController   Failed to create thumbnail for Media file 3269 - A1.so_what
[3/12/14 5:15:03 PM UTC]   WARN   CoverArtController   Failed to create thumbnail for Media file 220 - Wes Montgomery - 1967 - A Day In The Life [MP3]
[3/12/14 5:15:12 PM UTC]   INFO   PlayQueueInputStream   admin listening to "Wes Montgomery - 1967 - A Day In The Life [MP3]/01. -A Day In The Life.mp3"
[3/12/14 5:15:20 PM UTC]   WARN   CoverArtController   Failed to create thumbnail for Media file 2657 - A Day In The Life
[3/12/14 5:16:02 PM UTC]   INFO   PlayQueueInputStream   admin listening to "Wes Montgomery - 1967 - A Day In The Life [MP3]/04. -California Nights.mp3"
[3/12/14 5:16:10 PM UTC]   WARN   CoverArtController   Failed to create thumbnail for Media file 2652 - California Nights
[3/12/14 5:17:59 PM UTC]   INFO   StreamController   Got range: Range[1048299,1048299]
[3/12/14 5:17:59 PM UTC]   INFO   PlayQueueInputStream   admin listening to "Wes Montgomery - 1967 - A Day In The Life [MP3]/01. -A Day In The Life.mp3"
[3/12/14 5:17:59 PM UTC]   INFO   StreamController   Got range: Range[1048299,13984135]
[3/12/14 5:27:18 PM UTC]   INFO   StreamController   Got range: Range[0,9223372036854775807]
[3/12/14 5:27:18 PM UTC]   INFO   PlayQueueInputStream   admin listening to "Wes Montgomery - 1967 - A Day In The Life [MP3]/03. -When A Man Loves A Woman.mp3"
[3/12/14 5:27:28 PM UTC]   WARN   CoverArtController   Failed to create thumbnail for Media file 2658 - When A Man Loves A Woman

Re: mp3s not fully playing back

PostPosted: Thu Mar 13, 2014 9:56 pm
by jeremyh
I have noticed this as well and tracked it down to a caching issue within my browser (I'm using chrome).

If I stop playing a song (skip past it or close the browser), it seems to chop the song the next time I play it. If I clear the caches/cookies/history in chrome, it suddenly starts playing the whole thing again. I think the player buffer is being cached by the browser and I don't know exactly where this is happening, but clearing the cache seems to fix.

May be a different issue than yours, but that is what I have found.

Re: mp3s not fully playing back

PostPosted: Fri Mar 14, 2014 11:37 pm
by mosjev
Thanks for the idea.

jeremyh wrote:If I stop playing a song (skip past it or close the browser), it seems to chop the song the next time I play it.


Unfortunately, I think my problem might be slightly different than what you were seeing, as I can never get an mp3 to play fully. In any event, clearing my browser's cache didn't seem to change the behavior.

I did notice that in chrome and firefox, if I skip forward, then back again, the buffered section is still available and a new "slug" is loaded. However in safari, the first part is just loaded again, to the same point as it stopped the first time. This might indicate a problem with browser caching but I'm still stumped about why I can play flac->mp3 just fine.

Does ffmpeg get called on play back of mp3s as well as when transcoding?