Page 1 of 1

FLAC playback problem

PostPosted: Mon Mar 01, 2010 7:03 pm
by frommel
When I start playback of a FLAC track, the buffer seems fo fill up quite fast, when the bar is full, the player moves to the next track. (built-in player)

- Running on Ubuntu
- LAME and FLAC are copied into /var/subsonic/transcode
- The user running the JAVA process has write permissions in this folder
- Nothing comes up in the log file, just [2010-03-01 10:35:03,755] INFO PlaylistInputStream - user listening to "band - album (FLAC)/01 - track.flac"
- Mp3's work fine.

PostPosted: Thu Mar 11, 2010 4:36 pm
by 3R3
have you transcoding enabled globally as admin (and the format you want to use, eg flac) and for the user you use?

on ubuntu you can use this handy script for easy transcoding:
(found it another post, its not from me)
in subsonic/transcode/ create a file called "any2mp3" and put this into it with some text editor
Code: Select all
#!/bin/bash
song=$1
bitrate=$2

/usr/bin/ffmpeg -i "$song" -ab $bitrate -f mp3 - 2>/dev/null

next, open a terminal, goto the subsonic/transcode/ directory and make the script executable like this
Code: Select all
chmod +x any2mp3

now you just have to get ffmpeg (use your packet manager of choice).
Now you can just put "any2mp3 %s %b" into the first step of a transcoding slot in the subsonic setting. (where %s and %b are values for filename and bitrate respectively, that are automatically filled in by subsonic)

bye