Streaming H.264 files on Bravia EX series

I already had a PS3 and a Humax HDR, both of which have DLNA capabilities. But when I got a new Sony Bravia KDL-40EX503 TV, I gave it a whirl to see what it would stream and what it wouldn't. Sony's documentation on the topic is predictably sparse, but it did imply support for AVC/H.264 and MPEG2 encoded HD video. I was therefore disappointed to find that only the SD MPEG2 files on my ReadyNAS Duo could be accessed through the Bravia's UI. The H.264 encodes would not show up, now matter what container they were in.

After some reading of the DLNA specifications, experimentation and debugging of the DLNA communication going back and forth to the TV, I established that the issue lay with the supported media types reported by the TV (the DLNA.ORG_PN values, for DLNA geeks). The final piece of the puzzle came via a discussion thread on a similar topic in the forum for the Servio DLNA server. The TV can in fact decode these videos, but chooses to ignore them unless they are advertised by the server with a specific media type. So I took about delving into the source code for the minidlna DLNA server used in the ReadyNAS.

After spending some time familiarising myself with the architecture (and with the C programming language as a whole which I do not use in my day job), I implemented a workaround. The modification causes minidlna to check if the client requesting the list of media files is a Bravia TV, and change the media type for the affected files to ones supported by it. Now the TV shows and plays back my H.264 files (mpg/vob/ts). Win! I submitted the patch so that it can be included in a later version of minidlna.


I don't often comment on blog posts, but just wanted to say thank you! I'm looking at buying a new TV for the bedroom, and the Sony Bravia KDL-24EX320 is looking like the favourite at the moment. I too have a ReadyNAS Duo, but had been reading on the forums that there seemed to be problems streaming video files from the ReadyNAS to Bravia TVs. Looks like this would solve any issues of playing back H.264 files though. Would I have to apply the patch manually to my miniDLNA server (how??), or just update the miniDLNA software (again, how???) as the patch will have already been built in? Thanks again!

Sorry for not seeing this earlier, I need to update the blog settings so I get notifications and not spam.

For posterity, I'm not sure whether Netgear have released newer firmware with the patch to minidlna included, I haven't been following recent developments. I re-compiled minidlna from the source code and pointed the launch script to my modified version. It was quite easy to do in the end, but if you aren't familiar with linux it's probably best to get some help from the ReadyNAS and/or minidlna forums.

Add new comment

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.

Normal input

  • Allowed HTML tags: <div> <span> <a> <em> <strong> <b> <i> <cite> <blockquote> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <img> <div> <p> <br> <h1> <h2> <h3> <h4> <h5> <h6> <table> <tr> <td> <th> <thead> <tfoot> <hr>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Drupal 7 Appliance - Powered by TurnKey Linux