DSM 5.0: Video Streaming & Transcoding

DSM's multimedia capabilities are brought out by packages installed on the NAS in conjunction with mobile apps / external access. The DLNA ecosystem is served with the Media Server package.

Evansport's transcoding capabilities are utilized in two packages, Video Station and Media Server. The latter enables the DS214play to act as a DLNA DMS (Digital Media Server). The various options available in the Media Server package are made clear in the gallery below.

The important points to note include the fact that folders can be set up for indexing of particular media types only and that video transcoding can be enabled for certain extensions that DLNA DMRs (Digital Media Renderers) don't commonly support (rm, rmvb, mkv). To prove that hardware transcoding works, we have a screenshot below of the resource usage and running processes on the DS214play taken while playing back a VC1 MKV clip using DLNA on a Sony KDL46EX720 TV.

Interesting aspects are pointed out in the above screen capture. Note that transcoding a 1080p VC-1 clip to 1080p H.264 consumes less than 20% CPU resources. The running processes give more insight into how hardware transcoding is utilized. We find that Synology triggers ffmpeg for this purpose. However, the options (such as -prefer_smd and -vcodec h264_smd) indicate that this is a custom build for the DS214play / Evansport platform. Before digging further, a short detour to understand the various streaming profiles is necessary.

Adaptive Bitrate Streaming

The quality of video streaming depends heavily on the network characteristics. Towards this, various adaptive bitrate streaming schemes are used. The MPEG committee's standard is called DASH (Dynamic Adaptive Streaming over HTTP) and it works by dividing the multimedia stream into segments (with each one having a MPD (media presentation description) holding the important data - URL, resolution, bitrate etc.). This scheme doesn't rely on or specify the underlying codecs. There are a number of open source implementations of the standard.

Apple has their own protocol for adaptive bitrate streaming, the HLS (HTTP Live Streaming). It also enjoys widespread software support and is publicly documented, though it is not a standard yet. Operation is similar to DASH in the sense that the stream is divided into multiple chunks, but differences come in the form of how the receiver is made aware of the available underlying streams. In the case of DASH, the MPD holds the URL, but HLS provides the list as a playlist at the start of the streaming session.

Microsoft also has its own solution, Smooth Streaming, for this purpose. High level details are available from Microsoft here. Software support for Smooth Streaming has traditionally come only from Microsoft which provides SDKs for various platforms.

There are other adaptive bitrate streaming techniques, but we chose to talk about the above three because they are amongst the transcoding profiles supported by Synology in the DS214play.

Synology's Transcoding Profiles

Synology stores transcoding aspects in various files under /volume1/@appstore/VideoStation/etc. Interesting contents are brought out in the screenshot below. Depending on the underlying architecture of the NAS, different transcoding profiles may be chosen. DS214play falls under 'evansport_2'. Other profiles (not shown in the screenshot) include x86_1, x86_2, bromolow_2 and cedarview_2.

Roku and AppleTV have special profiles. For the rest, some standard profiles are chosen. Note that anything with the _smd option can be expected to take advantage of Evansport's transcoder engine. Bitrates of the transcoded stream as well as the output audio profile can be gleaned from this data.

All this background information is fine and dandy, but I am sure readers are interested in how well does the transcoding works in practice. We are going to see a sharp polarization in opinions over this aspect. While some people are going to be extremely happy with the transcoding capabilities, others might consider the DS214play to be a disappointment in the same department.

What Works? - iOS Streaming & Compliant Files

iOS users with a library of files from cameras or other sources which don't have any type of DTS audio are most likely to be happy campers. In our tests using the DS Video app on a iPhone 4S, we found that all videos taken with camcorders (AVCHD / MPEG-2) as well as Blu-ray MKV remuxes (H.264 / VC-1) with AC3 / E-AC3 audio played back perfectly. Real Media clips in standard definition were also not a problem (though those used software transcoding). Chromecasting these clips worked without issue too.

What Doesn't? - Inconsistent Android Experience & Chromecasting, No DTS, No Plex

Unfortunately, the situation on the Android side is not that great. Due to the variety of supported formats for hardware-accelerated decode on various platforms, Synology suggests using MX Player as the decoder application for videos played via DS Video. Without the app installed, DS Video tries to play back the stream via the default Android app (Gallery / Photo) and this results in a 'Can't play video' message even on a Nexus 5 with an unaltered factory image. We did cursory testing with a Nexus 5, Samsung Galaxy Tab Pro 8.4, Samsung Galaxy Tab Pro 10.1 and an Asus Transformer TF300T. In-depth testing was done on a Nexus 4.

For our experiments, we chose a 1080p VC-1 clip with E-AC3 audio in a MKV container and DS Video on a Nexus 4. DS Video's settings include an option to select playback quality. Setting it on Auto is expected to provide the best results. However, we observed that within the local network / when external bandwidth is really good, DS Video opts to send out the unmodified VC-1 clip. With MX Player set in H/W+ decoder mode, the clip never starts playing back and we get dumped back to the DS Video interface. With H/W+ mode disabled, MX Player plays back the 1080p VC-1 clip in software mode with plenty of frame drops. In either configuration, casting the clip to a Chromecast simply didn't work. Setting the DS Video quality option to Medium gave better results. We do see transcoding getting activated within the MX Player interface, as shown in the gallery below. Unfortunately, even in this configuration, Chromecasting was a futile exercise.

Chromecasting a remuxed Blu-ray VC1 Clip (MKV) didn't work

Our experience with DS Video on an Android device and Chromecast was a mixed bag. While many media files were 'compliant' enough to be Chromecasted (H.264 (Blu-ray profile) in MKV, SD MPEG-1 / MPEG-2 / Real Media content), others simply failed to cast despite playing back on DS Video / MX Player.

We found that many of our test streams refused to play through DS Video. Synology went through some of those and determined some aspects (such as Real Audio in a HD Real Media stream, or a H.264 video with a 1920x1088 size instead of the standard 1920x1080) that couldn't be supported. We do not have any complaints about these 'difficult files' not playing back, but the bigger issue was that once an attempt to play such a file was made, the transcoder state got messed up. Any further transcoding / video serving became possible only after a restart of the system.

One of the disappointing retrogressions in the multimedia space for DSM 5.0 is the absence of a DTS license. Due to this, streams with DTS audio either don't play back through DS Video at all, or play back without audio. Apparently, Synology has been having some licensing issues with DTS, and there is no resolution in sight.

Another unfortunate aspect of the DS214play is the fact that it currently doesn't support the Plex Media Server package (SPK version 0.9.9.7.429-f80a8d6 downloaded from plex.tv). In any case, Plex has never been one to worry about hardware accelerated transcoding, and the Atom CPUs in the Evansport SoC do not perform as well as dedicated Atom CPUs such as the D270x. Given that Plex releases exist for other Evansport-based NAS units, it is not inconceivable that we will get Plex running on the DS214play in the near future.

Video Transcoding Summary

Since MX Player appears essential for DS Video on Android, it would be better if Synology works with them to make the Pro version available for all Synology NAS users who install DS Video. In addition, DS Video for Android should be smart enough to detect when transcoding is necessary, particularly if the quality settings are set to 'Auto'. In the ideal case, DS Video should be able to check up on the supported hardware codecs (and associated resolutions / bitrates) and ensure that the Video Station package on the NAS transcodes the source stream into the best possible quality in a supported codec.

On the whole, users with 'compliant' files will find the DS214play's transcoder working perfectly (as evidenced in this YouTube video), but those who don't and/or those who use Android devices end up with an inconsistent experience.

DSM 5.0: External Access DSM 5.0: Miscellaneous Multimedia Aspects
Comments Locked

45 Comments

View All Comments

  • ganeshts - Tuesday, May 20, 2014 - link

    As I mentioned in the review's Video Transcode section and also in the concluding remarks, Plex has never cared about hardware acceleration. So, yes, you are right - no HW transcode with Plex on any Evansport platform ; Only bet for hw transcode amongst NAS vendors is Synology's DSM -- just wish it was more stable :)
  • Aikouka - Tuesday, May 20, 2014 - link

    Ah, apologies because I hadn't gotten to those sections yet when I made my comment. I don't know if it's necessarily an issue of PLEX not caring, but I assume that migrating to a new version of FFMPEG isn't a simple task (I read a post from an employee saying that they use a custom version). So, if I had to guess (note: I have no affiliation with PLEX; I just read the forums sometimes), I assume that they want to wait until there's a more pressing reason to upgrade the codec.

    Although, I hope they upgrade it soon, because I've found some annoying crash-to-desktop issues with stylized subtitles in the Windows version of PLEX Home Theater. In one instance, not even Media Player Classic: Home Cinema could handle it, but in the other, it played fine.
  • imaheadcase - Tuesday, May 20, 2014 - link

    "Network throughput can't be it (I get 900Mbps over my home network moving files between PCs)."

    Right..I ditched my WHS and never looked back. Nothing it offered can't really be done with these. Unless you got some weird custom software you like to run.
  • imaheadcase - Tuesday, May 20, 2014 - link

    "Network throughput can't be it (I get 900Mbps over my home network moving files between PCs)."

    That means nothing when you are limited to hardrive speed fyi. You can have a Fiber link between PCs and still limited to slow HD on server.
  • wicketr - Tuesday, May 20, 2014 - link

    You spent time building your rig, right? How much do you value your time? $50/hr? $100/hr? I'm guessing between assembling your rig and configuring it the way you want, you probably spent 5+ hrs. If your time is worth anything of significance, then the cost of your set up far exceeds the cost of a NAS.

    Additionally, all the features of the mobile app ecosystem are non-existent for a home setup.

    A NAS is simply for people that want a easy data storage device that requires little/no time to setup, and offers a multitude of features for access to that data. It's NOT meant as a full blown server. It's a NAS. Even medium/large companies use them for those benefits of simplicity.
  • bsd228 - Tuesday, May 20, 2014 - link

    bzontins - people are paying for a smaller, lower power, turn key solution. You can get close to the size with the HP Microserver, though until the Gen 8 the cpu performance was not much better than the athlons but with much higher power draws. Until sandy bridge, general purpose cpus were too power hungry. The use of HW acceleration for transcoding is a pretty nice feature of this model, and if that continues, could turn the tide.

    turn key is worth a lot to many people, either because they don't know how to do it themselves, or because they don't want to. As the number of apps increased for these boxes, the need for running solaris or linux is somewhat diminished.
  • easp - Thursday, May 22, 2014 - link

    I hear ya. I like the theory of trading money to save myself time, except for stuff like this, I always end up doing it myself. I've even purchased cheap two drive NASs (ZyXel NSA 320) and then gone to the trouble of running debian on them.

    I just bought a mini-ITX Kabini board to build a new, faster NAS. I wish their were better options on compact 2 & 4 drive cases and low power PSUs. I prefer having two devices in different parts of the house, with one backing up the other, and I don't want to stuff a big video card in it, so the bigger cases are overkill.
  • richricard - Tuesday, June 17, 2014 - link

    I'm a bit late to the party here but I'll stick my nose in anyway. I've spent many years building countless machines of all shapes and sizes, I'm a programmer by trade, and I'd even go so far as to say I enjoy working with complex networks. But you couldn't pay me the world to change my Synology for any other NAS. Certainly the open source stuff I've looked at pales in comparison to the DSM.

    If the hardware specs are all you're weighing up then you're missing the point. Fully 50% of what your spending your money on when you buy a Synology is the OS and the apps that come with it. It's just incredible. You really just have to sit down and use one to see how simple, fully featured, and stable they are.

    I guess the bottom line for me though (and this may sound a little simplistic), is that they just work. The last thing I want to do when I get home at night is start messing around with a server, and I've never had a single issue in the 6~7 years I've been using Synology's products.

    I've also convinced quite a lot of friends and colleagues of their virtues and not one has been the least bit disappointed about buying one.

    I'm currently on my 2nd Synology and am considering moving to the 214Play, solely because I want x86 to run some bits on, but my 212+ is a shiner as well!
  • imaheadcase - Tuesday, May 20, 2014 - link

    These are made not for idiot proofing, they are made to just work. I've had mine sitting in a spare room for 2 years and has never needed to even go look at it. (4 unit 12TB) data for media.

    It streams to My TV from XBMC/Couchpotato/SABnsbd anything I throw at it, stores movies/music/etc without a hickup.

    Many businesses also have these for ease of use.

    The only difference a custom one offers is just to say you made it, it can't do anymore really than these units can. Or if it can, its just something that caters to YOU and not really other people. You don't need tons of ram for these system to get jobs done (I had a WHS original with only 512megs did all what this can do), and CPU can handle it just fine.
  • imaheadcase - Tuesday, May 20, 2014 - link

    Can't figure out how to edit, but you can also run TONS of apps with these, even ones not listed you can install on the linux side of these. you can run plex server/website/mumble server/etc.

Log in

Don't have an account? Sign up now