Author Topic: High bitrate MKV streaming  (Read 17169 times)

Offline Bytec

  • X3D Skin Designer
  • Experienced Member
  • ***
  • Posts: 242
  • Helpful Contribution Status: +7/-0
Re: High bitrate MKV streaming
« Reply #15 on: January 23, 2014, 06:06:56 am »
What is the reason why you are not considering NFS and stick to Samba?

Currently the samba peformance on Mede8er side is on max performance tuned - so you will not get anything more from it the rest of your network is configured right.

That would mean I have to implement NFS on all the content sources on my LAN and that would be troublesome.
MED1000X3D -> DENON AVR 1611B -> SAMSUNG Plasma TV PS64F8500

Offline Maasbommel

  • Global Moder8or
  • M8er Addict
  • *****
  • Posts: 11 503
  • Helpful Contribution Status: +51/-8
Re: High bitrate MKV streaming
« Reply #16 on: January 23, 2014, 11:43:37 am »
?? Not at all, you can use both on a NAS.
So go from a pc to your NAS shares using Samba, and connect with your mede8er to same share using NFS.
Read the  Mede8er 400X/500X Beginners Guide
or Mede8er 500X2/400X2/450X2 Beginners Guide

Also check the Couto X3D Newbies Guide first.

Please don't PM me but post on the forum.

Offline Bytec

  • X3D Skin Designer
  • Experienced Member
  • ***
  • Posts: 242
  • Helpful Contribution Status: +7/-0
Re: High bitrate MKV streaming
« Reply #17 on: January 23, 2014, 12:06:06 pm »
?? Not at all, you can use both on a NAS.
So go from a pc to your NAS shares using Samba, and connect with your mede8er to same share using NFS.

Of course I can use both protocols at the same time, but my content can be in any of 3 places (drobo 5N, QNAP, PC) so I would need to have NFS on all 3 if I want to access them from Mede8er.


I will run some NFS tests with my QNAP this evening and report back.
MED1000X3D -> DENON AVR 1611B -> SAMSUNG Plasma TV PS64F8500

Offline Bytec

  • X3D Skin Designer
  • Experienced Member
  • ***
  • Posts: 242
  • Helpful Contribution Status: +7/-0
Re: High bitrate MKV streaming
« Reply #18 on: January 26, 2014, 08:18:38 am »
So I have done a couple tests.

- NFS streaming was slightly better, but still unacceptable - stuttering was just a little less than in SMB mode;

- forced Mede8er into 100Mbps mode (patch cable with only 1,2,3,6 pins connected) hoping it would tax CPU less (this trick worked for Popcorn Hour C-200) and therefore more CPU would be available for playback. Unfortunately this also did not help. I guess this is mainly data stream buffer under run problem.

So I'm still left with the only option to play these high bit rate files from local HDD inside Mede8er.
Hope that future FW would bring some improvements in this matter.
MED1000X3D -> DENON AVR 1611B -> SAMSUNG Plasma TV PS64F8500

Offline Maasbommel

  • Global Moder8or
  • M8er Addict
  • *****
  • Posts: 11 503
  • Helpful Contribution Status: +51/-8
Re: High bitrate MKV streaming
« Reply #19 on: January 26, 2014, 09:51:39 am »
When you were streaming on NFS - did you toggle the NFS rzise setting to 32k in Mede8er netowork setup?

Only if you can use 32k Rsize on NFS it will make a big difference compared to samba streaming.
Ofcourse your NFS server side needs to support it.

Here some post howto get 32k rsize on a Qnap:
http://www.mede8erforum.com/index.php/topic,9772.msg61498.html#msg61498
Read the  Mede8er 400X/500X Beginners Guide
or Mede8er 500X2/400X2/450X2 Beginners Guide

Also check the Couto X3D Newbies Guide first.

Please don't PM me but post on the forum.

Offline jer1956

  • Global Moder8or
  • M8er Addict
  • *****
  • Posts: 16 965
  • Helpful Contribution Status: +184/-37
Re: High bitrate MKV streaming
« Reply #20 on: January 26, 2014, 10:47:41 am »
Of course I can use both protocols at the same time, but my content can be in any of 3 places (drobo 5N, QNAP, PC) so I would need to have NFS on all 3 if I want to access them from Mede8er.


I will run some NFS tests with my QNAP this evening and report back.

You would only need to use NFS where you unhappy with Samba.  Jukebox+ will happily create a combined jukebox with a mix of samba and NFS. 

Offline Bytec

  • X3D Skin Designer
  • Experienced Member
  • ***
  • Posts: 242
  • Helpful Contribution Status: +7/-0
Re: High bitrate MKV streaming
« Reply #21 on: January 30, 2014, 06:40:12 pm »
Well here are some network measurements (1 second resolution) while playing or copying the same file from QNAP to Mede8er or PC via SMB.

PC, Mede8er and QNAP are connected to the same Gigabit switch and no other devices are connected!


First let's look how fast Mede8er can copy this large file via SMB to internal HDD.


And now let's look how fast my PC can copy this large file via SMB to internal HDD.


We can see that Mede8er is only capable of sustained data rate of about 93.6 Mbps, but in case of my PC it is around 322.0 Mbps. Quite a difference I'd say!

--------------

Now lets see what happens while Mede8er is playing the same file.

While playing this file there are a lot of stuttering going on. Data stream is about 48 Mbps that matches what MediaInfo reported about this file.

Now lets see what happens while my PC is playing the same file.

While playing this file there where no stuttering!

--------

Notice the big spike in the beginning (PC playback graph) - that is content buffering before starting playback!
If you look on Mede8er playback graph, then you can see that there is no such buffering going on at the beginning...

I conclude, that Mede8er has quite small playback buffer and therefore frequently run into buffer under-run problems that cause stuttering.

In fact I confirmed that by starting playback on Mede8er and then while playing this file I disconnected the network cable - playback stopped almost immediately. That's exactly what would happen in case of very small playback buffer.

I used to do the same test (play and disconnect network) on my PCH C-200 and playback continued for few seconds.
That indicates large playback buffer.


So, here are measurements that tell a lot.
QNAP is more than capable to stream high bit rate content. Mede8er is the bottleneck - insufficient buffering and weak network interface.

I hope developers will find a way to increase data buffer and improve networking part of Mede8er.
MED1000X3D -> DENON AVR 1611B -> SAMSUNG Plasma TV PS64F8500

Offline Bytec

  • X3D Skin Designer
  • Experienced Member
  • ***
  • Posts: 242
  • Helpful Contribution Status: +7/-0
Re: High bitrate MKV streaming
« Reply #22 on: February 02, 2014, 09:32:59 am »
Just wanted to close this thread with my final solution.

I had to set MED1000X3D to use NFS with UDP and 32K rsize AND disable Jumbo frames on my server (drobo 5N).

UDP has less protocol processing overhead and Jumbo frames must be disabled because apparently MTU size is not negotiated in UDP and therefore large MTU packets get lost...
MED1000X3D -> DENON AVR 1611B -> SAMSUNG Plasma TV PS64F8500

Offline Maasbommel

  • Global Moder8or
  • M8er Addict
  • *****
  • Posts: 11 503
  • Helpful Contribution Status: +51/-8
Re: High bitrate MKV streaming
« Reply #23 on: February 02, 2014, 11:52:35 am »
Thanks for this feedback Bytec.

Closed this thread as by your request.
Read the  Mede8er 400X/500X Beginners Guide
or Mede8er 500X2/400X2/450X2 Beginners Guide

Also check the Couto X3D Newbies Guide first.

Please don't PM me but post on the forum.