MKV stuttering, lag

Hi all,

 

Some MKV content streamed on Plex for Xbox One is stuttering. I can't fast-forward or rewind, then the file starts over after a 10-20 sec lag. Also, some content starts somewhere in the middle of the MKV file. Some MKV content also just stops in the middle somewhere.

 

I run latest server (0.9.10.3.665) and latest Xbox One app.

Re-install app doesn't work. Reboot server and reboot PC doesn't work.

 

Streaming to Chromecast from Android app works better even though I can't fast forward/rewind. No stutter.

 

Sources that doesn't work well:

 

Resolution 1280x720 (16:9)
Framerate 23.976 frames/s
Ref. Frames 9
Audio English AC-3 5.1 @ 640kbps
Bitrate 7789 kbps
 
Even though same technical info on another MKV file worked 100 % earlier.
 

My settings:

 

Size of IPC buffer (in bytes) when streaming transcodes: 4194304

Transcoder quality: Prefer higher speed encoding
Segmented transcoder timeout: 60
Transcoder default duration 220
Transcoder default throttle buffer 180
 
Original values did work as bad.
 
DLNA is activated.
 
Thank you..

The version you are running 0.9.3  is 2012 vintage and VERY old.    Are you certain is is Server version 0.9.3?

Current version is 0.9.11.1.678-c48ffd2 

if indeed 0.9.3, I strongly recommend upgrading and retesting.

Are you using the plex client on xbox or the dlna, the plex client won't even work with that version.

So one of 2 things:

  1. Your on a newer version and typed it wrong
  2. You aren't using the plex client

What are your server specs?

Sorry my friends, a typo there..
 
Server version is 0.9.10.3.665, I'll install latest version straight away..
 
And I'm using the Plex app for Xbox One!

What are the specs of your server? Are you trying to watch something with subtitles?

Since mkv isn't supported for 3rd party apps yet, it has to be remuxed to a compatible format. This is not very cpu intensive, but if you are adding subtitles to the mix they have to be burned into the video on the fly so that takes a bit more.

What are the specs of your server? Are you trying to watch something with subtitles?

Since mkv isn't supported for 3rd party apps yet, it has to be remuxed to a compatible format. This is not very cpu intensive, but if you are adding subtitles to the mix they have to be burned into the video on the fly so that takes a bit more.

Running a Core 2 Duo @ 3 Ggz, 4 GB RAM.

Actually subtitles are already built-in in these videos that I've tried. Maybe that's a problem?

Otherwise I thought MKVs are transcended and that might be the issue?

Not really sure which one you have since you didn't include the model number but check here for benchmarks: https://www.cpubenchmark.net/

Give you have a core 2 it might be the case, I doubt that the remuxing to a different container is what is doing it since it is not very cpu intensive, but if you have subtitles enabled try turning them off. Another issue could be if you have dts audio which needs to be reencoded, but this isn't terribly intense either.

OK, I've tried this further and still no solution.

- Same with or without subtitles. No difference if subtitles are built-in or external srt files.

- Latest MKV file i tried I could at least go forward/rewind without issues.

Anyone else has something on this?

Thanks,

Server version is 0.9.10.3.665, I'll install latest version straight away..

I'm assuming you did this? You likely did, but just checking. I know they have been tweaking the transcoder with every release so it might help.

Also, you posted logs for the plex\web app. The server logs are the ones we need can be found looking at the following:

  1. Reporting Issues with PMS
  2. PMS Log Files

Maybe my mkv file is direct streamed and there are problems with that? https://support.plex.tv/hc/en-us/articles/200250387-Streaming-Media-Direct-Play-and-Direct-Stream

DTS is transcoded to AC3 on Plex, aren't they? Maybe that's a problem?

I'm assuming you did this? You likely did, but just checking. I know they have been tweaking the transcoder with every release so it might help.

Also, you posted logs for the plex\web app. The server logs are the ones we need can be found looking at the following:

  1. Reporting Issues with PMS
  2. PMS Log Files

Yes, I installed latest server version 0.9.11.1.678.

Find attached the log file.

I'm on Win7 32bit.

Well, from the logs you can tell that your processor is struggling. As I said in post #7, and you posted above, dts has to be transcoded to ac3. I'm guessing your processor is not up to the task. See below for log snip:

Nov 18, 2014 20:17:43:484 [9772] DEBUG - Request: [192.168.0.10:50629] GET /video/:/transcode/universal/session/9uomfrnnxa65/base/00000.ts (13 live)
Nov 18, 2014 20:17:43:484 [9772] DEBUG - Asked for segment 0 from session.
Nov 18, 2014 20:17:43:692 [30100] DEBUG - Request: [127.0.0.1:60388] PUT /video/:/transcode/session/761n8dg0upqt/progress?progress=1.7&size=-22&speed=0.5&remaining=9341 (13 live)
Nov 18, 2014 20:17:43:692 [30100] DEBUG -  * progress => 1.7
Nov 18, 2014 20:17:43:692 [30100] DEBUG -  * size => -22
Nov 18, 2014 20:17:43:692 [30100] DEBUG -  * speed => 0.5
Nov 18, 2014 20:17:43:692 [30100] DEBUG -  * remaining => 9341
Nov 18, 2014 20:17:43:711 [30100] DEBUG - HLS segment range: 0 - 122 average bitrate: 3.57 Mbps
Nov 18, 2014 20:17:43:711 [30100] DEBUG - We want 180 segments ahead, last returned was 70 and max is 122.
Nov 18, 2014 20:17:43:711 [30100] DEBUG - It took 0.000000 sec to serialize a list with 0 elements.
Nov 18, 2014 20:17:44:128 [19080] DEBUG - Request: [127.0.0.1:60392] PUT /video/:/transcode/session/9uomfrnnxa65/progress?progress=0.0&size=-22&speed=0.2&remaining=42767 (13 live)
Nov 18, 2014 20:17:44:128 [19080] DEBUG -  * progress => 0.0
Nov 18, 2014 20:17:44:128 [19080] DEBUG -  * size => -22
Nov 18, 2014 20:17:44:128 [19080] DEBUG -  * speed => 0.2
Nov 18, 2014 20:17:44:128 [19080] DEBUG -  * remaining => 42767
Nov 18, 2014 20:17:44:130 [19080] DEBUG - We want 180 segments ahead, last returned was -1 and max is -1.
Nov 18, 2014 20:17:44:130 [19080] DEBUG - It took 0.000000 sec to serialize a list with 0 elements.

Notice the place where is says * speed => 0.5, this means you are transcoding at less than realtime (realtime is anything >= 1). Do you have mkv files that don't have dts that you can test with? Look at the link in my post #7 and check out the bench mark for your processor, you never stated the model number so I wasn't able to look for it.

Thanks!

Here's what I get for my CPU:

			<a data-ipb='nomediaparse' href='https://www.cpubenchmark.net/cpu.php?cpu=Intel+Core2+Duo+E8400+%40+3.00GHz&id=955'>Intel Core2 Duo E8400 @ 3.00GHz</a>
		
			<div>74.85</div>

The strange thing is for some other content I am able to transcode DTS with no problem.

Hmm, well, your process scores better than mine. You *should* be ok with a score above 2000 (my proc actually is about 1500). I only have 1 or 2 movies that are dts however, I'll give one a shot tonight and see what happens. I didn't see anything really off in the logs, but have to admit to being a novice when it comes to what to look for in them. Hopefully someone else will chime in as well.

Thanks a lot for your effort Adam! This is damn frustrating!

Anyone else? Still same problem :(

Well I played a video with dts (only one I have) and it played fine. It was an mkv with h264 video and 5.1 dts audio. The xbox is hardwired to a 100mb switch. I know it's likely not much help, just a heads up. Maybe you could post the Media Info xml here to see more info on it. My file isn't very high bitrate either, about 4.3gb total for a 1:46 movie.

I would make sure you have all your ports forwarded and your NAT is open on the Xbox One. This literally solved all my problems with errors and lag.

It is related to the DTS, but it is inconsistent, although most of the films I have with DTS will stutter, like as frame rate issue.  I even have several films with DTS and Dolby soundtracks, and switching to the Dolby completely resolves the issue. Hopefully it'll be fixed soon =)

Thanks folks! My Xbox One has NAT open. I'll test this further.. Even did a factory reset on Xbox One.