Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

  1. #1
    Join Date
    Nov 2007
    Beans
    10

    [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    I have a Samsung UN46B8000 LCD television set to which I wanted to feed .jpg, .mp3, and other files from my computer which is running Ubuntu 9.04. Samsung televisions have included an Ethernet port and the ability to connect to a DLNA server for quite a long time.

    I used Synaptic (or apt-get) and installed MediaTomb, which is a UPnP (DLNA) server, but it didn't work as it was installed. It would show thumbnails of my .jpg files, but it said "Unsupported File Type" or something when I tried to start a slideshow, so I did the following:

    1) Enter mediatomb into a command line just so it creates a directory under my user ID. Then I exited mediatomb and edited the ~/.mediatomb/config.xml file and made the following changes:

    2) Remove the comment tags <!-- and --> that were around the <custom-http-headers> section.

    3) Add the following two lines to the <custom-http-headers> section:

    <add header="transferMode.dlna.org: Streaming"/>
    <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/>

    4) Change <protocolInfo extend="yes"/> to say "yes"; it says "no" when it is installed.

    That's it; when I started mediatomb by entering: mediatomb into a command line and then used Firefox to add some pictures and audio files to the mediatomb database, and finally used the TV remote control to go to MEDIA.P, up popped my pictures and .mp3 files. Very neat - .jpg files look great on a 46 inch High-Def monitor, and it is very cool to add or remove files on my desktop and make them available or remove them from my TV set over my home network.

    There is a good discussion at: http://forums.tversity.com/viewtopic...&sd=a&start=45 - a tip o' the hat to "crappylogin" for providing the custom header lines that fixed the problem!

  2. #2
    Join Date
    Sep 2006
    Beans
    70
    Distro
    Kubuntu 7.04 Feisty Fawn

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    Sobrien,

    Thank you for this information. I can finally get Music + Pictures streamed to my TV. I am however having problems with the video, i have tried endless encodings and no supported format . It however works fine on the PS3 and their dlna implementation...Any ideas?

  3. #3
    Join Date
    Jun 2008
    Location
    Paramaribo, Suriname
    Beans
    6
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    To be honest. This did not solve my problem. I have a Samsung LN40B650.
    As a test I installed Mediatomb on my laptop and followed these instructions. The problem remained. I can see all the content (music, pictures, movies) but I always get "Unsupported File format"
    I have no Idea that to do next.

  4. #4
    Join Date
    Feb 2008
    Beans
    8

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    Add this to your <extension-mimetype> node:

    <map from="avi" to="video/mpeg"/>

    That along with the custom http-header and you should be able to do... everything

    -Ryan

  5. #5
    Join Date
    Mar 2008
    Beans
    4

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    Got my new Samsung TV from 6-series (40" 650) to work with the custom HTTP headers, however I CAN NOT PAUSE or fwd VIDEO, just pause MP3. This makes it kind of unusable for watching video.. :-/
    Does it work for you? On a 6-series TV? Any other tweaks floating around?

    I found that some people got pause to work using the development version of mediatomb 0.12.0, I run that too but it doesn't work for me.
    http://forums.cnet.com/5208-13973_10...hreadID=333752

  6. #6
    Join Date
    Mar 2008
    Beans
    4

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    Installing SamyGO which can mount samba, nfs and upnp/dlna as virtual usb drives gives access to these features which are disabled over normal dlna.
    AND it is way cool to be able to ssh the TV

  7. #7
    Join Date
    Dec 2009
    Location
    Calgary, AB, Canada
    Beans
    1
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    Kinda rehashing what some others already said here, but this is what worked for me, and pics, mp3s and videos (DivX included) now work (including ability to pause video).
    Setup: MediaTomb 0.11, Samsung LN46A750 TV, Ubuntu 9.10.

    1) installed MediaTomb via Ubuntu's Software Center

    2) open /etc/mediatomb/config.xml in your text editor of choice

    3) remove the comment tags around the <custom-http-headers> section and make that section look like this:

    <custom-http-headers>
    <add header="transferMode.dlna.org: Streaming"/>
    <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/>
    </custom-http-headers>

    4) Under <mappings>, add <map from="avi" to="video/mpeg"/>

    5) save and close config.xml and restart mediatomb (`sudo service mediatomb restart` from command line)

    6) load MediaTomb web interface and tell it where to start looking for files. If you already had it scanning for files, they're likely to have the wrong mimetype associated with them (divx/avi videos, anyways). If so, just use the web interface to remove all the video content it had discovered (click a folder and click the red 'X' on the right-hand side), then tell it to rescan/rediscover those folders....the vids should now have video/mpeg associated with them (check by clicking the 'edit' icon for a given folder).

    Hope that helps! I only got this to work thanks to the posts here, so thanks!

  8. #8
    Join Date
    Apr 2009
    Beans
    10

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    I just brought my SAMSUNG UE40B7000 from shop and can't get .mkv's play over DLNA and Mediatomb :/ It says unsupported format..but plays just fine from USB key.
    How do I fix it?

    EDIT: Alright, I got it to work with MiniDLNA. It plays subtitles too when they are named same as mkv file. It appears tho that TV won't play mkv with multiple audio streams. Any ideas on that?
    Last edited by tomazo; December 21st, 2009 at 10:40 PM.

  9. #9
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    I've got it working, too. Full .avi and .mkv support.

    Except for some important stuff.

    I'd really like to know how to get fast-forward and rewind to work. It doesn't. It only does pause. The buttons on my remote were programmed incorrectly

    Also, Samsung does not play DTS audio. Does anyone know how to transcode just DTS audio? My server is not strong enough to transcode HD video too. The video is not the problem anyway.

    When I play back a DTS containing MKV on the tv, it plays without audio. I tried adding the profile
    Code:
          <profile name="vid-dts" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
            <agent command="ffmpeg" arguments="-y -threads 2 -i %in -acodec ac3 -ab 192000 -vcodec copy -f matroska %out"/>
            <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
          </profile>
    But now the entire file will not play anymore.

    Finally, is there a way to change the audio stream? It always plays the first one, and that is usually not the English one. MediaTomb handles this fine. It's the television that might not. I can choose the audiostream just fine in XBMC. Subtitles also.

    So anyone with the knowledge, please help!



    How to do it.

    Two people mentioned it before. Here's my version.

    MediaTomb 0.12
    Samsung 32b650

    • Edit config, for example, alt+f2 enter:
      Code:
      gksudo geany /etc/mediatomb/config.xml
    • No need to remove comments, just add:
      Code:
          <custom-http-headers>
            <add header="transferMode.dlna.org: Streaming"/>
            <add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/>
          </custom-http-headers>
    • Under <mappings>, add:
      Code:
      <map from="avi" to="video/mpeg"/>
      and change mkv into:
      Code:
      <map from="mkv" to="video/mpeg"/>
      (Because Samsung wants everything it secretly supports just to be called mpeg.)
    • Restart MediaTomb:
      Code:
      sudo /etc/init.d/mediatomb restart
    • Remove and re-add all your video's (updates mime-types)
    • Voilá!
    Last edited by Redsandro; February 4th, 2010 at 01:17 AM.
    Family members want you to install something on their Windows machine, because "you know computers"?

    Try Windows Remix. Batch-installing FOSS with a single click.

  10. #10
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [SOLVED] Using Ubuntu as a DLNA Media Server for Samsung TV

    Quote Originally Posted by tomazo View Post
    It appears tho that TV won't play mkv with multiple audio streams. Any ideas on that?
    The TV only plays the default audio stream, even if your DLNA server offers both. you can manually get rid of those other streams you don't need by remuxing the media files.
    Family members want you to install something on their Windows machine, because "you know computers"?

    Try Windows Remix. Batch-installing FOSS with a single click.

Page 1 of 5 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •