DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-02-25 23:05:25

ahughes
Member
Registered: 2009-02-25
Posts: 35

DNS-323, FLAC, and the PS3

I am curious about the best way to stream FLAC files to my PS3 from my DNS-323. I understand that the built-in server is not an option because it can't transcode to wav, but Twonky and Mediatomb might be viable options. Is it true that neither can transcode FLACs out of the box but can with some additional work? If they can with additional programming, how would I enable that function? Also, what are the pros and cons of these two products for FLAC streaming?
Any insight would be greatly appreciated. Thanks!

(I also posted in the Dlink forum, but I figure there's more knowledge on this topic here)

Offline

 

#2 2009-02-26 01:51:07

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

ahughes wrote:

I am curious about the best way to stream FLAC files to my PS3 from my DNS-323. I understand that the built-in server is not an option because it can't transcode to wav, but Twonky and Mediatomb might be viable options. Is it true that neither can transcode FLACs out of the box but can with some additional work? If they can with additional programming, how would I enable that function? Also, what are the pros and cons of these two products for FLAC streaming?
Any insight would be greatly appreciated. Thanks!

(I also posted in the Dlink forum, but I figure there's more knowledge on this topic here)

I use MediaTomb to transcode flac files to play on my PS3.  Actually, transcoded WAV doesn't work on the PS3, but LPCM works fine.  Here is what you need to do:

1) Download and install MediaTomb SVN2017 from this thread: http://dns323.kood.org/forum/t3098-%5BR … -1899.html
2) In the same thread, there is a link for the ffp 0.5 files to transcode flac and ogg.  Download and install these.
3) When you first launch MediaTomb, it will create a new config.xml.  Make these changes, then restart MediaTomb:

  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="audio/x-flac" using="flaclpcm"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="flaclpcm" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="flac" arguments="-d --endian=big --sign=signed --force-raw-format -f -o %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
    </profiles>
  </transcoding>

4) Import flac files with the webUI http://ip_of_nas:49152.  If this doesn't work, try port 49153.

That's it smile All other formats supported by the PS3 will play with no transcoding.

Offline

 

#3 2009-02-26 18:20:17

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: DNS-323, FLAC, and the PS3

Thank you boilerjt - this recommendation and instructions are exactly what I was looking for. I will report back this weekend after trying it out.
Thanks!

Offline

 

#4 2009-02-27 21:04:26

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: DNS-323, FLAC, and the PS3

I've gotten mediatomb installed - how do I get the other files installed? The instructions mentioned "place them in /ffp/pkg/additional.  Use funpkg -i to install them" - I don't have a /ffp/pkg folder.
Thanks.

Offline

 

#5 2009-02-27 22:33:59

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

ahughes wrote:

I've gotten mediatomb installed - how do I get the other files installed? The instructions mentioned "place them in /ffp/pkg/additional.  Use funpkg -i to install them" - I don't have a /ffp/pkg folder.
Thanks.

You need ffp 0.5 installed to installed the transcoding files.  If you have ffp 0.5, you can create this directory if it is not present.

Offline

 

#6 2009-02-27 23:39:34

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: DNS-323, FLAC, and the PS3

Okay, I installed the files and have added files to my library. Mp3s are streaming well, not yet have FLAC working (made the changes above in the config file) - will keep investigating.
Is there a way to make Mediatomb autostart when the box boots up?
Thanks for all your help.

Offline

 

#7 2009-02-28 00:53:32

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

ahughes wrote:

Okay, I installed the files and have added files to my library. Mp3s are streaming well, not yet have FLAC working (made the changes above in the config file) - will keep investigating.
Is there a way to make Mediatomb autostart when the box boots up?
Thanks for all your help.

This is from a post that expains how to autostart:

http://dns323.kood.org/forum/p22341-200 … tml#p22341

rap wrote:

Quick update that this version has been absolutely fine for me now so I have managed to modify the scipt from fonz's package to stop and start this version. No expert but the below seems to work fine when run from /ffp/start :-

#!/ffp/bin/sh

# PROVIDE: mediatomb
# REQUIRE: LOGIN

. /ffp/etc/ffp.subr

media_dir="/mnt/HD_a2/Media/Video"
LAUNCHDIR=/mnt/HD_a2/mediatomb12
export MEDIATOMB_DATADIR="$LAUNCHDIR/usr/share/mediatomb"



name="mediatomb"
command="$LAUNCHDIR/usr/bin/$name"
mediatomb_flags="-m $LAUNCHDIR -f config -d --add $media_dir"

run_rc_command "$1"

Offline

 

#8 2009-02-28 18:25:17

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: DNS-323, FLAC, and the PS3

Thanks for all your help boilerjt - you certainly have got this down.
I made the changes to config.xml for FLAC, but after I add files to mediatomb, when I'm browsing from my PS3 says there are no files in the folder. Is there something else I need to do so mediatomb will recognize the FLAC files?

Offline

 

#9 2009-02-28 19:50:21

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

ahughes wrote:

Thanks for all your help boilerjt - you certainly have got this down.
I made the changes to config.xml for FLAC, but after I add files to mediatomb, when I'm browsing from my PS3 says there are no files in the folder. Is there something else I need to do so mediatomb will recognize the FLAC files?

Here are some other things to check:

1) I am running PS3 2.60 firmware.  I don't think this would matter, but you never know...
2) From the Web UI, choose a flac song and click the edit icon.  The mimetype should be audio/x-flac.
3) From the command line, type flac to make sure the flac binary is found.
4) FYI, here is my entire config.xml for you to compare:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MT PS3</name>
    <udn>uuid:356aa704-44c1-4ddd-b15a-1cc4ef51466f</udn>
    <home>/mnt/HD_a2/mediatomb12/config</home>
    <webroot>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
    </storage>
    <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
    <!--
       Uncomment the lines below to get rid of jerky avi playback on the
       DSM320 or to enable subtitles support on the DSM units
    -->
    <!--
    <custom-http-headers>
      <add header="X-User-Agent: redsonic"/>
    </custom-http-headers>

    <manufacturerURL>redsonic.com</manufacturerURL>
    <modelNumber>105</modelNumber>
    -->
    <!-- Uncomment the line below if you have a Telegent TG100 -->
    <!--
       <upnp-string-limit>101</upnp-string-limit>
    -->
    <extended-runtime-options>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
      </mark-played-items>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      
<common-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/common.js</common-script>
      
<playlist-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="js">
<import-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import2.js</import-script>
<dvd-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import-dvd.js</dvd-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="flv" to="video/x-flv"/>
        <map from="ts" to="video/mpeg"/>
        <!-- Uncomment the line below for PS3 divx support -->
        <!-- <map from="avi" to="video/divx"/> -->
        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
        <!-- <map from="avi" to="video/avi"/> -->
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="audio/x-ms-wma" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="audio/L16" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="application/x-iso9660" as="dvd"/>
        <treat mimetype="application/x-iso9660-image" as="dvd"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <!-- Make sure to setup a transcoding profile for flv -->
      <YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="include" format="mp4" hd="no">
        <favorites user="mediatomb"/>
        <standardfeed feed="most_viewed" time-range="today"/>
        <playlists user="mediatomb"/>
        <uploads user="mediatomb"/>
        <standardfeed feed="recently_featured" time-range="today"/>
      </YouTube>
      <AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="audio/x-flac" using="flaclpcm"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="flaclpcm" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="flac" arguments="-d --endian=big --sign=signed --force-raw-format -f -o %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
    </profiles>
  </transcoding>
</config>

One other annoyance I have found with the PS3.  If I try to access the DNS-323 when the drives are spun down, the PS3 sometimes doesn't have the patience to wait for the drives to spin up.  I then also get the no files in folder.  I hope this info helps. smile

Offline

 

#10 2009-03-02 00:26:41

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: DNS-323, FLAC, and the PS3

boilerjt

1) I too am running 2.60
2) mimetype is audio/x-flac
3) typing flac gives me the copyright info (so I'm guessing the binary is found)
4) I even used your config.xml file - still says unsupported data

I've been restarting the dns as well as the ps3 and no luck. I wonder if I should just start all over because I can't get it to work yet.

Offline

 

#11 2009-03-02 08:46:17

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: DNS-323, FLAC, and the PS3

boilerjt wrote:

ahughes wrote:

Thanks for all your help boilerjt - you certainly have got this down.
I made the changes to config.xml for FLAC, but after I add files to mediatomb, when I'm browsing from my PS3 says there are no files in the folder. Is there something else I need to do so mediatomb will recognize the FLAC files?

Here are some other things to check:

1) I am running PS3 2.60 firmware.  I don't think this would matter, but you never know...
2) From the Web UI, choose a flac song and click the edit icon.  The mimetype should be audio/x-flac.
3) From the command line, type flac to make sure the flac binary is found.
4) FYI, here is my entire config.xml for you to compare:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MT PS3</name>
    <udn>uuid:356aa704-44c1-4ddd-b15a-1cc4ef51466f</udn>
    <home>/mnt/HD_a2/mediatomb12/config</home>
    <webroot>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
    </storage>
    <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
    <!--
       Uncomment the lines below to get rid of jerky avi playback on the
       DSM320 or to enable subtitles support on the DSM units
    -->
    <!--
    <custom-http-headers>
      <add header="X-User-Agent: redsonic"/>
    </custom-http-headers>

    <manufacturerURL>redsonic.com</manufacturerURL>
    <modelNumber>105</modelNumber>
    -->
    <!-- Uncomment the line below if you have a Telegent TG100 -->
    <!--
       <upnp-string-limit>101</upnp-string-limit>
    -->
    <extended-runtime-options>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
      </mark-played-items>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      
<common-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/common.js</common-script>
      
<playlist-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="js">
<import-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import2.js</import-script>
<dvd-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import-dvd.js</dvd-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="flv" to="video/x-flv"/>
        <map from="ts" to="video/mpeg"/>
        <!-- Uncomment the line below for PS3 divx support -->
        <!-- <map from="avi" to="video/divx"/> -->
        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
        <!-- <map from="avi" to="video/avi"/> -->
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="audio/x-ms-wma" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="audio/L16" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="application/x-iso9660" as="dvd"/>
        <treat mimetype="application/x-iso9660-image" as="dvd"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <!-- Make sure to setup a transcoding profile for flv -->
      <YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="include" format="mp4" hd="no">
        <favorites user="mediatomb"/>
        <standardfeed feed="most_viewed" time-range="today"/>
        <playlists user="mediatomb"/>
        <uploads user="mediatomb"/>
        <standardfeed feed="recently_featured" time-range="today"/>
      </YouTube>
      <AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="audio/x-flac" using="flaclpcm"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="flaclpcm" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="flac" arguments="-d --endian=big --sign=signed --force-raw-format -f -o %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
    </profiles>
  </transcoding>
</config>

One other annoyance I have found with the PS3.  If I try to access the DNS-323 when the drives are spun down, the PS3 sometimes doesn't have the patience to wait for the drives to spin up.  I then also get the no files in folder.  I hope this info helps. smile

Shouldn't you have changed this line as commented:

<protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->


RAP

Offline

 

#12 2009-03-02 16:43:57

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

ahughes wrote:

boilerjt

1) I too am running 2.60
2) mimetype is audio/x-flac
3) typing flac gives me the copyright info (so I'm guessing the binary is found)
4) I even used your config.xml file - still says unsupported data

I've been restarting the dns as well as the ps3 and no luck. I wonder if I should just start all over because I can't get it to work yet.

The only other thing I can suggest is to delete mediatomb.db and let MediaTomb create a new one.  This one has me stumped...

Offline

 

#13 2009-03-02 16:54:13

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

rap wrote:

boilerjt wrote:

ahughes wrote:

Thanks for all your help boilerjt - you certainly have got this down.
I made the changes to config.xml for FLAC, but after I add files to mediatomb, when I'm browsing from my PS3 says there are no files in the folder. Is there something else I need to do so mediatomb will recognize the FLAC files?

Here are some other things to check:

1) I am running PS3 2.60 firmware.  I don't think this would matter, but you never know...
2) From the Web UI, choose a flac song and click the edit icon.  The mimetype should be audio/x-flac.
3) From the command line, type flac to make sure the flac binary is found.
4) FYI, here is my entire config.xml for you to compare:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<config version="1" xmlns="http://mediatomb.cc/config/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/1 http://mediatomb.cc/config/1.xsd">
  <server>
    <ui enabled="yes" show-tooltips="yes">
      <accounts enabled="no" session-timeout="30">
        <account user="mediatomb" password="mediatomb"/>
      </accounts>
    </ui>
    <name>MT PS3</name>
    <udn>uuid:356aa704-44c1-4ddd-b15a-1cc4ef51466f</udn>
    <home>/mnt/HD_a2/mediatomb12/config</home>
    <webroot>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/web</webroot>
    <storage>
      <sqlite3 enabled="yes">
        <database-file>mediatomb.db</database-file>
      </sqlite3>
    </storage>
    <protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->
    <!--
       Uncomment the lines below to get rid of jerky avi playback on the
       DSM320 or to enable subtitles support on the DSM units
    -->
    <!--
    <custom-http-headers>
      <add header="X-User-Agent: redsonic"/>
    </custom-http-headers>

    <manufacturerURL>redsonic.com</manufacturerURL>
    <modelNumber>105</modelNumber>
    -->
    <!-- Uncomment the line below if you have a Telegent TG100 -->
    <!--
       <upnp-string-limit>101</upnp-string-limit>
    -->
    <extended-runtime-options>
      <mark-played-items enabled="no" suppress-cds-updates="yes">
        <string mode="prepend">*</string>
      </mark-played-items>
    </extended-runtime-options>
  </server>
  <import hidden-files="no">
    <scripting script-charset="UTF-8">
      
<common-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/common.js</common-script>
      
<playlist-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/playlists.js</playlist-script>
      <virtual-layout type="js">
<import-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import2.js</import-script>
<dvd-script>/mnt/HD_a2/mediatomb12/usr/share/mediatomb/js/import-dvd.js</dvd-script>
      </virtual-layout>
    </scripting>
    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="flv" to="video/x-flv"/>
        <map from="ts" to="video/mpeg"/>
        <!-- Uncomment the line below for PS3 divx support -->
        <!-- <map from="avi" to="video/divx"/> -->
        <!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 -->
        <!-- <map from="avi" to="video/avi"/> -->
      </extension-mimetype>
      <mimetype-upnpclass>
        <map from="audio/*" to="object.item.audioItem.musicTrack"/>
        <map from="video/*" to="object.item.videoItem"/>
        <map from="image/*" to="object.item.imageItem"/>
      </mimetype-upnpclass>
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="audio/x-ms-wma" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="audio/L16" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/mp4" as="mp4"/>
        <treat mimetype="audio/mp4" as="mp4"/>
        <treat mimetype="application/x-iso9660" as="dvd"/>
        <treat mimetype="application/x-iso9660-image" as="dvd"/>
      </mimetype-contenttype>
    </mappings>
    <online-content>
      <!-- Make sure to setup a transcoding profile for flv -->
      <YouTube enabled="no" refresh="28800" update-at-start="yes" purge-after="604800" racy-content="include" format="mp4" hd="no">
        <favorites user="mediatomb"/>
        <standardfeed feed="most_viewed" time-range="today"/>
        <playlists user="mediatomb"/>
        <uploads user="mediatomb"/>
        <standardfeed feed="recently_featured" time-range="today"/>
      </YouTube>
      <AppleTrailers enabled="no" refresh="43200" update-at-start="yes" resolution="640"/>
    </online-content>
  </import>
  <transcoding enabled="yes">
    <mimetype-profile-mappings>
      <transcode mimetype="audio/x-flac" using="flaclpcm"/>
    </mimetype-profile-mappings>
    <profiles>
      <profile name="flaclpcm" enabled="yes" type="external">
        <mimetype>audio/L16</mimetype>
        <accept-url>no</accept-url>
        <first-resource>yes</first-resource>
        <accept-ogg-theora>no</accept-ogg-theora>
        <agent command="flac" arguments="-d --endian=big --sign=signed --force-raw-format -f -o %out %in"/>
        <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
      </profile>
    </profiles>
  </transcoding>
</config>

One other annoyance I have found with the PS3.  If I try to access the DNS-323 when the drives are spun down, the PS3 sometimes doesn't have the patience to wait for the drives to spin up.  I then also get the no files in folder.  I hope this info helps. smile

Shouldn't you have changed this line as commented:

<protocolInfo extend="no"/><!-- For PS3 support change to "yes" -->


RAP

With PS3 version 2.60, this setting is not needed anymore.  Also with 2.60, the PS3 recognizes the mimetype video/x-msvideo so the map from avi to video/divx is not needed anymore.

Offline

 

#14 2009-03-03 05:34:34

ahughes
Member
Registered: 2009-02-25
Posts: 35

Re: DNS-323, FLAC, and the PS3

boilerjt - I reformatted, retraced all the steps, and guess what... it works. I've got the FLAC files showing up in the database and streaming nicely. Thanks for all your help getting this bad boy working! I'll try to break it from here.

Offline

 

#15 2009-03-03 06:57:40

boilerjt
Member
From: Minnesota, USA
Registered: 2008-09-15
Posts: 122

Re: DNS-323, FLAC, and the PS3

ahughes wrote:

boilerjt - I reformatted, retraced all the steps, and guess what... it works. I've got the FLAC files showing up in the database and streaming nicely. Thanks for all your help getting this bad boy working! I'll try to break it from here.

Nice! smile  At least all of this is documented and might help others as well.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB