tsquillario/Jamstash

Flac playback cut-off

Closed this issue · 2 comments

Hi,

I have been experiencing problems with flash playback via jamstash for a while.

Description:

  • Duration of the song is changing when starting playback and settles after a few seconds at around half the normal duration
  • The song ends abruptly at the new calculated duration

Log file:
[2014-06-05 11:08:40,676] INFO StreamController - Got range: Range[0,9223372036854775807]
[2014-06-05 11:08:40,693] INFO PlayQueueInputStream - xxx listening to "Alice Russell - My Favorite Letters/05 - A Fly In The Hand.flac"
[2014-06-05 11:08:40,819] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/flac] [-d] [--totally-silent] [--decode-through-errors] [--stdout] [/media/cloud/data/files/Music/Alice Russell - My Fav$
[2014-06-05 11:08:40,884] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/lame] [-V] [0] [--vbr-new] [--ignore-tag-errors] [-] [-]
[2014-06-05 11:10:08,493] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) LAME 3.99.5 32bits (http://lame.sf.net)
[2014-06-05 11:10:08,494] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) polyphase lowpass filter disabled
[2014-06-05 11:10:08,494] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) Encoding to
[2014-06-05 11:10:08,495] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) Encoding as 44.1 kHz j-stereo MPEG-1 Layer III VBR(q=0)
[2014-06-05 11:10:08,495] DEBUG InputStreamReaderThread - (/var/subsonic/transcode/lame) Error writing mp3 output

Comment:

  • Playback using subsonic is fine

It seems that lame is the culprit but I don't understand why it does not work with jamstash.

Thanks!

Well I found a solution after 4 hours of research and numerous tries. It seems that the transcoding was the culprit. I used the following two step transcode successfully:

Step1
flac --silent --decode --stdout %s

Step2:
lame --silent -h -b %b -

Glad you got this working :)