NSLU2-Linux
view · edit · print · history

Info.MediaTomb History

Hide minor edits - Show changes to markup

March 20, 2008, at 07:27 PM by avgjoe -- Question for Jin about new PS3 subtitle support
Added lines 156-162:

Jin, since I know you check this Wiki:

 http://blog.us.playstation.com/2008/03/20/firmware-v220-bringing-bd-live-to-ps3/

How much of a change is it to provide subtitle files to the PS3?? I know MediaTomb can already provide subtitles to RedSonic? players. Thanks!

March 20, 2008, at 12:17 PM by Marco --
Deleted lines 155-157:

But i can't shared all the media from the USB HDD connected to port Number 1 of my slug. Port Number 2 is for 1 Gb flash for boot linux. Thanks again.

March 19, 2008, at 09:33 AM by Marco -- Problem on Mediatomb . Shared media from second HDD
Added lines 152-158:

I installed MEDIATOMB on Unsung 6.10. All OK. Thanks to all! But i can't shared all the media from the USB HDD connected to port Number 1 of my slug. Port Number 2 is for 1 Gb flash for boot linux. Thanks again.

March 11, 2008, at 09:15 PM by mkwillis -- formatting
Changed lines 100-101 from:

The following solution I describe will explain how to get MediaTomb to run as a Daemon - i.e. a background process that auto-starts when I start my SLUG.

to:

The following solution I describe will explain how to get MediaTomb to run as a Daemon - i.e. a background process that auto-starts when I start my SLUG. It's really intended for those who are new to the SLUG and Linux in particular.

Changed line 105 from:
to:
Changed line 118 from:

3. At the telnet command line enter "ipkg update" (no quotes)

to:

3. At the telnet command line enter "ipkg update" (no quotes)

March 11, 2008, at 09:12 PM by mkwillis -- Detailed config on installing MediaTomb to SLUG
Changed lines 95-151 from:

janne5011

to:

janne5011

Edit: 11/03/2008 I had a problem with launching MediaTomb after running the "ipkg install mediatomb" command - the documentation states that we should simply be able to execute the "mediatomb" command to launch the app, but that didn't work for me so I did some playing around and finally come up with the following solution. I've noticed on the MediaTomb forums that this comes up quite a bit, so hopefully this can be seen as an addendum to the info contained in this doc.

The following solution I describe will explain how to get MediaTomb to run as a Daemon - i.e. a background process that auto-starts when I start my SLUG.

Key to this is understanding a little bit (thankfully not much!!!) about the Linux shell. - enter cd to change directories - enter ls to see the contents of the current directory

Additionally, you'll need to understand a little bit (again not much!) about the text editor "vi" to edit some of the MediaTomb files. Try the following link if you need more info on vi http://aplawrence.com/Unixart/viprimer.html - vi filename to open the specified filename in vi - i to insert at the current line - o to insert a new line after the cursor - :w to save modifications to the file - :q! to quit vi without saving changes to the file (in case you make a typo :-) )

I pretty much used the MediaTomb install info from this document.

1. Unslung my NSLU2 with the latest firmware available from http://www.slug-firmware.net 2. Telnet into NSLU2 using root account e.g. username "root" (no quotes) and my custom password 3. At the telnet command line enter "ipkg update" (no quotes) 4. After the update completes, enter "ipkg install mediatomb" (no quotes) 5. The nslu2-linux link states that you should now simply be able to enter "mediatomb" at the telnet command line and MediaTomb should launch, but that didn't work for me and that's what prompted me to look into having it run automatically when I start my SLUG 6. You need to get access to the Linux file system; type "cd /" (no quotes) at the telnet command line 7. Type "ls" (no quotes) and you'll now see all the files and directories in your current directory (this is equivalent to using the Windows "dir" command) 8. Type "cd /opt/etc/default" 9. Type "vi mediatomb" - this will launch the vi editor and enable us to alter the config file to force MediaTomb to launch on SLUG startup 10. Using the cursor keys, move the cursor down to the line which says "MT_ENABLE=false" 11. Type the letter "i" - do not use the enter key. This enters the editing mode of vi 12. Use the cursor keys to position the cursor after the "e" of false and delete the word "false" 13. Type the word "true" (no quotes) - do not use the enter key 14. Push the escape key - this exits the editing mode of vi 15. Type ":w" - this saves your changes to the mediatomb file 16. Restart your SLUG - when the SLUG restarts, the MediaTomb server is launched and this creates the magic "config.xml" file which the nslu2-linux documentation refers to!!!

That should be your service running - start your browser and view http://your.slug.ip.address:50500 - 50500 is the port on which MediaTomb runs when running as a daemon.

Via the web interface you can now add all of the media you want to share on your network - once you've done that, you should be able to start your client and browse your media.

I'm using a PS3? as a client - it may not be relevant to you, but I'll include the config steps for that in case any other lost souls with a similar configuration stumble across this thread.

1. Telnet back into the SLUG - remembering that telnet must be enabled via the SLUG web interface unless you're using ssh 2. Type "cd /" (no quotes) at the telnet comand line 3. Type "cd opt/etc/mediatomb" (no quotes) 4. Type "vi config.xml" 5. Using the cursors, navigate down through the file until you see a line which states protocolInfo extend="no" - this will actually be in between some xml tags, but from what I understand those won't be formatted properly if I post them. The important thing is that we change the "no" value to "yes" - it's vital that we only change the word no - do not change the quotes or any other characters. 6. Type "i" and move the cursor over to just after the word no. 7. Delete no and replace with yes - preserving all other characters including the quotes. 8. Navigate further down the file until you come across a line which states "Uncomment the line below for PS3? divx support" 9. Delete the characters <!-- from the start of the line and the --> from the end of the line below the one referred to in point 8. 10. Hit the escape button 11. Type ":w" (no quotes) - this saves the config file to disk. 12. Restart the SLUG and wait for it to fully initialise (the ready light remains solid instead of flashing) 13. Fire up the PS3? - remembering that you will have had to enabled the DLNA option under Network Settings on the PS3? XMB.

March 10, 2008, at 09:15 AM by Jin -- added instructions for the new init script
Changed line 15 from:

For full PS3 suport, edit/update the file: ~/.mediatomb/config.xml

to:

For full PS3 suport, edit/update the file: ~/.mediatomb/config.xml (or /opt/etc/mediatomb/config.xml if you are running in daemon mode)

Changed lines 25-30 from:

To run MediaTomb on startup, create the necessary script file in /opt/etc/init.d

 #!/bin/sh

 /opt/bin/mediatomb --config /root/.mediatomb/config.xml --home /root/
to:

To run MediaTomb on startup, edit /opt/etc/default/mediatomb and set MT_ENABLE to true.

Start the daemon:

 /opt/etc/init.d/S90mediatomb start

In this configuration MediaTomb will listen on port 50500, this behavior can be changed by editing /opt/etc/mediatomb.conf and restarting the server which can by done by:

 /opt/etc/init.d/S90mediatomb restart

If you encounter strange behavior or are not sure what is going on, have a look at the log output which will be located in /opt/var/log/mediatomb

The config.xml and the database of the daemon configuration will be located in /opt/etc/mediatomb after the first launch.

December 19, 2007, at 01:17 AM by dshipp --
Changed lines 52-53 from:

<map from="avi" to="video/x-divx"/>

to:
 <map from="avi" to="video/x-divx"/>
December 19, 2007, at 01:16 AM by dshipp --
Changed line 51 from:

MediaTomb is no exception, the reason for this is because the DivX?/XVid? file are being served with a mime-type the PS3? can't handle (typically "video/x-msvideo". To fix this we need to force MediaTomb to use a mime-type that the PS3? can understand. The following change should be made to the ~/.mediatomb/config.xml file. Within the <mappings><extension-mimetype> node, you will see several <map> nodes, add one more map node as follows:

to:

MediaTomb is no exception, the reason for this is because the DivX?/XVid? file are being served with a mime-type the PS3? can't handle (typically "video/x-msvideo"). To fix this we need to force MediaTomb to use a mime-type that the PS3? can understand. The following change should be made to the ~/.mediatomb/config.xml file. Within the <mappings><extension-mimetype> node, you will see several <map> nodes, add one more map node as follows:

December 19, 2007, at 01:15 AM by dshipp -- Provided information on getting DivX to stream to PS3
Added lines 47-55:

PS3? DivX? playback issue

As of firmware version 2.10, the PS3? has support for DivX?/XVid? files. Many people have reported that DivX?/XVid? files play fine from a USB key or DVD-R, but that get "Unsupported Data" when they attempt to play them from a uPnP server.

MediaTomb is no exception, the reason for this is because the DivX?/XVid? file are being served with a mime-type the PS3? can't handle (typically "video/x-msvideo". To fix this we need to force MediaTomb to use a mime-type that the PS3? can understand. The following change should be made to the ~/.mediatomb/config.xml file. Within the <mappings><extension-mimetype> node, you will see several <map> nodes, add one more map node as follows: <map from="avi" to="video/x-divx"/>

This will force the mime-type to the "video/x-divx" type, which the PS3? understands. However, you should note that this only applies to media you add to the MediaTomb database from now on (and you will need to restart MediaTomb also) - all existing media in the database will still have the old mime-type, so you should either manually edit the mime-type in the web interface or remove it and re-add it.

December 05, 2007, at 06:27 PM by janne5011 -- info about use mediatomb with USB stick
Changed lines 76-79 from:

Jin

to:

Jin

Its necessery you dont have the db file on usb stick it got corrupted becuse sqllite corrpupts the database. If change it path to in the config.xml to external HD it works. janne5011

August 13, 2007, at 02:29 AM by fcarolo -- formatting
Changed lines 49-58 from:

ptrapnes - NSLU2 266MHz running MediaTomb 0.10.0 on Debian4.0 used as Media server for my PlayStation3

           Speed no problem (mp3), the same slung run one mt-daap server with 16000 mp3's.

 thx1011 - NSLU2 (Normal speed - 133MHZ) running Mediatomb on OpenSlug 2.7 with media streamer D-LINK DSM-320 (firmware 1.05eu).
           Speed when browsing media is OK. Streaming is most of the times ok. 
           D-Link is connected wireless to the Slug via AP, and that can be a problem when streaming high level action scenes.

semasta - NSLU2 266Mhz and MediaTomb 0.10.0 on uNSLUng with an wireless dnt IPdio? (=Scott RXi? 300WL).

           Works perfekt, streaming ok.
to:
ptrapnes - NSLU2 266MHz running MediaTomb 0.10.0 on Debian4.0 used as Media server for my PlayStation3.
Speed no problem (mp3), the same slung run one mt-daap server with 16000 mp3's.
thx1011 - NSLU2 (Normal speed - 133MHZ) running Mediatomb on OpenSlug 2.7 with media streamer D-LINK DSM-320 (firmware 1.05eu).
Speed when browsing media is OK. Streaming is most of the times ok.
D-Link is connected wireless to the Slug via AP, and that can be a problem when streaming high level action scenes.
semasta - NSLU2 266Mhz and MediaTomb 0.10.0 on uNSLUng with an wireless dnt IPdio (=Scott RXi 300WL).
Works perfect, streaming ok.
August 11, 2007, at 05:59 AM by semasta --
Added lines 56-58:

semasta - NSLU2 266Mhz and MediaTomb 0.10.0 on uNSLUng with an wireless dnt IPdio? (=Scott RXi? 300WL).

           Works perfekt, streaming ok.
July 29, 2007, at 12:55 AM by CaptainLinger --
Changed lines 27-29 from:
  1. !/bin/sh

/opt/bin/mediatomb --config /root/.mediatomb/config.xml --home /root/

to:
 #!/bin/sh

 /opt/bin/mediatomb --config /root/.mediatomb/config.xml --home /root/
July 29, 2007, at 12:54 AM by CaptainLinger -- Fix for start on boot
Changed lines 25-26 from:

To run MediaTomb on startup, create the necessary script file in /opt/etc/init.d:

to:

To run MediaTomb on startup, create the necessary script file in /opt/etc/init.d

July 29, 2007, at 12:47 AM by CaptainLinger -- Running mediatomb on boot
Added lines 25-29:

To run MediaTomb on startup, create the necessary script file in /opt/etc/init.d:

  1. !/bin/sh

/opt/bin/mediatomb --config /root/.mediatomb/config.xml --home /root/

July 20, 2007, at 07:25 PM by fcarolo -- removed false wikilinks
Changed lines 21-22 from:
 2007-05-28 15:56:36    INFO: http://192.168.1.101:49152
to:
 2007-05-28 15:56:36    INFO: http://192.168.1.101:49152
Changed lines 33-34 from:

Add this line to the end of sources.list: deb http://apt.mediatomb.cc/ etch main

to:

Add this line to the end of sources.list: deb http://apt.mediatomb.cc/ etch main

Changed line 43 from:

ptrapnes - NSLU2 266MHz running MediaTomb 0.10.0 on Debian4.0 used as Media server for my PlayStation3?

to:

ptrapnes - NSLU2 266MHz running MediaTomb 0.10.0 on Debian4.0 used as Media server for my PlayStation3

July 20, 2007, at 07:24 PM by fcarolo -- removed false wikilinks
Changed lines 1-2 from:

MediaTomb is a UPnP mediaserver, it allows you to browse and stream your content using a UPnP? mediarenderer. The server has been tested with the Philips Streamium devices (SL300i/SL400i/MX6000i) and is also known to work with the D-Link DSM-320. Other UPnP? mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

to:

MediaTomb is a UPnP mediaserver, it allows you to browse and stream your content using a UPnP mediarenderer. The server has been tested with the Philips Streamium devices (SL300i/SL400i/MX6000i) and is also known to work with the D-Link DSM-320. Other UPnP mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

Changed line 15 from:

For full PS3? suport, edit/update the file: ~/.mediatomb/config.xml

to:

For full PS3 suport, edit/update the file: ~/.mediatomb/config.xml

Changed lines 29-38 from:

wget http://apt.mediatomb.cc/key.asc -O- -q | sudo apt-key add -

nano /etc/apt/sources.list

Add this line to the end of sources.list: deb http://apt.mediatomb.cc/ etch main

run apt-get update

apt-get install mediatomb

to:
 wget http://apt.mediatomb.cc/key.asc -O- -q | sudo apt-key add -

 nano /etc/apt/sources.list

Add this line to the end of sources.list: deb http://apt.mediatomb.cc/ etch main

 run apt-get update

 apt-get install mediatomb
July 17, 2007, at 08:44 PM by ptrapnes --
Changed lines 11-14 from:

run from the command line

mediatomb

to:

run from the command line: mediatomb

July 17, 2007, at 08:43 PM by ptrapnes --
Added line 38:
Changed lines 46-47 from:
           Speed no problem (mp3), the same slung run one mt-daap server med 16000 mp3's.
to:
           Speed no problem (mp3), the same slung run one mt-daap server with 16000 mp3's.
July 16, 2007, at 09:33 PM by ptrapnes --
Changed line 44 from:

ptrapnes - NSLU2 266MHz running MediaTomb0?.10.0 on Debian4.0 used as Media server for my PlayStation3?

to:

ptrapnes - NSLU2 266MHz running MediaTomb 0.10.0 on Debian4.0 used as Media server for my PlayStation3?

July 16, 2007, at 09:32 PM by ptrapnes -- Updated installation help
Changed lines 7-8 from:

MediaTomb packages for OpenSlug and Optware are now available, you will find them via the Package Search Engine, or just run 'ipkg update'. I do not have the appropriate hardware, so please test them!

to:

MediaTomb packages for OpenSlug and Optware are now available, you will find them via the Package Search Engine, or just run 'ipkg update'.

Install with: ipkg install mediatomb

run from the command line

mediatomb

“Ctrl + C” to interrupt the program

For full PS3? suport, edit/update the file: ~/.mediatomb/config.xml Just after where it says <server> insert this line: <protocolInfo extend="yes"/>

run mediatomb

look for the last information, looks something like this:

 2007-05-28 15:56:36    INFO: http://192.168.1.101:49152

the last part is your link in to MediaTomb configuration screen.

  • Installation under Debian 4.0*

First set up for download:

wget http://apt.mediatomb.cc/key.asc -O- -q | sudo apt-key add -

nano /etc/apt/sources.list

Add this line to the end of sources.list: deb http://apt.mediatomb.cc/ etch main

run apt-get update apt-get install mediatomb

the rest is the same as for Unslung......

Added lines 44-46:

ptrapnes - NSLU2 266MHz running MediaTomb0?.10.0 on Debian4.0 used as Media server for my PlayStation3?

           Speed no problem (mp3), the same slung run one mt-daap server med 16000 mp3's.
April 07, 2007, at 03:30 PM by lww -- added URL tu website
Added lines 3-4:

Website: http://mediatomb.cc/

February 15, 2007, at 08:44 PM by fcarolo -- fixed wiki links, moved info about packages to the top
Changed lines 1-2 from:

MediaTomb is a UPnP? mediaserver, it allows you to browse and stream your content using a UPnP? mediarenderer. The server has been tested with the Philips Streamium devices (SL300i?/SL400i?/MX6000i?) and is also known to work with the D-Link DSM-320. Other UPnP? mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

to:

MediaTomb is a UPnP mediaserver, it allows you to browse and stream your content using a UPnP? mediarenderer. The server has been tested with the Philips Streamium devices (SL300i/SL400i/MX6000i) and is also known to work with the D-Link DSM-320. Other UPnP? mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

Changed lines 5-7 from:
 To install MediaTomb on the NSLU2 when using OpenSlug, follow these instructions: HowTo.Mediatomb?
to:

MediaTomb packages for OpenSlug and Optware are now available, you will find them via the Package Search Engine, or just run 'ipkg update'. I do not have the appropriate hardware, so please test them!

Added lines 13-14:

Changed line 17 from:

What steps did you do to get Mediatomb working? Could you maybe go to here ... http://www.nslu2-linux.org/wiki/Info/MediaTomb

to:

What steps did you do to get MediaTomb working? Could you maybe go to here ... http://www.nslu2-linux.org/wiki/Info/MediaTomb

Changed line 23 from:

we are planning to bring out MediaTomb packages for the NSLU2, this should happen with the 0.9.0 release. I already did some tests and was able to cross compile a minimalistic version. We have to port spidermonkey and taglib, the other libraries are already present.

to:

we are planning to bring out MediaTomb packages for the NSLU2, this should happen with the 0.9.0 release. I already did some tests and was able to cross compile a minimalistic version. We have to port spidermonkey and taglib, the other libraries are already present.

Changed line 28 from:

MediaTomb packages for OpenSlug and Optware are now available, you will find them via the Package Search Engine. I do not have the appropriate hardware, so please test them!

to:

MediaTomb packages for OpenSlug and Optware are now available, you will find them via the Package Search Engine. I do not have the appropriate hardware, so please test them!

February 15, 2007, at 06:46 PM by Jin --
Added line 26:

Edit: 15/02/2006

February 15, 2007, at 06:46 PM by Jin --
Added lines 24-27:

Jin

MediaTomb packages for OpenSlug and Optware are now available, you will find them via the Package Search Engine. I do not have the appropriate hardware, so please test them! Thanks,

October 22, 2006, at 07:54 PM by Jin --
Added line 20:

Edit: 22/10/2006

October 22, 2006, at 07:53 PM by Jin -- NSLU2 support in the upcoming MediaTomb 0.9.0 release
Changed lines 18-23 from:

Cheers, Smiley

to:

Cheers, Smiley

Hi, we are planning to bring out MediaTomb packages for the NSLU2, this should happen with the 0.9.0 release. I already did some tests and was able to cross compile a minimalistic version. We have to port spidermonkey and taglib, the other libraries are already present. Greetings, Jin

October 02, 2006, at 01:49 AM by Smiley -- How did you do it?
Added lines 13-18:

Edit: MOB 02/10/2006 Hi Thx1011, What steps did you do to get Mediatomb working? Could you maybe go to here ... http://www.nslu2-linux.org/wiki/Info/MediaTomb and explain how you did it. Did you compile it yourself, etc, etc. Cheers, Smiley

December 31, 2005, at 05:48 AM by thx1011 -- Sucess stories and link to mediatomb installation
Changed lines 1-13 from:

MediaTomb is a UPnP? mediaserver, it allows you to browse and stream your content using a UPnP? mediarenderer. The server has been tested with the Philips Streamium devices (SL300i?/SL400i?/MX6000i?) and is also known to work with the D-Link DSM-320. Other UPnP? mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

to:

MediaTomb is a UPnP? mediaserver, it allows you to browse and stream your content using a UPnP? mediarenderer. The server has been tested with the Philips Streamium devices (SL300i?/SL400i?/MX6000i?) and is also known to work with the D-Link DSM-320. Other UPnP? mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

How to install:

 To install MediaTomb on the NSLU2 when using OpenSlug, follow these instructions: HowTo.Mediatomb?

Sucess Stories:

 thx1011 - NSLU2 (Normal speed - 133MHZ) running Mediatomb on OpenSlug 2.7 with media streamer D-LINK DSM-320 (firmware 1.05eu).
           Speed when browsing media is OK. Streaming is most of the times ok. 
           D-Link is connected wireless to the Slug via AP, and that can be a problem when streaming high level action scenes.
December 18, 2005, at 04:41 PM by mward -- MediaTomb is a UPnP mediaserver
Added line 1:

MediaTomb is a UPnP? mediaserver, it allows you to browse and stream your content using a UPnP? mediarenderer. The server has been tested with the Philips Streamium devices (SL300i?/SL400i?/MX6000i?) and is also known to work with the D-Link DSM-320. Other UPnP? mediarenderers should also work, please send us your success stories or problem reports so we can create a list of supported devices.

view · edit · print · history · Last edited by avgjoe.
Based on work by Marco, mkwillis, Jin, dshipp, janne5011, fcarolo, semasta, CaptainLinger, ptrapnes, lww, Smiley, and thx1011.
Originally by mward.
Page last modified on March 20, 2008, at 07:27 PM