Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#10857 closed Bug Report - General (Invalid)

backend - won't find right input on HDPVR

Reported by: support@… Owned by: jpoet
Priority: minor Milestone: unknown
Component: MythTV - Recording Version: 0.25
Severity: high Keywords: HDPVR component input
Cc: Ticket locked: no

Description

I created a fresh Centos 6.2 x64 install with Myth 0.25 from atrpms.

I still have my old 0.24 backend running, and transferred all settings to my new 0,25 backend. Although the .25 backend detects and lets me configure my HDPVR, all attempts to use the HDPVR result in Resource Temporarily Unavailable (11) errors. I can succesfully capture and view video from the HDPVR on the 0.25 backend using "cat /dev/HDPVR > /tmp/t1.avi" and then viewing the avi file on my Windows machine, so it's not a HDPVR error...something in myth.

When the front-end is trying to show the video a SD480 logo appears (not sure if that's relevent) but I would not expect this for component input.

It appears that Myth backend is not using the right input on the HDPVR (component), and there is no way to force it to component.


backend log while trying to view video from HDPVR:

2012-06-25 11:53:27.549876 I [2461/2473] TVRecEvent tv_rec.cpp:1014 (HandleStateChange?) - TVRec(1): Changing from None to WatchingLiveTV 2012-06-25 11:53:27.551353 I [2461/2473] TVRecEvent tv_rec.cpp:3456 (TuningCheckForHWChange) - TVRec(1): HW Tuner: 1->1 2012-06-25 11:53:27.565372 I [2461/2473] TVRecEvent v4lchannel.cpp:661 (SetInputAndFormat?) - V4LChannel(/dev/HDPVR): SetInputAndFormat?(1, NTSC) (v4l v2) input_switch: 0 mode_switch: 0 2012-06-25 11:53:27.587922 N [2461/2461] CoreContext? autoexpire.cpp:263 (CalcParams?) - AutoExpire?: CalcParams?(): Max required Free Space: 3.0 GB w/freq: 15 min 2012-06-25 11:53:27.706901 E [2461/2978] SignalMonitor? analogsignalmonitor.cpp:55 (handleHDPVR) - Start encoding failed

eno: Resource temporarily unavailable (11)

2012-06-25 11:53:27.757081 E [2461/2978] SignalMonitor? analogsignalmonitor.cpp:55 (handleHDPVR) - Start encoding failed

eno: Resource temporarily unavailable (11)

2012-06-25 11:53:27.807288 E [2461/2978] SignalMonitor? analogsignalmonitor.cpp:55 (handleHDPVR) - Start encoding failed

eno: Resource temporarily unavailable (11)

2012-06-25 11:53:27.857480 E [2461/2978] SignalMonitor? analogsignalmonitor.cpp:55 (handleHDPVR) - Start encoding failed

Change History (10)

comment:1 Changed 12 years ago by support@…

In case it's useful, here is info from capturecard table:

mysql> select * from capturecard; +--------+-------------+-------------+-----------+----------+--------------+----------------+------------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+ | cardid | videodevice | audiodevice | vbidevice | cardtype | defaultinput | audioratelimit | hostname | dvb_swfilter | dvb_sat_type | dvb_wait_for_seqstart | skipbtaudio | dvb_on_demand | dvb_diseqc_type | firewire_speed | firewire_model | firewire_connection | signal_timeout | channel_timeout | dvb_tuning_delay | contrast | brightness | colour | hue | diseqcid | dvb_eitscan | +--------+-------------+-------------+-----------+----------+--------------+----------------+------------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+ | 2 | /dev/HDPVR | 2 | NULL | HDPVR | Television | NULL | dvr.localhost | 0 | 0 | 1 | 0 | 0 | NULL | 0 | NULL | 0 | 1000 | 12000 | 0 | 0 | 0 | 0 | 0 | NULL | 1 | +--------+-------------+-------------+-----------+----------+--------------+----------------+------------+--------------+--------------+-----------------------+-------------+---------------+-----------------+----------------+----------------+---------------------+----------------+-----------------+------------------+----------+------------+--------+-----+----------+-------------+ 1 row in set (0.00 sec)

comment:2 Changed 12 years ago by jpoet

Status: newinfoneeded_new

Sounds like the wrong capture "type" has been selected. Please try to run mythtv-setup again, and re-do the capture card setup for the HD-PVR.

comment:3 Changed 12 years ago by jpoet

Owner: changed from danielk to jpoet

comment:4 Changed 12 years ago by Michelle Dupuis <support@…>

I deleted the card, and added it back as "H.264 Encoder Card (HDPVR)" - same result. This is also the type that was selected before.

Or is this the wrong card type to pick?

comment:5 Changed 12 years ago by jpoet

HDPVR is the correct type. Are you saying it does not let you choose the component input?

Also, can you try 0.25-fixes? The HD-PVR signalmonitor has been updated since 0.25 was first released.

comment:6 Changed 12 years ago by Michelle Dupuis <support@…>

The card setup does not allow me to pick a default input type (component) like under 0.24 - that field is gone.

The input setup does offer me the 3 input types, and I have setup (only) the component input.

ATrpms is still at 0.25 so I will have to remove that and switch to compiling from source. I'll update once that's done.

comment:7 Changed 12 years ago by Michelle Dupuis <support@…>

Ok - I upgraded to 0.25.1 and tried again. The problem remains but the symptoms are a bit different (and the log is a bit different too.). Now when I try to watch live tv I get: "Error opening jump program file buffer", and the backend log is below

2012-06-25 22:29:12.976138 I [26762/26762] CoreContext serverpool.cpp:337 (listen) - Listening on TCP [0:0:0:0:0:0:0:1]:6543
2012-06-25 22:29:12.977326 N [26762/26762] CoreContext autoexpire.cpp:263 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
2012-06-25 22:29:13.600381 I [26762] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Monitor
2012-06-25 22:29:13.600391 I [26762] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: mythlivingroom.localdomain as a client (events: 0)
2012-06-25 22:29:13.601955 I [26762] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Monitor
2012-06-25 22:29:13.601962 I [26762] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: mythlivingroom.localdomain as a client (events: 1)
2012-06-25 22:29:15.099542 I [26762/26775] Scheduler scheduler.cpp:2011 (HandleReschedule) - Reschedule requested for id -1.
2012-06-25 22:29:15.907500 I [26762/26775] Scheduler scheduler.cpp:2069 (HandleReschedule) - Scheduled 168 items in 0.8 = 0.02 match + 0.79 place
2012-06-25 22:29:15.917996 I [26762/26775] Scheduler scheduler.cpp:2136 (HandleRunSchedulerStartup) - Scheduler: Seem to be woken up by USER
2012-06-25 22:29:22.096990 I [26762/26778] HouseKeeping housekeeper.cpp:225 (RunHouseKeeping) - Running housekeeping thread
2012-06-25 22:29:27.588346 I [26762] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Playback
2012-06-25 22:29:27.588353 I [26762] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: mythlivingroom.localdomain as a client (events: 0)
2012-06-25 22:29:27.596852 I [26762/26774] TVRecEvent tv_rec.cpp:1014 (HandleStateChange) - TVRec(1): Changing from None to WatchingLiveTV
2012-06-25 22:29:27.598371 I [26762/26774] TVRecEvent tv_rec.cpp:3459 (TuningCheckForHWChange) - TVRec(1): HW Tuner: 1->1
2012-06-25 22:29:27.614565 I [26762/26774] TVRecEvent v4lchannel.cpp:661 (SetInputAndFormat) - V4LChannel(/dev/HDPVR): SetInputAndFormat(1, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
2012-06-25 22:29:27.637759 N [26762/26762] CoreContext autoexpire.cpp:263 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2012-06-25 22:29:29.862044 N [26762/26762] CoreContext autoexpire.cpp:263 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2012-06-25 22:29:29.903096 W [26762/26858] RecThread mpegrecorder.cpp:818 (SetV4L2DeviceOptions) - MPEGRec(/dev/HDPVR): Unable to set audio input.
2012-06-25 22:29:29.916377 W [26762/26858] RecThread mpegrecorder.cpp:1315 (StartEncoding) - MPEGRec(/dev/HDPVR): StartEncoding failed
                        eno: Resource temporarily unavailable (11)
2012-06-25 22:29:29.951231 I [26762] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Playback
2012-06-25 22:29:29.951237 I [26762] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: mythlivingroom.localdomain as a client (events: 0)
2012-06-25 22:29:29.953181 I [26762] ProcessRequest mainserver.cpp:1475 (HandleAnnounce) - MainServer::HandleAnnounce FileTransfer
2012-06-25 22:29:29.953185 I [26762] ProcessRequest mainserver.cpp:1477 (HandleAnnounce) - adding: mythlivingroom.localdomain as a remote file transfer
2012-06-25 22:29:32.419074 E [26762/26860] DeviceReadBuffer DeviceReadBuffer.cpp:513 (Poll) - DevRdB(/dev/HDPVR): Poll giving up 2
2012-06-25 22:29:32.419192 E [26762/26858] RecThread mpegrecorder.cpp:1010 (run) - MPEGRec(/dev/HDPVR): Device error detected
2012-06-25 22:29:32.419223 W [26762/26858] RecThread mpegrecorder.cpp:1359 (StopEncoding) - MPEGRec(/dev/HDPVR): StopEncoding failed
                        eno: Resource temporarily unavailable (11)
2012-06-25 22:29:32.427014 W [26762/26858] RecThread mpegrecorder.cpp:818 (SetV4L2DeviceOptions) - MPEGRec(/dev/HDPVR): Unable to set audio input.
2012-06-25 22:29:32.431002 E [26762/26858] RecThread mpegrecorder.cpp:745 (set_ctrls) - mpegrecorder.cpp:set_ctrls(): Could not set MPEG Bitrate mode to 0
                        eno: Bad file descriptor (9)
2012-06-25 22:29:32.431012 E [26762/26858] RecThread mpegrecorder.cpp:745 (set_ctrls) - mpegrecorder.cpp:set_ctrls(): Could not set Video Average Bitrate to 9000000
                        eno: Bad file descriptor (9)
2012-06-25 22:29:32.431020 E [26762/26858] RecThread mpegrecorder.cpp:745 (set_ctrls) - mpegrecorder.cpp:set_ctrls(): Could not set Video Peak Bitrate to 11000000
                        eno: Bad file descriptor (9)
2012-06-25 22:29:32.431036 W [26762/26858] RecThread mpegrecorder.cpp:1315 (StartEncoding) - MPEGRec(/dev/HDPVR): StartEncoding failed
                        eno: Resource temporarily unavailable (11)
2012-06-25 22:29:34.933692 E [26762/26869] DeviceReadBuffer DeviceReadBuffer.cpp:513 (Poll) - DevRdB(/dev/HDPVR): Poll giving up 2
2012-06-25 22:29:34.933793 E [26762/26858] RecThread mpegrecorder.cpp:1010 (run) - MPEGRec(/dev/HDPVR): Device error detected
2012-06-25 22:29:34.933815 W [26762/26858] RecThread mpegrecorder.cpp:1359 (StopEncoding) - MPEGRec(/dev/HDPVR): StopEncoding failed
                        eno: Resource temporarily unavailable (11)
2012-06-25 22:29:34.941638 W [26762/26858] RecThread mpegrecorder.cpp:818 (SetV4L2DeviceOptions) - MPEGRec(/dev/HDPVR): Unable to set audio input.
2012-06-25 22:29:34.945622 E [26762/26858] RecThread mpegrecorder.cpp:745 (set_ctrls) - mpegrecorder.cpp:set_ctrls(): Could not set MPEG Bitrate mode to 0
                        eno: Bad file descriptor (9)
2012-06-25 22:29:34.945638 E [26762/26858] RecThread mpegrecorder.cpp:745 (set_ctrls) - mpegrecorder.cpp:set_ctrls(): Could not set Video Average Bitrate to 9000000
                        eno: Bad file descriptor (9)
2012-06-25 22:29:34.945650 E [26762/26858] RecThread mpegrecorder.cpp:745 (set_ctrls) - mpegrecorder.cpp:set_ctrls(): Could not set Video Peak Bitrate to 11000000
                        eno: Bad file descriptor (9)
2012-06-25 22:29:34.945703 W [26762/26858] RecThread mpegrecorder.cpp:1315 (StartEncoding) - MPEGRec(/dev/HDPVR): StartEncoding failed
                        eno: Resource temporarily unavailable (11)
2012-06-25 22:29:37.150567 I [26762/26774] TVRecEvent tv_rec.cpp:1014 (HandleStateChange) - TVRec(1): Changing from WatchingLiveTV to None
2012-06-25 22:29:37.150620 W [26762/26774] TVRecEvent mpegrecorder.cpp:1359 (StopEncoding) - MPEGRec(/dev/HDPVR): StopEncoding failed
                        eno: Resource temporarily unavailable (11)
2012-06-25 22:29:37.289114 I [26762] ProcessRequest mainserver.cpp:1360 (HandleAnnounce) - MainServer::ANN Playback
2012-06-25 22:29:37.289120 I [26762] ProcessRequest mainserver.cpp:1362 (HandleAnnounce) - adding: mythlivingroom.localdomain as a client (events: 0)
2012-06-25 22:29:37.297307 I [26762/26774] TVRecEvent tv_rec.cpp:1014 (HandleStateChange) - TVRec(1): Changing from None to WatchingLiveTV
2012-06-25 22:29:37.298480 I [26762/26774] TVRecEvent tv_rec.cpp:3459 (TuningCheckForHWChange) - TVRec(1): HW Tuner: 1->1
2012-06-25 22:29:37.313556 I [26762/26774] TVRecEvent v4lchannel.cpp:661 (SetInputAndFormat) - V4LChannel(/dev/HDPVR): SetInputAndFormat(1, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
2012-06-25 22:29:37.338302 N [26762/26762] CoreContext autoexpire.cpp:263 (CalcParams) - AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2012-06-25 22:29:37.376511 I [26762/26774] TVRecEvent tv_rec.cpp:1014 (HandleStateChange) - TVRec(1): Changing from WatchingLiveTV to None
2012-06-25 22:29:39.955795 E [26762/26810] ProcessRequest fileringbuffer.cpp:289 (OpenFile) - FileRingBuf(/mythstorage/livetv/1501_20120625222929.mpg): OpenFile(): File too small (0B).
2012-06-25 22:29:44.959036 W [26762/26810] ProcessRequest mainserver.cpp:5801 (connectionClosed) - MainServer: Unknown socket closing MythSocket(0xa3d2c0)
2012-06-25 22:29:44.959070 E [26762/26810] ProcessRequest mythsocket.cpp:389 (writeStringList) - MythSocket(a3d2c0:-1): writeStringList: Error, No data written on writeBlock (1 errors)
                        starts with: 15      OK[]:[]82[]:[]0
2012-06-25 22:29:45.574686 N [26762/26762] CoreContext main_helpers.cpp:664 (run_backend) - MythBackend exiting
2012-06-25 22:29:47.450438 I [26762/26762] CoreContext mythcontext.cpp:1115 (~MythContext) - Waiting for threads to exit.

comment:8 Changed 12 years ago by Michelle Dupuis <support@…>

Good news - it's working now! The above problems related to a USB 3 driver issue. Plugging into USB 2 let everything work ok. (Not sure what cat from /dev/HDPVR worked under usb 3 but something in myth makes the xhci driver crap out)...

comment:9 Changed 12 years ago by jpoet

Resolution: Invalid
Status: infoneeded_newclosed

Thanks for reporting the real problem.

comment:10 Changed 12 years ago by Michelle Dupuis <support@…>

Hopefully I was clear...there is a real problem in .25 but in .25.1 it works fine. The secondary problem (USB3) only appeared once the HDPVR started working in .25.1

Note: See TracTickets for help on using tickets.