Plex HDHomerun DVR "HD Only" resolution not working

Thank you very much - we are unlucky. The logs filled up in 6 minutes. I have period Oct 09, 2018 04:34:11 to 04:40:33 with the recording starting before that time.

Could I ask you to carefully edit the Preferences.xml to add a setting for number of log files - adding LogNumFiles="30"
See this support article for location of Plex Media Server App Data https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/

So will have to have another go

Actually could you hold fire on the repeat of the test

I can see a recording starting at 04:37:51 from v653 - so logs could be ok

So what started at 04:37 was from the HD Channel (channel 653)

These are all the channel tunes during the period covered by the logs

Oct 09, 2018 04:37:51.420 [0x14ea3d3ff700] DEBUG - DVR:Grabber: Going to record for 1329 seconds, final URL is http://10.0.1.146:5004/auto/v653
Oct 09, 2018 04:37:51.421 [0x14ea3d3ff700] DEBUG - DVR:Segmenter: Creating a new recorder for http://10.0.1.146:5004/auto/v653.
Oct 09, 2018 04:37:51.426 [0x14ea3d3ff700] DEBUG - DVR:Grabber: Waiting for a tuner (3 available).
Oct 09, 2018 04:37:51.426 [0x14ea3d3ff700] DEBUG - DVR:Grabber: Allocated a tuner (2 left)
Oct 09, 2018 04:37:53.153 [0x14ea3d3ff700] DEBUG - DVR:Recorder: It took 1.7 sec to start the session for http://10.0.1.146:5004/auto/v653
Oct 09, 2018 04:37:58.222 [0x14ea3d3ff700] DEBUG - DVR:Recorder: It took 5.1 sec to start the session for http://10.0.1.146:5004/auto/v653
Oct 09, 2018 04:38:19.703 [0x14ea3cffd700] DEBUG - DVR:Grabber: Freed a tuner (now 3 available)

So did the wrong one start recording before 04:37 am?

This was the grab file which got moved at the end to /media/TV Shows/9News First at 4 30am (2010)/Season 2018/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts

Oct 09, 2018 04:37:53.163 [0x14ea3d3ff700] DEBUG - Job running: EAE_ROOT='/tmp/pms-daaff3c2-01dd-44be-8cb5-89e99959c982/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/e7828f1-1324-linux-ubuntu-x86_64/' XDG_CACHE_HOME='/config/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/usr/lib/plexmediaserver/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/usr/lib/plexmediaserver/Plex Transcoder' '-codec:0' 'mpeg2video' '-noaccurate_seek' '-live_start_index' '0' '-i' 'http://127.0.0.1:32400/livetv/sessions/881bbcab-373d-4d9a-9751-11fb717fedd5/266a0d65-51c7-4189-ad4e-c6713fc00775/index.m3u8?offset=-1.000000&X-Plex-Token=xxxxxxxxxxxxxxxxxxxx' '-map' '0:0' '-codec:0' 'copy' '-map' '0:1' '-metadata:s:1' 'language=eng' '-codec:1' 'copy' '-copypriorss:1' '0' '-map' '0:2' '-metadata:s:2' 'language=spa' '-codec:2' 'copy' '-copypriorss:2' '0' '-f' 'mpegts' '-map_metadata' '-1' '-map_chapters' '-1' '/media/TV Shows/.grab/0803c94b6f4f9fa9eade0efb9082fec8579e201d/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/266a0d65-51c7-4189-ad4e-c6713fc00775/af70cf47-29f8-4dc3-93e2-201c5c2a4ca7/progress'
Oct 09, 2018 04:38:19.703 [0x14ea3cffd700] DEBUG - [MI] Opening input file: "/media/TV Shows/.grab/0803c94b6f4f9fa9eade0efb9082fec8579e201d/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts"
Oct 09, 2018 04:38:19.703 [0x14ea3cffd700] DEBUG - [FFMPEG] - Opening '/media/TV Shows/.grab/0803c94b6f4f9fa9eade0efb9082fec8579e201d/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts' for reading
Oct 09, 2018 04:38:19.714 [0x14ea3cffd700] DEBUG - [MI]  *  [mpegts mpeg2video/ac3] Duration: 25985ms, 1920x1080 (1.777778) 29.970fps, bitrate=13225kbps, audio channels=6, optimizedForStreaming=0 ("/media/TV Shows/.grab/0803c94b6f4f9fa9eade0efb9082fec8579e201d/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts")
Oct 09, 2018 04:38:19.714 [0x14ea3cffd700] DEBUG - [MI] Closing input file: "/media/TV Shows/.grab/0803c94b6f4f9fa9eade0efb9082fec8579e201d/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts"
Oct 09, 2018 04:38:19.720 [0x14eab83ff700] DEBUG - DVR:Grabber: Moving "/media/TV Shows/.grab/0803c94b6f4f9fa9eade0efb9082fec8579e201d/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts" to "/media/TV Shows/9News First at 4 30am (2010)/Season 2018/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts"

Seems to be that the right channel was tuned.

This shows the grab file was HD (1920x1080)

Oct 09, 2018 04:38:20.143 [0x1457f9aa2800] DEBUG - [MI] Opening input file: "/media/TV Shows/9News First at 4 30am (2010)/Season 2018/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts"

Oct 09, 2018 04:38:20.153 [0x1457f9aa2800] DEBUG - [MI]  * 00c6d182b8d234060a3dec29d6939c737ca0a5b2 [mpegts mpeg2video/ac3] Duration: 25985ms, 1920x1080 (1.777778) 29.970fps, bitrate=13225kbps, audio channels=6, optimizedForStreaming=0 ("/media/TV Shows/9News First at 4 30am (2010)/Season 2018/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts")

Well I may have to retry. The only reason I say that is right before I set the actual recording, I had accidentally hit the record button from the grid guide SD channel (of 9 news first) so results may be off. I do have a question. How can you determine if a show if SD or HD in the logs? I will log in remotely after lunch and try again. Sorry for all the work looking this morning. I should have told you that happened. Thank you so much for your time in this matter.

Okay ran another test, this time on channel 004 KCNC (CBS) and 645 KCNCDT (CBS) HD. I setup just like this morning and it should have started at 2:23pm. At 2:27pm I switched from HD only to any and plex instantly started recording the SD version and verified by watching actual video it only recorded SD. Disregard anything before 2:22 pm.

1 Like

Okay here are the logs from that event Plex Media Server Logs_2018-10-09_14-28-17.zip (3.2 MB)

I looked at the Plex Media Scanner Analysis.log created after the recording completed and extracted the two log lines above

Oct 09, 2018 04:38:20.143 [0x1457f9aa2800] DEBUG - [MI] Opening input file: "/media/TV Shows/9News First at 4 30am (2010)/Season 2018/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts"

Oct 09, 2018 04:38:20.153 [0x1457f9aa2800] DEBUG - [MI] * 00c6d182b8d234060a3dec29d6939c737ca0a5b2 [mpegts mpeg2video/ac3] Duration: 25985ms, 1920x1080 (1.777778) 29.970fps, bitrate=13225kbps, audio channels=6, optimizedForStreaming=0 ("/media/TV Shows/9News First at 4 30am (2010)/Season 2018/9News First at 4 30am (2010) - 2018-10-09 04 30 00 - Episode 10-09.ts")

The other information is for channel being tuned. If we are tuning the HD channel then we are doing it correctly. If the HD channel is streaming SD that would not be a Plex issue

This log entry from one of the Plex Media Server.log files shows the channel being tuned

Oct 09, 2018 04:37:53.153 [0x14ea3d3ff700] DEBUG - DVR:Recorder: It took 1.7 sec to start the session for http://10.0.1.146:5004/auto/v653

@sa2000 did you have a chance to look at the latest logs? Still having an issue.

In case it helps: I’m having the same issue if I try to record all occurrences of a show and select HD only. A different workaround I am using for now is to individually select episodes and record them and set HD only (not a specific channel). That works. One is recording as we speak. Any progress on the issue?

I am also running into this issue.

I also think this could even be two separate issues.

  1. HDHomeRun is flagging Channels as HD but then when I look at the guide in Plex and filter by “HD Channels Only” some of the HD channels are not displayed. This is intermittent with different channels disappearing at different times. I guess this could be based on what the channel is broadcasting at the time but even if the current content is not HD, it’s still a HD channel and should always show up in the “HD Channels Only” filter.

  2. Then with the recordings, even on channels that are correctly listed as HD in the guide, when setting the recording to HD only it disappears from the agenda with “No upcoming airings”. But I can look in the guide at the HD channel with the show I want recorded, it shows the red recording icon on the show as if it’s going to try and record it but nothing happens.

This recording is set for HD only, New and Repeat Airings and is not filtered to a channel.

If you need any more information let me know.

I am going to summarise what i see in the logs and then we need to match that to exactly what you clicked on and when and what times the recordings were going to start for

The issue appears to be that once we tune a channel then any changes to resolution would not be actioned - so we are not killing a tuned channel to switch to other resolution, This is what is showing and we need to see what this corresponds to in terms of steps you took.. Also if you do any further tests, it would useful to capture at the time the xml for the Grid for say an hour period.

These were the two programs covered by the logs

Test 1

How I Met Your Mother

Tests at 14:20-14:21

Aired on these channels

005  KTVD (MNT)
027  FXP
099  WGNASD (Independent)
657  KTVDDT (MNT)
691  FXPHD
799  WGNA (Independent)
1020 KTVDDT (MNT)
1409 FXPHD
1420 WGNA (Independent)

At 14:20:32 request with resolution set to any.
At 14:20:33 we tuned channel 027
At 14:21:02 request to change resolution to HD (720) - but no action taken because we have already tuned to a channel.

(I need to discuss with the development team if we should be killing the recording and trying to restart from this point of time with different channel)

The request that you can make to get the grid data xml (for a period of 1 hour) is

http://10.0.1.250:32400/tv.plex.providers.epg.onconnect:2/all?type=1,4&beginsAt%3E=%2B1s&beginsAt%3C=%2B1h&sort=mediaHeight:desc,mediaAnalysisVersion:desc,beginsAt&X-Plex-Token=xxxxxxxxxxxx where xxxxxxxxxxx is the server token

You can find a server token by following the steps here
https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

We do need exact times for tests and also what was being done and if a recording scheduled - what time is it scheduled for - you will see the reason from the 2nd test

Test 2

Let’s Make a Deal
Tests at 14:23-14:27

Aired on these channels

004   KCNC (CBS)
654   KCNCDT (CBS)
1004 KCNCDT (CBS)

At 14:23:21 there was request to record for HD resolution
At 14:24:44 new request - still for HD resolution
At 14:27:14 new request - changed to any resolution
At 14:27:15 we tuned channel 004

So here the change in resolution happened before we started the tune

Like to add - that it would be the xml and you telling me what you selected and at what time and to do what, that would establish if, for example, Plex Web was wrong to request quality of any at 14:20:32 for test 1 above

Sorry @sa2000 I have been busy and I will try to get to this today, thanks for your follow up and hopefully I can get you what you asked for.

Okay latest test. Setup a recording for "Today with Kathie Lee and Hoda starting at 11am until 12pm. Recording setup at 10:07am. Setup recording using “shows” drop-down from guide and only selected HD only, otherwise default settings for recording.
Channels available:
009 KUSA (NBC) SD
1009 KUSADT (NBC) HD
653 KUSADT (NBC) HD

After I setup recording I verified the show in the recording priority list that it showed No Upcoming Airings and then after the show time completed, I verified that no show recorded in folder. I did no other testing so it should only be that show with hour before and 15 minutes the show ended for log info.
Plex Media Server Logs_2018-10-15_12-15-49.zip (2.9 MB)
Logs included. Also since the show did not record I cant give you the XML. Also looking through the logs I noticed this:
Oct 15, 2018 12:08:18.754 [0x1473dbbff700] DEBUG - DVR:Subscription: The item 'Today With Kathie Lee & Hoda - Episode 10-15' was not high enough quality, ignoring.

I did verify via TV and Ceton tuner on MCE and it recorded in HD just fine on channel 653. As stated before from others if I select the individual show via the guide and select the show from the channel it works and if I select the HD channel in the recording setup it also works. So in other words HD only recording a series is not working.

I need the EPG JSON/xml fir the time of the showing that was to be recorded.

So if the Recording was for 11am, I would need the response from this request captured at 11am
http://10.0.1.250:32400/tv.plex.providers.epg.onconnect:2/all?type=1,4&beginsAt%3E=%2B1s&beginsAt%3C=%2B1h&sort=mediaHeight:desc,mediaAnalysisVersion:desc,beginsAt&X-Plex-Token=xxxxxxxxxxxx

Since the show did not record, where would I find the EPG JSON/xml file? or do you just need the token? The token is

The url I gave you, you paste into a browser url field and put the token in the right place - try it out. If it works, copy the displayed response into a text file and attach here and I can check it out

And if ok. Then you need to do that at the scheduled time of a recording

I deleted your token - you should not have that in any forum post as it is your server access token

I will have to setup another recording as the time has past and I did not see it in the xml. I will work on that tonight.

The xml request has start time of 1 second from now and end end time of 1 hour from now - experiment with it to see that you do get that