Thursday, December 17, 2009

What is DLNA?

by AJ Peck (aka usacomp2k3)

What is DLNA? Many of you have probably heard the term before, but never fully understood what it is. Well let me do my best to break it down and help to bring some clarification to the quagmire.

All of us suffer from the lack of interoperability between devices on our home networks. There are connections for the raw feeds for audio or video between say a Blu-Ray player and a TV, but what about between the PC and the TV? If you have a video on your Home Server and you want to play it on your TV, you pretty much have to use an intermediary device such as an xbox to get that content from the server, and play it back over the TV & surround sound.

Founded in 2003, the Digital Living Network Alliance formed to try and resolve this breakdown in communication by coming up with a standard that all media-related Consumer Electronic devices can support that will let them talk to each other in a consistent and logical manner. The DLNA specification is divided into 3 groups. Home Network Devices, Mobile Handheld Devices, and Home Infrastructure Devices. This last group is basically a bridge between mobile and Home Network. I am going to focus specifically on the Home Network Devices.

The Home Network Devices are then further split up into different classes.  The classes are (paraphrasing from the dlna website):

  • Digital Media Server (DMS) – These devices store content and make it available to other devices (ex: PC, WHS, NAS)
  • Digital Media Controller (DMC) – These devices find content on the DMS and play it on a DMR. (ex: PDA, tablet)
  • Digital Media Renderer (DMR) – These devices play the actual content from a DMC. (ex: TV, receiver, wireless speakers)
  • Digital Media Player (DMP) – These devices find content on the DMS and provide playback and rendering capabilities (ex: TV, Stereo, game console)
  • Digital Media Printer (DMPr) – These devices are printers that receive content from a DMP or DMC and print it out (ex: a laser jet or ink jet printer)

As you can see, the DMP is basically a DMC and a DMR rolled into one. The role of a DMP is how most current devices function, albeit not in a standard mannerism. A Roku box can pull content from your WHS and play it on your TV, just like the xbox can. However, they don’t go about this the same way at all. If both devices DLNA devices, they would be using the same protocol to play the media file.

One interesting thing to note is that any given device can function as a single class, or can act in multiple roles. For example, you could have a cable DVR box that function as a DMP, a DMR, or also as a DMS. That’s pretty interesting. Another interesting example could be your Zune HD. If it were to completely embrace DLNA functionality (it doesn’t right now), it could play back content as a DMP or a DMR, it could control playback on other devices as a DMC, or it could send content to other devices by acting as a DMS.

All of this communication happens over IP. This means that you don’t need dedicated connections between the devices; as long as they have a network connection, they can talk to each other. Also, because it is IP based, the system doesn’t care whether you are on wired or wireless (other than bandwidth, which we will get to later), or even Bluetooth.

So great, I buy a DLNA certified (oh yeah, I haven’t yet mentioned that for devices to have the DLNA logo, they have to go through a certification process) DMP, does that mean that I will be able to play my mp4 video’s on it? Maybe. If we look at the DLNA supported formats, there are 3 classification of media. Basically pictures, audio, and video. Each device that is a DMP/DMR also has to support at least 1 of these subclasses. For each subclass that it supports, it then has to support the required formats for that subclass. This would be JPEG for pictures, LPCM (think of raw audio, like a .wav file) for audio, and MPEG2 for video. However, the devices can also support other optional formats. There are 11 optional formats that are recognized by DLNA these are: GIF, TIFF, & PNG for pictures; MP3, WMA9, AC-3, AAC, & ATRACT3plus for audio; and MPEG1, MPEG4, & WMV9 for video. To give an example, you can have a wireless picture frame that is a DMP supporting the pictures subclass. It would then have to be able to display JPEG’s stored on a DMS, but if it is capable, it might be able to display TIFF’s or GIF pictures as well.

Now the clever reader will be wondering more specifically about those formats. MPEG4 is awfully vague, as there are a multitude of different types of MPEG4 video and audio formats within that container. DLNA achieves this by specifying what they call Format Profiles”. From what I understand these primarily apply to video. Below is a chart of the formats that the Moxi Mate supports. It supports WMV, MPEG_PS & MPEG_TS (more info) as the video types and specificies both HD & SD versions of the TS stream in both European and North American standards. In the PS stream, it supports NTSC & PAL.

MoxiMate

So how does a DMC know what formats the DMS can send out or what formats the DMR can render? This gets into the slightly more technical, but for those that care, it is pretty impressive. Most readers have heard of UPnP, Universal Plug and Play. When the thinkers behind DLNA were coming up with the idea, they wanted to extend UPnP to include this media control and playback. However, for various reasons they weren’t able to. So they instead came up with a separate protocol that we know as DLNA. However, these aren’t complete strangers, they are more like cousins. The process by which DLNA devices get to know each other is very similar to the Simple Service Discovery Protocol built into UPNP. Basically, when you turn a device on, it broadcasts to the network “Hey, does anyone speak DLNA” and so any DLNA devices already on the network respond. Each device will then coordinate with each other and say what class of device they are and what formats they support, etc. That way, for example, each DMC will know what the DMS’ are on the network and so when it is asked by a user to start playing some media, it will go straight to the media that is hosted by the DMS and list those as available to the user.

The other important aspect that DLNA allows for defines the control aspects of a device. The DLNA specification states that the UPnP Audio/Video technology is the solution for media management and control. These break down into 4 different services that a DMS and a DMR can host (UPnP Lingo calls certain devices MediaServers and Media renderers, but these don’t necessarily correspond 1:1 with DLNA DMS’ & DMR’s): Content Directory Services (which lists what content is available to be played), Connection Manager Service (which determines how the content is actually transferred), AV Transport Service (which is the control aspect such as play/pause/stop/etc), & Rendering Control Service (which affects how the content is played such as volume/brightness/etc). For the control, if you look at the certificate for the HP MediaSmart Connect, it says that the device supports Play, Stop, & Pause for video and audio. These would be on the AV Transport Service side of things.

Many readers have probably already run into DLNA, whether they know it or not. Windows 7 includes what is called “play-to” which allows the PC to push content to a DMP. If you push  media to another device, Windows 7 will automatically will serve as a DMC for controlling the playback of that content (if the DMR allows it). If the media you are playing is stored on that PC, it will server as a DMS; if the media is stored on another PC that can serve as a DMS (whether it be another Win7 PC or a WHS with DMS software), it will send the content from there; if the other machine can’t, then the Win7 machine will function as both the DMC & DMS. For more information, see the link at the end for the article on the Engineering Windows 7 blog. One cool thing to point out is that even though the xbox isn’t a validated DLNA device, if you are using it in extender mode, it will show up and function as both a DMR & a DMP.

There are a couple other items I wanted to mention. The first being DRM. Can you have a protected file that is stored on the DMS and play it back on the DMR? Right now, this is still a little bit of a work-in progress. The DLNA spec talks a little about DRM. Basically, if DRM content is to be shared, the device has to support DTCP (which is the technology used for content protection over firewire). However, the device can additionally support MDRM-ND, which is a Windows Media DRM solution for network playback. The interesting thing here is that the DMS has to support the DRM spec, but on the other end, it is the DMC or DMP that does the decrypting, not the DMR. Either way, I don’t believe there is a functioning example of this connection yet, but I’m sure those will come soon (Zune Pass, please).

So what if you have an audio file on your DMS, say a .wma file, that you want to play on a DMP that does not support the playback of .wma files? One of the additional functionality of a DMS is the (optional) ability to transcode. Transcoding is basically taking a media file in one format and converting it to another format. This can be done one file at a time, in batches, or on-the-fly. TVersity, for example, is a DLNA DMS that has the ability to transcode.

As I understand it, a DMS has a specific list of format profiles that it can see, and a separate list of the format profiles it can output. The DMS tells the DMP it has all of the files that the DMS can see, regardless of whether that specific file is one that the DMS can output. The DMS will then look at the format profiles the DMP says it supports, and, if needed, will automatically trasncode the file to an output format the the DMP supports. For example, if the DMP doesn’t support .wma files, the DMS can automatically, on-the-fly, transcode the .wma file to an LPCM file that the DMP is sure to be able to support. The same can be done with video. If the DMP doesn’t support mpeg4, the DMS can convert an mpeg4 video to mpeg2 so that the DMP can play it. Some DMS software is smart enough to convert the media file to the closest available format (for example an AVC-HD to a mpeg4) which would minimize any loss of quality, instead of just converting all video the mandatorily supported MPEG2, audio to LPCM, and pictures to JPEG. The DMS can be configured to change some settings on the transcoding too, for example to only transcode to 640x480 for an SD source or low-powered DMS, while transcoding to 1920x1080 for an HD-capable DMP on a beefy DMS. (Transcoding can be hardware-accelerated by a SHED device, but I believe only Windows7 support that at this point, and anything beyond generalities are impossible to find).

So how does this relate to WHS? Well all that have read this far, will surely see how a Windows Home Server could function as a perfect DMS. It is always-on, network accessible, and is probably storing the media that you’d want to be playing anyway. It is a match made it heaven. There are numerous DMS software available for PC’s, and some can be directly integrated into WHS (Twonky comes to mind). I’m looking to do a follow-up article with some practical applications to this whole DLNA adventure, and test a myriad of supported DMS software solutions on my WHS.

So the last question is: who all is involved in this little operation? What companies have pledged to bring products to market or upgrade existing products to work with this specification? Let me throw some names out there and let me know if you have heard of them: Broadcom, Cisco, Comcast, DirecTV, HP, Intel, LG, Microsoft, Motorola, Nokia, Panasonic, Philips, Pioneer, Samsung, Sharp, Sony, & Toshiba. Those are some pretty big names that are on board with this. The future really is bright for this technology and it can only get more excited with what time will bring to us.

 

 

More reading/listening:

Thursday, October 08, 2009

So I’m about to do some pretty significant wiring changes in our house. Basically the closet in the upstairs library will be the “datacenter” with the router and tv distribution and server and media center and such. The various video/data/networks will be distributed to the library, craft room, guest room, and living room.

Here’s the basic wiring diagrams first, the “datacenter”:

diagram-Library

and next the living room:

diagram-Living Room

In terms of the wiring itself, I am going to have 2 PVC conduits leaving the closet heading up into the attic. These will each go to a different part of the house. The first will go down the wall common with the play room and library. The second will go down the wall common with the guest room, living room, and master bedroom. each conduit will head up, take a 90 degree turn towards the respective location, head across, take another 90 degree, and then head down towards the receptacle. The ovals in the diagrams above indicate when wiring will be passing through the conduit.

PS, if anyone has any recommendations for a better drawing tool than the copy of Visio 2003 that I have from work, please let me know.

Tuesday, September 15, 2009

Welcome to CEDIA:

IMG_0627 IMG_0635 IMG_0634-thumb IMG_0641IMG_0640

At the MS Booth:

CETON Tuner: IMG_0628

S1Digital WHS: IMG_0629

S1 Digital & Niveus WHS:IMG_0630

HP, VIA, Acer WHS’s: IMG_0631

HP LX195: IMG_0632

Yamaha Receiver (I just liked all the inputs): IMG_0633

Panorama of one of the halls: IMG_0636 Stitch

Dish tuner in Media Center:IMG_0642

Back of said HTPC: Note Cat5-USB adapters for tuners: IMG_0643

S1Digital mass-ripping Jukebox: IMG_0644

S1Digital Rack with multiple servers and quad-tuner setup: IMG_0645

S1Digital client: IMG_0646

Ceton quad tuner @ S1Digital Booth: IMG_0647

Panasonic portable Blu-ray player: IMG_0649IMG_0650
Panasonic 103” TV: IMG_0651

Panasonic wireless HDMI transmitter/receiver: IMG_0654

Toshiba Blu-ray Player: IMG_0657

Acer WHS: IMG_0659IMG_0658

Kaleidescape mass-ripping changer: IMG_0660

Nine-panel TV from Samsung: IMG_0665

Samsung DLNA TV: IMG_0666IMG_0668

Sony network-connected players (Blu-ray, TV, receiver):

IMG_0669

Thanks!

Tuesday, July 21, 2009

Red Ring of Death

Well I guess it finally happened. The xbox is going in tomorrow with the Red Ring of Death syndrome.

Thursday, July 16, 2009

More on Blood Centers

http://www.orlandosentinel.com/news/local/orl-asecblood-bank-probe-071609071609jul16,0,6099403.story

A Florida Senate committee is launching an investigation into the pricing practices and business connections of the state's blood-bank industry, including Metro Orlando's main blood center.

Wednesday, June 17, 2009

Front Projectors

I'd love to have a projector that had 2 settings. Setting 1 would optically zoom to a given size (say 56" for this example) in mode 1, but then zoom to a larger size (say 80") in mode 2. Since mode 1 is twice as bright as mode 2, you could set the size such that it is bright enough to view during the day with high ambient light. Mode 2 wouldn't need as much brightness, so you could afford to increase the size at night. The projector would have to save some settings in each of the modes (such as zoom, focus, and hopefully also manual offset) so that you could toggle between them in a 1-click sort of way.

In my opinion, this feature would be amazingly helpful in bringing front projectors to reality for many people who might otherwise be turned away due to the less-than-ideal daytime operation.

Tuesday, June 16, 2009

Universal Video Codec?

Hey there, looking for some insight. I'm going to be getting an HD camcorder soon, and have decided that for the matter of simplicity, I'd like to go ahead and decide on a format in which to encode all of my videos.

I'd also like to rip my DVD's and probably in the not-too-distant future my HD-DVD's and Blu-Ray's. There also various home movies that I've never taken the time to digitize, and I don't know how much life the magnetic media has left in it.

I'm a simple kinda guy so my goal was to find the best format. I realize that nothing is going to be perfect for all scenario's, but I'm willing to trade some quality for the convenience and simplicity.

I have a WHS box with 2TB of storage so far, will add more when I need it. Capacity isn't an issue. I also have 5+ computers in the house that can share in the encoding process, so the time/energy it would take to encode isn't a concern. Also, I don't mind paying for some software to help me with this process. I like to be able to enjoy shows and movies and home movies in a convenient aspect, and I'm also trying to make things as simple on my wife/family as possible.

I'd like to keep videos as close to the original as possible. That means that converting home-movies on VHS to digital would be 480i resolution with stereo. DVD's are what, 720x480 with at most 5.1? Blu-Rays are 1080p with up to 7.1 audio. I'd like to maintain surround on the sources that have surround, but I'm fine with losing some quality. Obviously I'm not planning on keeping the TrueHD or HD-MA intact, so converting that to some sort of 5.1 is perfectly acceptable. So I need a 'standard' that will scale from pretty low quality to full 1080p with surround sound.

A couple other considerations. We have a couple of Zune's in the house, so if the video can either be portable, or be simply transcoded (given a little bit of time) that is a big plus. We are a Microsoft household with a HTPC powered by Vista Media Center (which will be upgraded to Windows 7 when that comes out). I also have the xbox 360 hooked up to the TV, so playback on that is a big plus. (I'm really looking forward to the Zune-powered xbox live marketplace, but that's another conversation for another day).

What would the recommendations be? mp4/h.264 AAC? mp3? mkv? I really look forward to some insight. Thanks.

The Future of Home Audio

Here is what I see as the future of Home Audio:

Imagine if you never had to worry about speaker placement when setting up a home theater, or making sure that you had a room where you could have symmetrical placement of speakers.

They way I see the future is that of post-installation customization. You buy a receiver that includes a given number of outputs. There is no 5.1 or 7.1. Instead you get a receiver that might have, for example, 10 speaker outputs. You just plug in whatever speakers you want to into the receiver. After placing them where you want them, you turn on the calibration. Most receivers come with a simple microphone that you put in the listening position that will balance out levels. In the future, there will be a more advanced microphone that is multi-directional. You would set it up to be head-level in your seated position, pointed directly at the display and horizontally level. The next step of the EQ would be that the receiver would play a tone, say 5khz, out of each speaker. The microphone would detect exactly where the sound is coming from in 3 dimension. For example, speaker 1 could be at 15 degrees on the horizontal plane, and 5 degrees up on the vertical. Speaker 2 could be at 100 degrees on the horizontal and 15 degrees vertical. The receiver would get all of the values of the various speakers and construct a 3d representation of the speaker positioning.

Here is why my idea branches off into the short-term and the long-term. In the short-term, the source audio will still be a specific 5.1 or 7.1 audio stream. During the EQ, the receiver would take your specific speaker configuration and determine how much of each channel to put out of each speaker to give you the equivalent perspective. For instance, if you have 4 speakers in your configuration, the right “channel” of the 5.1 would just be the front-right speaker, the left “channel”, the front-left. The center channel would then be 50% right and 50% left. (Well, not actually 50% due to having to balance the levels between channels, but it would be at least equal between right and left). The EQ would then save this configuration into memory, so that every time it received 5.1 source audio, it would know exactly how to output that information. It would save the specific mappings for stereo, 5.1 and 7.1.

Now the long-term solution would be that instead of the source audio having a specific number of channels, it would instead follow the philosophy of “voices” that computer game technologies such as EAX use. The source audio would have, say, 128 voices in a given track. Each of these voices effectively a non-fixed audio channel is coordinated to specific location in the audio field at any given point in time. For example, one “voice” could be a helicopter. This sound could move around the sound stage to come from different locations at different times. Where the smarts of the EQ comes in, is that each of these voices will be processed in the receiver and will be outputted to the specific speakers that your system defined would be represent that specific location. If the audio was supposed to come from 90 degrees horizontally, in your 4 speaker configuration, it would be 50% front right and 50% rear right. This would be the equivalent setting. The receiver would process all 128 of these discreet sounds and position them exactly where they are supposed to be, tuned to your specific speaker placement.

Now the other aspect of the EQ would be calibrating for different speakers. You might have more space to put bigger speakers in the corners of the room, but you still want to have the benefit of having smaller speakers on the side to improve the positional audio. Well, the receiver would be able to have a sound profile for each speaker that would help to balance that out across the entire frequency range. Lower frequencies generally are less directional, so the receiver could do have the front speakers boost the lower-end while the small speakers in various positions would provide the directional information. Obviously in such a configuration, subwoofers would be assigned a role as pure back-up since 10-90hz range very non-directional.

The optimal way to accomplish this would be to have wireless speakers, so you don’t have to do any actual wiring. You could just run an auto-detect that would have the receiver detect all wireless speakers and give each the proper information. Once wireless power technology is available, you could then mount speakers all over the place without having to run any cables at all. It would be simple to have 20 small 6” cube speakers that you could place fairly-randomly around the room, and the receiver would do all of the processing to determine the optimal sound sound placement.

One of the main benefits of this vision is that people won’t have to sacrifice a living space to have a good movie watching experience, but could instead take any living space and turn it into a home theater without having to think about furniture arrangement. Or when you do move furniture and speakers around, all it would take is a simple calibration and things would return to optimal sound performance.

Also, in this scenario, the way to get higher-quality surround sound is to merely get more speakers. In theory, each speaker you add would improve accuracy of the positional audio. You could start off with a simple 2-speaker system and add in-ceiling speakers or bookshelf speakers or wall-mounted speakers down the road and each would improvement your home theater.

So I issue a challenge to the world of consumer electronics: Let’s make this happen.

Monday, March 30, 2009

House – Floor Plans

Here are the floor plans for the house. I’m sorry that I didn’t include dimensions or anything.

First Floor:

floor1

Second Floor:

floor2

House - Lot

Here’s the aerial view of the lot, with our best guess of the property line.

lot

House - Exterior

IMG_9874 IMG_9876 IMG_9881 IMG_9889 IMG_9891 IMG_9892

House - Entryway

IMG_9937IMG_9940IMG_9941 IMG_9942

House – Laundry Room

IMG_9913 IMG_9935

House – Dining Room

IMG_9931

House - Kitchen

 IMG_9943 IMG_9946IMG_9945 IMG_9952

IMG_9997