1.7.x creates (some) MKV files that won't stream to (some) Plex clients without transcoding

Well, without logs, it’s impossible to say. If you could provide some, I’ll take a look when I get a chance.

Ok did some more testing with 1.7.2, and there definitely is a problem but only on certain channels (one of which happened to be the one I tested with previously).

Sequence was:
Upgraded to 1.7.2
Did sample recordings from several HD stations, all played back correctly except for 10HD and 9HD (not powerful enough to transcode video error).
Confirmed previous recordings (from 1.5.5) played under 1.7.2
Downgraded back to 1.5.5
Confirmed MKV recordings from 10HD and 9HD made under 1.7.2 still wouldn’t play
Made new recordings from 10HD and 9HD under 1.5.5 and confirmed that they did play (one was still the same show being broadcast, 1.7.2 recordings wouldn’t play, 1.5.5 ones would).

@DaveBinM appreciate the offer, which logs exactly would you need? I can send through XML of the working and non-working 9HD recordings if that help, and/or the files themselves.

Edit: Installed the Win10 Plex client and that plays back both versions of the recordings, so at least part of the problem lies in the PS4 client. That hasn’t been updated in a while so quite possibly just a bug in the playback negotiations through adding something in the container that the PS4 client doesn’t understand.

@cayars apologies I never saw or acknowledged your post some time back on this either.

XML of working 1.5.5 recording:

Non-working 1.7.2 recording from same channel (10HD Melbourne):

nothing showed up

@cayars said:
nothing showed up

Yeah it showed in edit mode but wasn’t rendering when read, didn’t notice when I saved it. I’ve edited the post now and added them as attachments.

The client logs and the PMS logs would be good :slight_smile:

I need Plex logs for idiots instructions sorry :blush: Would logs have been generated by default for previous recordings that I can supply, or do I need to enable this and then run a recording? Where can I access the client and server logs specifically?

[Edit] I can see the PMS log instructions in @DaveBinM 's sig, so I’m just looking for instructions on generating a log from the Android TV client now.

@Philip82c For Android TV, this should help: https://support.plex.tv/hc/en-us/articles/201573117-Android-Android-TV-and-Fire-TV-Logs

Also, some information about your location, the channel you were recording, and when it was could be useful too. :slight_smile:

@DaveBinM do you know if the PS4 client has accessible logs? PS4 stuff tends to be pretty black box.

I’ve attached the PMS logs. The upgrade/test/downgrade cycle was run between about 4:45PM and 5:35PM yesterday.

@lennier76 That’s a pretty massive window for logs. There’s a “send logs to server” option in the PS4 app. Can you tell me what content you were trying to play?

@DaveBinM said:
@lennier76 That’s a pretty massive window for logs. There’s a “send logs to server” option in the PS4 app. Can you tell me what content you were trying to play?

Thanks I’ll check that out on the PS4. The non-working mkv file (XML posted earlier) was recorded at 16:59 and would have been attempted to be played just after that.

The working TS file from the same channel (XML also posted above) was recorded at 17:32 and would also have been played just after that.

@lennier76 Can you check if you have debug logging enabled on the server? I’m not seeing any evidence in there of DVR recordings.

Ok, server log attached - I’ll have to post the client log later when I’m home.

Most recent recording:
Rage 1:26am-2:35am 1/6/17
Recorded from ABC1 Melbourne

@DaveBinM said:
@lennier76 Can you check if you have debug logging enabled on the server? I’m not seeing any evidence in there of DVR recordings.

Ah, quite likely not if it’s not on by default. I’ll need to do another test upgrade and recording in that case.

@lennier76 Once you’ve got debug enabled and some fresh logs, let me know. :slight_smile:

New logs attached @DaveBinM. Enabled logging from PS4 client to the server then attempted playback of non-working MKV file at about 12:22pm followed by successful playback of working TS file immediately after.

Taking a quick look myself I think I can already see the problem:

Jun 03, 2017 12:22:20.850 [0x3c67b470] INFO - [ui-ps4-ps4] [Player] Can direct stream? true (isAllowed: true)
Jun 03, 2017 12:22:21.462 [0x353ed470] WARN - [ui-ps4-ps4] [MDE] Invalid profile property; frameRate: 50 > 30
Jun 03, 2017 12:22:22.379 [0x353ed470] WARN - [ui-ps4-ps4] [MDE] Unable to play; server unable to transcode video
Jun 03, 2017 12:22:22.684 [0x2efdb470] INFO - [ui-ps4-ps4] [MDE] Finished analysis of 1080 (mkv, h264, ac3, 40, high)
Jun 03, 2017 12:22:22.990 [0x3c67b470] INFO - [ui-ps4-ps4] canPlay: false
Jun 03, 2017 12:22:23.295 [0x2efdb470] INFO - [ui-ps4-ps4] canDirectPlay: false
Jun 03, 2017 12:22:23.600 [0x3c67b470] INFO - [ui-ps4-ps4] canDirectStreamVideo: false
Jun 03, 2017 12:22:23.907 [0x2efdb470] INFO - [ui-ps4-ps4] canDirectStreamAudio: false

Looks like some framerate/fieldrate confusion in the way they’re packaging the streams, which I think was also evident in the XML.

@lennier76 I’ll have a look shortly and get back to you when I can. (Busy times at the moment!)

@lennier76 Okay… Can you confirm for me what channel you’ve recorded where you’re seeing this? I think I know what the issue is here. When recording some channels, some videos are detected as 25fps (PAL), and some are detected as 50fps (due to interlacing). What I’m suspecting here is that this recording is being detected at 50fps. I know the team at Plex are looking into this, so hopefully that should be resolved (just don’t ask for an eta! :wink: ) If you could provide the Media XML for each item that you played (or attempted to), that should confirm it for me. :slight_smile:

Thanks @DaveBinM, the XML for that file was the one I posted earlier in the thread as from the non-working mkv. It was recorded from 10HD. The same thing happened for recordings from 9HD as mentioned earlier.

@lennier76 I thought it was going to be Ten HD. :wink: That’s being looked into… Can you confirm if recordings from other channels work?