<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 26 Nov 2023 at 00:47, Will Dormann <<a href="mailto:wdormann@gmail.com">wdormann@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi folks,<br>
<br>
Since having relinquished my MythTV box to the basement and having just <br>
a Fire TV stick connected to the TV, I've noticed that occasionally <br>
shows will fail to record from my 3-tuner HDHomerun Prime device.<br>
<br>
Here's an example selection from my mythbackend.log file:<br>
<br>
(UpdateRecStatus) Updating status for "Aqua Teen Forever: Plantasm" on <br>
cardid [5] (Pending => Recorder Failed)<br>
(HandleRecordingStatusChange) Tuning recording: "Aqua Teen Forever: <br>
Plantasm": channel 2757 on cardid [5], sourceid 2<br>
(HandleReschedule) Reschedule requested for CHECK -9 1703 0 <br>
UpdateRecStatus2 | Aqua Teen Forever: Plantasm | | Everyone's favorite <br>
rascals Frylock, Master Shake, Meatwad and Carl fight the corporate <br>
overlord Amazin, led by tech mogul Neil<br>
and his trusty scientist sidekick, Elmer. | MV018741290000<br>
(InsertProgram) <br>
RecordingInfo::InsertProgram(ProgramInfo(2757_20231125050000.ts): <br>
channame(Cartoon Network HD)#012 startts(Sat Nov 25 05:00:00 <br>
2023 GMT) endts(Sat Nov 25 06:45:00 2023 GMT)#012 <br>
recstartts(Sat Nov 25<br>
05:00:00 2023 GMT) recendts(Sat Nov 25 06:45:00 2023 GMT)#012 <br>
title(Aqua Teen Forever: Plantasm)): recording already exists...<br>
(HandleStateChange) TVRec[5]: Changing from None to RecordingOnly<br>
(TuningFrequency) TVRec[5]: TuningFrequency<br>
(Connect) HDHRSH[5](131F1E8E): Added 0 devices from 131F1E8E<br>
(Connect) HDHRSH[5](131F1E8E): Unable to find a free device<br>
(SetChannelByString) DTVChan[5](131F1E8E): SetChannelByString(757): <br>
Channel object will not open, can not change channels.<br>
(TunerGet) HDHRSH[5](131F1E8E): Get request failed (not connected)<br>
(TunerSet) HDHRSH[5](131F1E8E): Set request failed (not connected)<br>
(TuningFrequency) TVRec[5]: Failed to set channel to 757. Reverting to <br>
kState_None<br>
(HandleStateChange) TVRec[5]: Changing from RecordingOnly to None<br>
(UpdateRecStatus) Updating status for "Aqua Teen Forever: Plantasm" on <br>
cardid [5] (Tuning => Recorder Failed)<br>
(ChangeRecordingEnd) Failed to change end time on card 5 to <br>
2023-11-25T06:45:00Z<br>
(HandleReschedule) Reschedule interrupted, will retry<br>
(HandleReschedule) Reschedule requested for CHECK -9 1703 0 <br>
UpdateRecStatus2 | Aqua Teen Forever: Plantasm | | Everyone's favorite <br>
rascals Frylock, Master Shake, Meatwad and Carl fight the corporate <br>
overlord Amazin, led by tech mogul Neil and his trusty scientist <br>
sidekick, Elmer. | MV018741290000<br>
(HandleReschedule) Reschedule requested for PLACE Interrupted<br>
(HandleReschedule) Scheduled 1657 items in 0.2 = 0.00 match + 0.00 check <br>
+ 0.18 place<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050000.ts): GetPlaybackURL: <br>
'2757_20231125050000.ts' should be local, but it can not be found.<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050000.ts): GetPlaybackURL: <br>
'2757_20231125050000.ts' should be local, but it can not be found.<br>
(DoMetadataLookupThread) JobQueue: Metadata Lookup Starting for "Aqua <br>
Teen Forever: Plantasm" recorded from channel 2757 at 2023-11-25T05:00:00Z<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050000.ts): GetPlaybackURL: <br>
'2757_20231125050000.ts' should be local, but it can not be found.<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050000.ts): GetPlaybackURL: <br>
'2757_20231125050000.ts' should be local, but it can not be found.<br>
(DoFlagCommercialsThread) JobQueue: Commercial Detection Starting for <br>
"Aqua Teen Forever: Plantasm" recorded from channel 2757 at <br>
2023-11-25T05:00:00Z<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050000.ts): GetPlaybackURL: <br>
'2757_20231125050000.ts' should be local, but it can not be found.<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050001.ts): GetPlaybackURL: <br>
'2757_20231125050001.ts' should be local, but it can not be found.<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050001.ts): GetPlaybackURL: <br>
'2757_20231125050001.ts' should be local, but it can not be found.<br>
(DoMetadataLookupThread) JobQueue: Metadata Lookup Starting for "Aqua <br>
Teen Forever: Plantasm" recorded from channel 2757 at 2023-11-25T05:00:01Z<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050001.ts): GetPlaybackURL: <br>
'2757_20231125050001.ts' should be local, but it can not be found.<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050001.ts): GetPlaybackURL: <br>
'2757_20231125050001.ts' should be local, but it can not be found.<br>
(DoFlagCommercialsThread) JobQueue: Commercial Detection Starting for <br>
"Aqua Teen Forever: Plantasm" recorded from channel 2757 at <br>
2023-11-25T05:00:01Z<br>
(GetPlaybackURL) ProgramInfo(2757_20231125050001.ts): GetPlaybackURL: <br>
'2757_20231125050001.ts' should be local, but it can not be found.<br>
<br>
<br>
The HDHR device is never terribly busy, but I see in the above:<br>
Added 0 devices from 131F1E8E<br>
Unable to find a free device<br>
<br>
The result is a 0-byte recording attempt in my recorded files.<br>
<br>
I don't recall having this problem in the past, but at the same time I <br>
also used to have a HD-PVR device as well, so perhaps MythTV might <br>
automatically fall back to using that if the HDHR tuners failed? The <br>
other difference is that the MythTV device is now connected via WiFi. <br>
The signal is good strength, so I don't think it's just that the network <br>
connection is poor. Running hdhomerun_config with the "save" option <br>
produces nothing but '.' characters, so not even a packet is dropped.<br>
<br>
<br>
It's just that it seems that sometimes when a shows is to be recorded, <br>
MythTV fails to find/open a tuner. Is there something interently about <br>
a WiFi-connected MythTV box that might make an HDHR less reliable than <br>
it should be? Are there any other tricks for HDHR tuning reliability?<br>
<br></blockquote><div>What happens is that the mythbackend thinks that there is a connection to the HDHR but the HDHR has dropped the connection.</div><div><br></div><div>The "Added 0 devices from" message can be reproduced as follows.</div><div>I have a mythbackend running on my laptop, connected via Wifi to a HDHomeRun on the wired network.</div><div>It is running EIT on the HDHomeRun to get the guide data.</div><div>Closing the lid of the laptop does suspend everything on the laptop including the mythbackend.</div><div>The HDHomeRun now drops the connection after a while.</div><div>Opening the lid of the laptop does a resume of everything on the laptop, including the mythbackend.</div><div>Mythbackend thinks that it still has a connection to the HDHomeRun and when it tries to tune the next EIT channel</div><div>the "Added 0 devices from" message is given. After that, tuning the next channel does succeed.</div><div><br></div><div>This suggests that In your case, it can be that the system that runs mythbackend does a suspend/resume.</div><div><br></div><div>Whether you can successfully run a mythbackend with network tuners over Wifi does depend very much on</div><div>the quality of your Wifi network. It works for me when I am near an access point but I think that a bad</div><div>network can also cause the HDHR to drop the connection. As mentioned by Hika, using a wired connection is preferred.</div><div>If it is not possible to make a wired connection then you can consider adding an access point as close as possible.</div><div><br></div><div>It is likely possible to change the HDHomeRun driver in mythbackend so that it does one or more retries when a connection</div><div>unexpectedly fails. This is a non-trivial undertaking and do not hold your breath waiting for this to happen.</div><div><br></div><div>MythTV uses a HDHomeRun library and that iibrary uses UDP to connect to the HDHomeRun.</div><div>This works perfectly with a perfect network but intrinsically less good with a not-perfect network.</div><div>You can try to increase the size of the network buffers with the following command: </div><div><span style="background-color:rgb(249,249,249);color:black;font-family:monospace,Courier;font-size:14px">sudo sysctl -w net.core.rmem_max=8000000</span></div><div>as described in the Wiki for SatIP network tuners in paragraph <a href="https://www.mythtv.org/wiki/Channel_Scanning#Scanning_with_Sat.3EIP_tuners">https://www.mythtv.org/wiki/Channel_Scanning#Scanning_with_Sat.3EIP_tuners</a></div><div><br></div><div>You might want to experiment with accessing the HDHomeRun as an IPTV device. This uses HTTP/TCP and maybe this</div><div>works better for you. There are pros and cons to this approach.</div><div>See the description in the Wiki in paragraph <a href="https://www.mythtv.org/wiki/Channel_Scanning#HDHomeRun_Channel_Import_2">https://www.mythtv.org/wiki/Channel_Scanning#HDHomeRun_Channel_Import_2</a></div><div><br></div><div>Hope this helps,</div><div>Klaas.</div><div><br></div><div> </div><div> </div></div></div>