Page 1 of 1

DLNA to Samsung HDTV

Posted: 16 Jul 2009, 12:30
by MartinHageras
Hi!

I have just bought a Samsung B650 HDTV, which has DLNA-support.
I have not been able to play anything from the mediatomb on Bubba though.
I can access the media server from the tv, and it lists all the movies and images. It won't play any media though. Anything I try to play gives the message "Incorrect format". Even jpegs and mp3s.

I've tried playing the same videos from a USB-stick and it works fine.

Has anyone else got mediatomb working with a Samsung TV?

Grateful for any advice!

Re: DLNA to Samsung HDTV

Posted: 17 Jul 2009, 04:20
by MagnusJonsson
Hi,

I tried for a little while but when I realized that Samsung won't play streamed HD media I bought a Popcorn Hour instead. It works well, but I had to switch off Media Tomb since it could upset the Popcorn.

BR
Magnus

Re: DLNA to Samsung HDTV

Posted: 18 Jul 2009, 15:48
by MartinHageras
I found a solution that solves some of the problem:

http://starscreamlessons.blogspot.com/2 ... ung-7.html

With the config-changes in the artice above I can watch AVI:s and JPEG:s from my bubba :) Mp3's stil don't work, but that doesn't really matter to me.

Re: DLNA to Samsung HDTV

Posted: 19 Jul 2009, 06:23
by MartinHageras
Update:

After updating the TV firmware I can now play Mp3's too!
There are still some problems with different AVIs though. I get an "audio format error" for some files.

Re: DLNA to Samsung HDTV

Posted: 22 Jul 2009, 03:46
by kfudd
I have a Samsung LE32B650 model with DLNA.

It took me some time, but it got Mediatomb to work correctly with the TV. I can even stream 1080p videos to the TV providing the audio codec is not DTS. You need to manually configure your Mediatomb configuration file to make it work properly.

Let me know if you are interested in the details.

Re: DLNA to Samsung HDTV

Posted: 22 Jul 2009, 07:29
by MagnusJonsson
kfudd,

That sounds very neat. I'd really like to see how that is done, but keep your instructions on a basic level since I'm not fully fluent in Linux.
(Darn, but it sounds as if I bought a Popcorn Hour in vain, but hey that is life)

BR
Magnus

Re: DLNA to Samsung HDTV

Posted: 22 Jul 2009, 15:31
by kfudd
Magnus,

Here is the contents of my MediaTomb 'config.xml' file that works well with my Samsung LE32B650 TV:

Code: Select all

<?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>

	<interface>eth1</interface>
    
    	<ui enabled="yes">
      	    <accounts enabled="no" session-timeout="30">
            	<account user="mediatomb" password="mediatomb"/>
            </accounts>
        </ui>

        <name>bubba</name>
	<manufacturerURL>http://www.excito.com/</manufacturerURL>
	<modelname>BUBBA|TWO</modelname>
	<modelnumber>1.0.0</modelnumber>
        <udn>uuid:7460cfad-c089-468b-866e-6936039a3e2d</udn>
        <home>/var/lib/mediatomb</home>
        <webroot>/usr/share/mediatomb/web</webroot>
	
	<storage>
            <mysql enabled="yes">
		<host>localhost</host>
                <username>mediatomb</username>
                <database>mediatomb</database>
		<password>RSA5EhrKLXUV</password>
            </mysql>
        </storage>

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

        <custom-http-headers> 
            <!-- Samsung needs it --> 
            <add header="transferMode.dlna.org: Streaming"/> 
            <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/> 
        </custom-http-headers>

<!--    <extended-runtime-options>
   	<ffmpegthumbnailer enabled="yes">
		<thumbnail-size>128</thumbnail-size>
		<seek-percentage>5</seek-percentage>
		<filmstrip-overlay>yes</filmstrip-overlay>
		<workaround-bugs>no</workaround-bugs>
	</ffmpegthumbnailer>
	<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>/usr/share/mediatomb/js/common.js</common-script>
  	    <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
  	    <virtual-layout type="builtin">
    		<import-script>/usr/share/mediatomb/js/import.js</import-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="avi" to="video/x-avi"/> 
		<map from="vob" to="video/x-vob"/>
		<map from="mkv" to="video/x-mkv"/>
    	    </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="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/x-divx" as="avi"/> 
		<treat mimetype="video/mp4" as="mp4"/> 
		<treat mimetype="video/x-vob" as="avi"/>
		<treat mimetype="video/x-matroska" as="mkv"/>
	    </mimetype-contenttype>
	</mappings>
    </import>

    <transcoding enabled="no"/>

</config>

You have to back up you old config.xml file in /etc/mediatomb and copy this configuration over it.

Let me know if you need some help with the Linux stuff. ;)

SONY Bravia

Posted: 28 Sep 2009, 13:14
by pcrene
anyone some experience with Sony Bravia with network capability?

DLNA ...no bubba2 to be seen, even my laptop is not seen.

Rene

Re: DLNA to Samsung HDTV

Posted: 15 Oct 2009, 11:23
by d94ka
I have a Samsung B650 TV as well but gave up on Mediatomb after a while (I got it to work somewhat OK, but I didn't like it much). I have had more success with Minidlna (http://sourceforge.net/projects/minidlna/). It compiles without problems on Bubba and works with Samsung TV's without modifications.

There is a modified version of Minidlna that supposedly can stream subtitles the way a Samsung TV wants at http://www.plukwa.net/cgi-bin/gitweb.cg ... ;a=summary but I haven't got that to work, unfortunately.

Re: DLNA to Samsung HDTV

Posted: 15 Oct 2009, 12:28
by pcrene
Thanks,

Love to try it as soon as the second B2 has arrived, i use it as full backup and to experiment with.

Is there a howto? I am not a newbe on linux but this kind of install is new to me

Rene

Re: DLNA to Samsung HDTV

Posted: 16 Jan 2011, 10:05
by mema1540
Got MP3 playing on Samsung Series 6 TV (LE32B655) working thanks to kfudd's instruction (see above).
kfudd wrote:
Here is the contents of my MediaTomb 'config.xml' file that works well with my Samsung LE32B650 TV:

....

You have to back up you old config.xml file in /etc/mediatomb and copy this configuration over it.
Here is what I did step by step:

Login to B3 using ssh.
Login as root
Change to /etc/mediatomb/
Make backup of config.xml.
Compare config.xml with kfudd's config.xml - and identified what to change.

Edit the /etc/mediatomb/config.xmf using nano. After

Code: Select all

<protocolInfo extend="yes"/><!-- For PS3 support change to "yes" -->
add these lines:

Code: Select all

        <custom-http-headers> 
            <!-- Samsung needs it --> 
            <add header="transferMode.dlna.org: Streaming"/> 
            <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000"/> 
        </custom-http-headers>
Save file, log out.

Restart streaming services: From B3 web interface as admin: settings > services > streaming. Set all to off. Click on Update. Set all streaming back to on. (Not the most clever way to do it: most likely it can be done from the command line restarting the services.)

It worked - the Samsung TV now can play MP3's from the B3 :-)