[SOLVED] FLAC to MP3 files requires clicking to play

General discussions.

Moderator: moderators

[SOLVED] FLAC to MP3 files requires clicking to play

Postby jimbo715 » Wed Nov 13, 2013 3:41 pm

I have had this issue for a while now. Whenever someone tries to play a song that is transcoded from FLAC to mp3, the user must click somewhere in the song progress bar for the song to start. Once a user clicks, the song plays just fine. Is there a way to fix this?

I have tried using different versions of Firefox, Chrome, IE (ew) to no avail.

My setup:


UPDATE
I thought it might be an issue with the version of ffmpeg I was using. I updated ffmpeg to one of the latest versions, but that did not help. Actually made transcoding slower :|
Last edited by jimbo715 on Thu Nov 14, 2013 4:52 am, edited 1 time in total.
jimbo715
 
Posts: 10
Joined: Wed Nov 13, 2013 3:23 pm

Re: FLAC to MP3 files requires clicking to play

Postby jimbo715 » Thu Nov 14, 2013 4:51 am

So after a few hours of tinkering and digging around the tubes, I found a solution. Thought I'd share it with rest of the world.

Found this page that documents a few different ways to transcode.

Figured it'd be worth a shot to try a few ways suggested. What worked for me:

Code: Select all
sudo apt-get install -y flac
sudo su subsonic -c 'ln -s /usr/bin/flac /var/subsonic/transcode/flac'

First line installs flac.
Second line creates a symbolic link as my user 'subsonic' from the flac installation to transcoding folder used by subsonic.

In subsonic transcoding section, remove flac from the default 'mp3 audio'
  • Add transcoding just for flac to mp3.
  • Step 1: flac --decode --stdout %s
  • Step 2: ffmpeg -i - -acodec libmp3lame -ab %bk -f mp3 -

Image

You're welcome. :)

One thing to note was that this was a copypasta (copy and paste) job in regards to the transcoding settings. Is there a better (sounding) way to do this?\


UPDATE - 11/17/2013

So this streams flac at 128 kbits/s. Yes, amazing quality flac files at at 128 kbits/s. To change this, I updated step 2 to stream at 320 kbits/s:

ffmpeg -i - -acodec libmp3lame -ab 320k -f mp3 -
jimbo715
 
Posts: 10
Joined: Wed Nov 13, 2013 3:23 pm


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests