Page 1 of 1

transcoding flac > mp3 in snow leopard

PostPosted: Sat May 01, 2010 3:14 pm
by mattb
Thanks for the program -- it works great for streaming mp3s! Still having trouble playing flacs, though.

Here's my setup.
Step 1: flac -d %s -
Step 2: lame -b %b - -

here are the contents of my /var/subsonic/transcode dir

drwxr-xr-x 6 root wheel 204 May 1 10:54 .
drwxr-xr-x 3 root wheel 102 Apr 30 18:37 ..
lrwxr-xr-x 1 root wheel 21 May 1 10:54 ffmpeg -> /opt/local/bin/ffmpeg
lrwxr-xr-x 1 root wheel 22 May 1 08:45 ffmpegx -> /opt/local/bin/ffmpegx
lrwxr-xr-x 1 root wheel 19 May 1 08:44 flac -> /opt/local/bin/flac
lrwxr-xr-x 1 root wheel 19 May 1 08:22 lame -> /opt/local/bin/lame

running the two steps in the command line directly works fine. ie
flac -d 'filename.flac'
lame -b 128 'filename.wav'

But it the web interface for transcoding / playing doesn't work.

any help would be appreciated.
Thanks!

Matt

PostPosted: Sat May 01, 2010 5:18 pm
by sindre_mehus
You can look for clues in /Library/Application Support/Subsonic/subsonic.log

There should be some output from the transcoders when they are executed.

PostPosted: Sat May 01, 2010 8:33 pm
by mattb
Thanks for the fast response. Here's the output

From the subsonic logfile:

[2010-05-01 16:27:15,344] INFO PlaylistInputStream - admin listening to "dandb 2008-08-21/08 Strange.flac"
[2010-05-01 16:27:15,346] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/Subsonic/transcode/lame] [-S] [-h] [-b] [128] [/Volumes/Matt Media/lossless/dandb 2008-08-21/08 Strange.flac] [-]

And there was another console for the google chrome browser I was using

5/1/10 4:26:03 PM com.apple.launchd[1] (com.google.keystone.daemon[52285]) bootstrap_register() erroneously called instead of bootstrap_check_in(). Mach service: com.google.Keystone.Daemon
5/1/10 4:26:03 PM com.apple.launchd[1] (com.google.keystone.daemon[52285]) Exited with exit code: 1
5/1/10 4:26:03 PM com.apple.launchd[1] (com.google.keystone.daemon) Throttling respawn: Will start in 10 seconds

Matt

PostPosted: Sun May 02, 2010 5:38 am
by sindre_mehus
mattb wrote:[2010-05-01 16:27:15,346] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/Subsonic/transcode/lame] [-S] [-h] [-b] [128] [/Volumes/Matt Media/lossless/dandb 2008-08-21/08 Strange.flac] [-]


Hm, this is actually the downsampling which kicks in (see Settings > Advanced > Downsampling command).

That means that the transcoding is probably not configured properly. Go to Settings > Players, select your player, and make sure that the transcoding "flac > mp3" is enabled.

Hope this helps,
Sindre

PostPosted: Fri May 07, 2010 3:15 pm
by mattb
The transcoding is almost certainly taking place (I can see the progress bar slowly fill), but playback just doesn't happen.

Matt

PostPosted: Sat Aug 07, 2010 8:24 pm
by sirdemon
any luck? i'm still trying to figure out how to install LAME or FLAC or FFMPEG in OSX. i've installed MacPorts 1.9.1 and Xcode 3.2.3.

i tried to install LAME in the terminal, but got this error:

SnowMacca:~ sirdemon$ sudo port install lame
---> Computing dependencies for lame
---> Dependencies to be installed: ncurses ncursesw
---> Configuring ncursesw
Error: Target org.macports.configure returned: configure failure: shell command failed
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log
Error: The following dependencies failed to build: ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

ideas? thanx!
sir demon

Problems with SnowLeopard transcoding mp3 -> Flac

PostPosted: Sat May 14, 2011 4:58 pm
by MorleyRigged
Hi there,

Hope this is a good thread to post too. It seemed fitting.

I've tried loading new copies of flac and ffmpeg to /Library/Application Support/Subsonic/transcode

and followed the instructions here to do this:
http://forum.subsonic.org/forum/viewtopic.php?p=13797

I also went with his recommendation of using flac-darwin.. No luck.

Heres what I have for encoding settings currently and the error log bellow that shows what happens:

Step1: flac -d %s -
Step2: lame -b %b - -



[2011-05-14 11:47:50,912] INFO PlaylistInputStream - admin listening to "(Flac) Cake - Comfort Eagle/01 - Opera Singer.flac"
[2011-05-14 11:47:50,916] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/Subsonic/transcode/flac] [-d] [/Users/Living_room/music/Cake/(Flac) Cake - Comfort Eagle/01 - Opera Singer.flac] [-]
[2011-05-14 11:47:50,971] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/Subsonic/transcode/lame] [-b] [320] [-] [-]
[2011-05-14 11:47:50,983] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) dyld: Library not loaded: /flac_mac/lib/libFLAC.8.dylib
[2011-05-14 11:47:50,984] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) Referenced from: /Library/Application Support/Subsonic/transcode/flac
[2011-05-14 11:47:50,984] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) Reason: no suitable image found. Did find:
[2011-05-14 11:47:50,984] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) /usr/local/lib/libFLAC.8.dylib: stat() failed with errno=13
[2011-05-14 11:47:51,231] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/lame) Warning: unsupported audio format
[2011-05-14 11:50:17,791] INFO PodcastService - Starting scheduled Podcast refresh.
[2011-05-14 11:50:17,791] INFO PodcastService - Completed scheduled Podcast refresh.

Re: Problems with SnowLeopard transcoding mp3 -> Flac

PostPosted: Fri May 20, 2011 8:52 pm
by tannerellen
MorleyRigged wrote:Hi there,

Hope this is a good thread to post too. It seemed fitting.

I've tried loading new copies of flac and ffmpeg to /Library/Application Support/Subsonic/transcode

and followed the instructions here to do this:
http://forum.subsonic.org/forum/viewtopic.php?p=13797

I also went with his recommendation of using flac-darwin.. No luck.

Heres what I have for encoding settings currently and the error log bellow that shows what happens:

Step1: flac -d %s -
Step2: lame -b %b - -



[2011-05-14 11:47:50,912] INFO PlaylistInputStream - admin listening to "(Flac) Cake - Comfort Eagle/01 - Opera Singer.flac"
[2011-05-14 11:47:50,916] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/Subsonic/transcode/flac] [-d] [/Users/Living_room/music/Cake/(Flac) Cake - Comfort Eagle/01 - Opera Singer.flac] [-]
[2011-05-14 11:47:50,971] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/Subsonic/transcode/lame] [-b] [320] [-] [-]
[2011-05-14 11:47:50,983] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) dyld: Library not loaded: /flac_mac/lib/libFLAC.8.dylib
[2011-05-14 11:47:50,984] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) Referenced from: /Library/Application Support/Subsonic/transcode/flac
[2011-05-14 11:47:50,984] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) Reason: no suitable image found. Did find:
[2011-05-14 11:47:50,984] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/flac) /usr/local/lib/libFLAC.8.dylib: stat() failed with errno=13
[2011-05-14 11:47:51,231] DEBUG InputStreamReaderThread - (/Library/Application Support/Subsonic/transcode/lame) Warning: unsupported audio format
[2011-05-14 11:50:17,791] INFO PodcastService - Starting scheduled Podcast refresh.
[2011-05-14 11:50:17,791] INFO PodcastService - Completed scheduled Podcast refresh.


I was having the same problem and it looked to me from reading my logs that ffmpeg was actually converting the file to wave and then Lame was converting that to mp3. Anyway I found a great link for a compiled version of ffmpeg:

http://ffmpegmac.net/

and another great link for Lame:

http://nuclearpixel.com/blog/view/2010- ... _osx_10.5/

Try to put both of those in your transcoding folder and you should be good to go. At least it worked for me. The great thing is that both of those binaries are universal too, so they will work on PPC and intel, unlike the ones that are packaged with the mac version of subsonic.

I just left my transcoding settings to the default:

Step 1:
ffmpeg -i %s -v 0 -f wav -

Step 2:
lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -