Compiling Mediatomb on Ubuntu 12.04 with support for Samsung Smart TVs
Overview
I recently bought a 40" Samsung LED Smart TV (UN40ES6100F) as a second TV for the bedroom. My primary TV, a 52" Samsung LCD, lives in the living room and is connected to a HTPC with XBMC, an xbox 360, turntable and a receiver and a 5.1 surround sound system.
My goal with the new TV was to keep it simple. Hang it in the bedroom, stream content to it. The TV comes with an app called AllShare, which is designed to allow you to stream personal media files to it. It turns out that AllShare uses DLNA (an open standard), which uses UPNP for media management, discovery and control.
Great, I thought. There are a number of linux programs for streaming media via DLNA, and after a quick search, I decided to use Mediatomb. After a quick apt-get install mediatomb
, I was on my way. Or so I thought. At this point, after launching the AllShare app on my TV, I was able to view the mediatomb share, though the share was empty. Bug reports reported that the new Samsung Smart TVs violate RFC2396, for which a patch was provided. The fix for this bug is provided in the previous link, but the instructions were a bit confusing, so here is how I patched mediatomb to work with my new Samsung Smart TV.
Too lazy, didn't read
Installing mediatomb, with the patch
All of these steps were performed as root and you should be able to copy and paste them. Let me know if this does not work.
The config file
Great success!
You should now be able to browse to the mediatomb web interface on port 49152, add directories to the database, and then launch your AllShare app to browse and play your media files.