HDPVR not recording

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
Linuxgrrl
Junior
Posts: 67
Joined: Mon Oct 26, 2020 12:46 am
United States of America

HDPVR not recording

Post by Linuxgrrl »

hi,
I just switched from Linux Mint to Fedora and I'm having trouble getting Myth to record through my hdpvr.
First off, I should mention that I ported my database over to the new computer using the backup and restore utilities following the incredibly well-done instructions in the wiki, and it worked BRILLIANTLY. All of my shows are there. Major credit to the author of those scripts and docs.

dmesg sees my hdpvr just as it used to.

Code: Select all

cat /dev/video0 > test.ts
works fine and produces video, but mythtv times out when trying to tune.

I have tried deleting and re-creating the hdpvr tuner in mythtv-setup. I have also tried making the permissions broader. The backend appears to show the tuner, right before it fails:

Code: Select all

2021-05-24 11:39:53.545729 I [1204/1680] TVRecEvent tv_rec.cpp:3662 (TuningFrequency) - TVRec[9]: TuningFrequency
2021-05-24 11:39:53.552532 I [1204/1680] TVRecEvent recorders/v4lchannel.cpp:517 (SetInputAndFormat) - V4LChannel[9](/dev/video0): SetInputAndFormat(9, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
2021-05-24 11:39:53.553907 I [1204/1680] TVRecEvent recorders/v4lchannel.cpp:517 (SetInputAndFormat) - V4LChannel[9](/dev/video0): SetInputAndFormat(9, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
2021-05-24 11:39:53.558456 I [1204/1857] Scheduler scheduler.cpp:2882 (HandleRecordingStatusChange) - Tuning recording: "Energy Secretary Jennifer Granholm Testifies on the President's 2022 Budget Request": channel 20111 on cardid [9], sourceid 2
2021-05-24 11:39:53.737359 C [1204/1204] CoreContext programinfo.cpp:257 (ProgramInfo) - ProgramInfo(): Failed to find recorded entry for 0.
2021-05-24 11:40:03.559482 E [1204/1680] TVRecEvent tv_rec.cpp:3967 (TuningSignalCheck) - TVRec[9]: TuningSignalCheck: Hit pre-fail timeout
2021-05-24 11:40:08.563359 W [1204/1680] TVRecEvent tv_rec.cpp:3995 (TuningSignalCheck) - TVRec[9]: TuningSignalCheck: taking more than 15000 ms to get a lock. marking this recording as 'Failing'.
2021-05-24 11:40:08.563370 W [1204/1680] TVRecEvent tv_rec.cpp:4000 (TuningSignalCheck) - TVRec[9]: See 'Tuning timeout' in mythtv-setup for this input
What am I missing?
Gribnif
Junior
Posts: 88
Joined: Wed May 14, 2014 12:46 pm
United States of America

Re: HDPVR not recording

Post by Gribnif »

Make sure your tuner settings in Myth are selecting the correct inputs, both for video and audio. The HD-PVR can be pretty finicky, refusing to output anything if even the wrong audio input is chosen.
Linuxgrrl
Junior
Posts: 67
Joined: Mon Oct 26, 2020 12:46 am
United States of America

Re: HDPVR not recording

Post by Linuxgrrl »

Thank you! To clarify, are the settings you have in mind in the frontend or mythtv-setup? I believe I have seen audio/video options in both places.
I added some additional logging using --setverbose channel,record,network,socket, and it just keeps repeating this:

Code: Select all

2021-05-25 17:25:49.058393 I [1326/7767] MythSocketThread(61) mythsocket.cpp:748 (WriteStringListReal) - MythSocket(7f893c029610:61): write -> 61 155     BACKEND_MESSAGE[]:[]SIGNAL 9[]:[]Script Status[]:[]script 2 3 0 3 0 1 1[]:[]Signal Lock[]:[]slock 0 1 0 1 0…
2021-05-25 17:25:49.068576 I [1326/7762] MythSocketThread(62) mythsocket.cpp:948 (ReadStringListReal) - MythSocket(7f893c060950:62): read  <- 62 86      QUERY_FINDFILE[]:[]mythbox[]:[]ChannelIcons[]:[]/s90898_dark_360w_270h.png[]:[]0[]:[]1
2021-05-25 17:25:49.070031 I [1326/7762] MythSocketThread(62) mythsocket.cpp:748 (WriteStringListReal) - MythSocket(7f893c060950:62): write -> 62 9       NOT FOUND
2021-05-25 17:25:49.070838 I [1326/7762] MythSocketThread(62) mythsocket.cpp:948 (ReadStringListReal) - MythSocket(7f893c060950:62): read  <- 62 86      QUERY_FINDFILE[]:[]mythbox[]:[]ChannelIcons[]:[]/s90898_dark_360w_270h.png[]:[]0[]:[]1
2021-05-25 17:25:49.072037 I [1326/7762] MythSocketThread(62) mythsocket.cpp:748 (WriteStringListReal) - MythSocket(7f893c060950:62): write -> 62 9       NOT FOUND
I'm not sure what this has to do with the recording not starting. My other tuner, an HDHomerun, works fine.
Here is another log snippet that appears to show the HDPVR successfully receiving a channel change, then failing to tune:

Code: Select all

2021-05-25 17:36:30.631602 I [1326/1651] TVRecEvent recorders/dtvchannel.cpp:159 (SetChannelByString) - DTVChan[9](/dev/video0): SetChannelByString(15): 
2021-05-25 17:36:30.632319 I [1326/1651] TVRecEvent recorders/channelbase.cpp:258 (IsInputAvailable) - ChannelBase[9]: Input is free on 0/0
2021-05-25 17:36:30.633094 I [1326/1651] TVRecEvent recorders/v4lchannel.cpp:285 (SetFormat) - V4LChannel[9](/dev/video0): SetFormat(Default) fmt(NTSC) input(9)
2021-05-25 17:36:30.633169 I [1326/1651] TVRecEvent recorders/v4lchannel.cpp:517 (SetInputAndFormat) - V4LChannel[9](/dev/video0): SetInputAndFormat(9, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
2021-05-25 17:36:30.633175 I [1326/1651] TVRecEvent recorders/dtvchannel.cpp:320 (SetChannelByString) - DTVChan[9](/dev/video0): SetChannelByString(15): success
2021-05-25 17:36:30.637593 I [1326/1651] TVRecEvent recorders/channelbase.cpp:419 (ChangeExternalChannel) - ChannelBase[9]: Running command: /home/mythtv/LircChannelChanger.pl 15
2021-05-25 17:36:30.646076 N [1326/1326] CoreContext autoexpire.cpp:242 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2021-05-25 17:36:30.666629 N [1326/1651] TVRecEvent recordinginfo.cpp:678 (ApplyRecordRecGroupChange) - ApplyRecordRecGroupChange: LiveTV to LiveTV (2)
2021-05-25 17:36:30.667166 I [1326/7764] ProcessRequest tv_rec.cpp:3124 (SetChannel) - TVRec[9]: SetChannel(15) -- end
2021-05-25 17:36:40.668086 E [1326/1651] TVRecEvent tv_rec.cpp:3967 (TuningSignalCheck) - TVRec[9]: TuningSignalCheck: Hit pre-fail timeout
2021-05-25 17:36:45.675114 W [1326/1651] TVRecEvent tv_rec.cpp:3995 (TuningSignalCheck) - TVRec[9]: TuningSignalCheck: taking more than 15000 ms to get a lock. marking this recording as 'Failing'.
2021-05-25 17:36:45.675124 W [1326/1651] TVRecEvent tv_rec.cpp:4000 (TuningSignalCheck) - TVRec[9]: See 'Tuning timeout' in mythtv-setup for this input
Gribnif
Junior
Posts: 88
Joined: Wed May 14, 2014 12:46 pm
United States of America

Re: HDPVR not recording

Post by Gribnif »

Sorry, I wasn't specific enough. The settings I'm referring to are in mythtv-setup->Capture Cards. Choose your HD-PVR card, then hit the right arrow twice. Make sure Audio Input matches what you're using. You might also want to increase the timeout, depending on how long it takes your tuner to tune. (I use 30,000 ms.)
Linuxgrrl
Junior
Posts: 67
Joined: Mon Oct 26, 2020 12:46 am
United States of America

Re: HDPVR not recording

Post by Linuxgrrl »

thank you, that makes sense. I've checked that those settings were correct (rear component audio) and double-checked that the cables are attached. I raised the timeout, although tbh, under Linux Mint the hdpvr always tuned instantly. Unfortunately it is still not working, and the logs don't seem to say why. The /dev/video is owned root in group mythtv, with permissions of rw-rw----. I have also tried the good old "turn the pvr off and back on" trick several times. I'm about to throw it out the window! Is there any reason why it would work fine under Mint and not under fedora?
User avatar
pgbennett
Developer
Posts: 503
Joined: Mon Apr 27, 2015 5:41 pm
United States of America

Re: HDPVR not recording

Post by pgbennett »

Normally /dev/videox is in group video, and you should add video group to your mythtv user, not change /dev/videox to group mythtv. I don't know if this is relevant to your problem. I do not have an HDPVR.
Post Reply