PDA

View Full Version : SC 7.3.3 FreeNAS and Itunes Plus



Govnah
2009-07-02, 14:40
I have researched with no sucess. Can someone help me play iTunes Plus (Non DRM) w/ SC 7.3.3. and FreeNAS? Is this possible? I have enabled AAC/iTunes but everytime I select a non-DRM iTunes file I get unable to play. Any ideas?

18:31:33.7095] Slim::Player::Song::open (341) Error: Couldn't create command line for mp4 playback for [file:///mnt/Media/Music/MP3_iTunes/David%20Gilmour/Live%20In%20Gda%C5%84sk%20(Deluxe%20Version)/1-02%20Breathe%20(In%20the%20Air)%20[Live].m4a]
[09-07-02 18:31:46.6238] Slim::Player::Song::open (341) Error: Couldn't create command line for mp4 playback for [file:///mnt/Media/Music/MP3_iTunes/David%20Gilmour/Live%20In%20Gda%C5%84sk%20(Deluxe%20Version)/1-01%20Speak%20to%20Me%20(Live).m4a]


Thx

Govnah
2009-07-04, 21:26
Also, under advanced, file types...AAC is greyed and I can not select anything....I have done a clean install and upgraded to 7.3.4 w/ no sucess. Any ideas?

Thanks

jo-wie
2009-07-05, 07:06
I do not know Freenas but you should have a look at

http://wiki.slimdevices.com/index.php/AAC

cailloux
2009-07-05, 10:04
Not that it necessarily applies to your situation, but did you try installing the custom-convert file that I created which supports transcoding from AAC (AAC+, etc.) to FLAC or MP3 for streaming to SB?

http://forums.slimdevices.com/showpost.php?p=389965&postcount=31

tim

Govnah
2009-07-06, 08:39
Yes I did and I think the problem os that I do not have FAAD installed in the /usr/bin directory. I am trying to figure out how to compile faad for FreeNAS and install......




Not that it necessarily applies to your situation, but did you try installing the custom-convert file that I created which supports transcoding from AAC (AAC+, etc.) to FLAC or MP3 for streaming to SB?

http://forums.slimdevices.com/showpost.php?p=389965&postcount=31

tim

cailloux
2009-07-06, 11:08
I use mplayer (not FAAD) as the executable and I found it in the
/[MOUNT_PATH]/slimnas/usr/bin directory (where MOUNT_PATH is the directory to your first slimnas folder.

If you run mplayer in that directory, it should run without an issue. The version string for my copy is 1.0rc1-3.4.6.

tim

Govnah
2009-07-06, 19:33
Here is what I have:
freenas:/mnt/Media/slimnas/usr/bin# mplayer
MPlayer 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (Family: 15, Model: 4, Stepping: 3)

Also I have added your custom-convert file to /mnt/share/slimnas/usr/share/slim


Here is what my convert.conf looks like:

# $Id: convert.conf 25391 2009-03-07 13:22:05Z adrian $
#
# Configuration file for transcoding
#
# If you wish to create custom transcoding entries that won't be overwritten
# by a new release of SqueezeCenter, create a custom-convert.conf file in the
# SqueezeCenter root directory, or the root of the Plugins directory.
#
# On Debian, you can also create this file in # /etc/slimserver/custom-convert.conf
#
# first line is the source format, destination format and the destination device. Asterisk matches all
# second line is the command line for the conversion
#
# First line format:
# <source_format> <dest_format> <destination_device_type> <destination_device_id>
#
# <source_format>: Source music format: mp3, mov, ogg, wav, etc...
# <dest_format> : Destination music format: Generally mp3, or
# possibly aif or others depending on the types
# your player supports. SliMP3 supports only
# MP3. Squeezebox currently supports mp3, aif
# and wav. Squeezebox2 adds support for Flac and WMA.
# <destination_device_type>: currently slimp3, squeezebox, or *.
# The * is a wildcard that matches all device
# types.
# <destination_device_id>: The ID of the destination device. The
# ID of the destination device is the MAC address
# of a SliMP3 or Squeezebox device, or the IP of
# an HTTP client (such as your computer running
# WinAmp). The '*' wildcard matches all hosts
#
# either or both of <destination_device_type> and
# <destination_device_id> may be the '*' wildcard
#
#
# $FILE$ is the absolute path to the local source file
# $URL$ is the full URL for remote streams
# [bin] is the executable binary for the encoder or decoder
# - is a special command line that implies passthrough of data
#
# Capabilities
# I - can transcode from stdin
# F - can transcode from a named file
# R - can transcode from a remote URL (URL types unspecified)
#
# O - can seek to a byte offset in the source stream (not yet implemented)
# T - can seek to a start time offset
# U - can seek to start time offset and finish at end time offset
#
# D - can downsample
# B - can limit bitrate
#
# default is "IF"
#
# Substitution strings for variable capabilities
# %f - file path (local files)
# %F - full URL (remote streams)
#
# %o - stream start byte offset
#
# %S - stream samples start offset (not yet implemented)
# %s - stream seconds start offset
# %t - stream time (m:ss) start offset
# %U - stream samples end offset (not yet implemented)
# %u - stream seconds end offset
# %v - stream time (m:ss) end offset
# %w - stream seconds duration
#
# %b - limit bitrate: b/s
# %B - limit bitrate: kb/s
# %d - samplerate: samples/s
# %D - samplerate: ksamples/s

# specific combinations match before wildcards

mp4 mp3 * *
# FB:{BITRATE=-B %B}
[faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE - -

aac mp3 * *
# IFB:{BITRATE=-B %B}
[faad] -q -w -f 1 $FILE$ | [lame] --silent -q $QUALITY$ $BITRATE - -

mov mp3 * *
# FRB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[mov123] $FILE$ | [lame] -s 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - -

alc mp3 * *
# FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[alac] $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

ogg mp3 * *
# IFB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[sox] -q -t ogg $FILE$ -t wav - | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

wav mp3 * *
# IFB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ $-x$ $FILE$ -

aif mp3 * *
# IFB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ $FILE$ -

flc mp3 * *
# FB:{BITRATE=-B %B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
[flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

wma mp3 * *
# F:{PATH=%f}R:{PATH=%F}B:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[wmadec] -w $PATH$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

mpc mp3 * *
# IRB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[mppdec] --silent --prev --gain 3 - - | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

ape mp3 * *
# FB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[mac] $FILE$ - -d | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

wvp mp3 * *
# FB:{BITRATE=-B %B}T:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=--resample %D}
[wvunpack] $FILE$ -wq $START$ $END$ -o - | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -

mp3 mp3 * *
-

# Non-mp3 starts here
aif aif * *
-

wav wav * *
-

flc wav * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs --force-raw-format --endian=little --sign=signed $START$ $END$ -- $FILE$

ogg ogg * *
-

ogg aif * *
[sox] -q -t ogg $FILE$ -t raw -r 44100 -c 2 -2 -s $-x$ -

wma wav * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -r 44100 -b 16 -n 2 $PATH$

mpc wav * *
# IR
[mppdec] --raw-le --silent --prev --gain 2 - -

ape wav * *
# F
[mac] $FILE$ - -d

mpc aif * *
# IR
[mppdec] --raw-be --silent --prev --gain 2 - -

alc wav * *
# F
[alac] -r $FILE$

wvp wav * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[wvunpack] $FILE$ -rq $START$ $END$ -o -

mp4 wav * *
# F
[faad] -q -w -f 2 -b 1 -s 44100 $FILE$

aac wav * *
# IF
[faad] -q -w -f 2 -b 1 -s 44100 $FILE$

mov aif * *
# FR
[mov123] $FILE$

wma wma * *
-

# FLAC output starts here

#mp3 flc * *
# [lame] --mp3input --decode -t --silent $FILE$ - | [flac] -cs --totally-silent --compression-level-0 -

flc flc * *
-

aif flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$

wav flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -cs --totally-silent --compression-level-0 $START$ $END$ -- $FILE$

ogg flc * *
# IFRD:{RESAMPLE=-r %d}
[sox] -t ogg $FILE$ -t flac -C 0 $RESAMPLE$ -

wma flc * *
# F:{PATH=%f}R:{PATH=%F}
[wmadec] -w $PATH$ | [flac] -cs --totally-silent --compression-level-0 -

mpc flc * *
# IR
[mppdec] --silent --prev --gain 2 - - | [flac] -cs --totally-silent --compression-level-0 -

ape flc * *
# F
[mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 -

mp4 flc * *
# F
[faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -

aac flc * *
# IF
[faad] -q -w -f 1 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -

mov flc * *
# FR
[mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 -

alc flc * *
# F
[alac] $FILE$ | [flac] -cs --totally-silent --compression-level-0 -

wvp flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[wvunpack] $FILE$ -wq $START$ $END$ -o - | [flac] -cs --totally-silent --compression-level-0 -

# special case for smart bitrates on mp3 input
mp3 mp3 transcode *
# IFB:{BITRATE=-B %B}D:{RESAMPLE=--resample %D}
[lame] --silent -q $QUALITY$ -v $BITRATE$ $RESAMPLE$ --mp3input $FILE$ -

flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 $RESAMPLE$ -

# This example transcodes MP3s to MP3s, if the target machine has the
# given MAC address. This rule will take precedence over the
# previous rule because it's more specific.
#mp3 mp3 squeezebox 00:02:dd:34:e9:62
# ./brute_filter $FILE$ -



Any idea what I am missing?

Thanks

cailloux
2009-07-07, 07:05
You shouldn't need to copy/paste the contents into the convert file (an SC update can muck that up); you should just add it to the custom-convert file.

That said, if you are still having an issue, you'll need to turn on player streaming debugging and post the logs to see what the issue is:

You can do that in the following way in Squeezecenter:
Settings -> Advanced -> Logging
Set player.streaming to "Debug"

And then provide the relevant sections from the server.log.

Govnah
2009-07-07, 09:38
I have a custon-convert.conf file in /squeezecenter which is linked to /slimnas/usr/share/Slim but there is no custom-convert.conf located there. Do you have a custom-convert.conf file I can place there?


file:///mnt/Media/Music/MP3_iTunes/David%20Gilmour/Live%20In%20Gda%C5%84sk%20(Deluxe%20Version)/1-02%20Breathe%20(In%20the%20Air)%20[Live].m4a]
[09-07-07 11:49:56.6756] Slim::Player::Song::open (341) Error: Couldn't create command line for mp4 playback for [file:///mnt/Media/Music/MP3_iTunes/David%20Gilmour/Live%20In%20Gda%C5%84sk%20(Deluxe%20Version)/1-02%20Breathe%20(In%20the%20Air)%20[Live].m4a]


Thanks




You shouldn't need to copy/paste the contents into the convert file (an SC update can muck that up); you should just add it to the custom-convert file.

That said, if you are still having an issue, you'll need to turn on player streaming debugging and post the logs to see what the issue is:

You can do that in the following way in Squeezecenter:
Settings -> Advanced -> Logging
Set player.streaming to "Debug"

And then provide the relevant sections from the server.log.