Mailing List Archive

Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@gmail.com | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------
I have a Hauppauge HVR-1300 capture card. It has an MPEG encoder (cx88
blackbird) and I use it to capture analogue signal from my cable box. I
filled in the channels and EPG with XMLTV and I control the box with IR.
Everything is fine with V4L capture, but with MPEG capture I end up with
"I/O error" when I change channels. It seems that the cx88 doesn't like it
when it's opened multiple times.

I used Google and my brain, and traced the problem to
libs/libmythtv/mpegrecorder.cpp. And I fixed it. Patch attached (for
0.21-fixes). All it does is release the card when the recording is
finished (i.e. the channel is changed), so it's really simple.

I'm not sure if 0.22 still has the problem - I'd think it does - but the
function I changed no longer exists in trunk:
MpegRecorder::FinishRecording(void), so if you can follow up this patch
and put it in the right place, that would be wonderful. Thanks.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by anonymous):

Looks like that function is now here:

http://svn.mythtv.org/trac/browser/trunk/mythtv/libs/libmythtv/dtvrecorder.cpp

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------
Changes (by stuartm):

* status: new => infoneeded_new


Comment:

Could someone using analogue capture with an HVR-1300 tell us if this is
still an issue with 0.23 RC2 or failing that 0.22-fixes?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by radu.cx+mythtv@…):

It's been a while since I used that card (and the machine that has the
card in it). The project I was working one when I submitted the ticket and
patch was put on the back burner soon after, so I never booted the machine
since.

I'll try to get back to you in the following days.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:3>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by radu.cx+mythtv@…):

Yes, still an issue.

I get "Video frame buffering failed too many times" when switching
channels. After that, I have to quit the frontend completely to watch the
HVR-1300 again. Log scrolls with "Error: Invalid file descriptor in
'safe_read()' and the finishes with 'TV Error: LiveTV not successfully
started'. So now it's even worse than it was in 0.21. Back then I could
watch Live TV after the card failed to open.

I would update the patch, but I have no idea where to look right now, and
things seem to be totally different, so it can take a while to bring the
patch up to date.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:4>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------
Changes (by robertm):

* status: infoneeded_new => new


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:5>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by radu.cx+mythtv@…):

The backend says this:

DevRdb(/dev/video1) Error: Problem reading fd(40) eno: Input/output error
(5)
...
MPEGRec(/dev/video1) Error: Device error detected

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:6>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by radu.cx+mythtv@…):

I attempted to refresh the patch I posted when I opened the ticket, and
ended up with the file I attached to this ticket just earlier. It seems to
do what it's supposed to be doing, but I end up with something else:

playCtx, Error: Attempting to setup a player, but it already exists.

I get this each and every time I change channels after I apply the above
patch, which is different from locking up. Any ideas on this one? I tried
looking around code, but at a first glance I'm not sure why the player
doesn't close when the myth state switches from WatchingLiveTV to None
before switching the channel.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:7>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by radu.cx+mythtv@…):

BTW, I'm seeing that playCtx error on DVB as well, without me making any
changes, but I'm not sure how to consistently reproduce it there.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:8>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Mlocked: 0
--------------------------------------+-------------------------------------

Comment(by radu.cx+mythtv@…):

Bouncing around code, I came up with this patch, but while channel
changing now kinda works, after I exit live TV a dialog box shows up with
this text: "Error opening jump program file buffer". This and the fact
that I have to kill the NVP player mean that I'm missing something.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:9>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: danielk
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Resolution:
Keywords: hvr-1300 | Ticket locked: 0
--------------------------------------+-------------------------------------
Changes (by robertm):

* owner: ijr => danielk
* status: new => assigned


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:10>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels = error [ In reply to ]
#6833: Hauppauge HVR-1300 + MPEG encoder + external cable box + changing channels
= error
--------------------------------------+-------------------------------------
Reporter: radu.cx+mythtv@… | Owner: danielk
Type: defect | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Recording | Version: 0.21-fixes
Severity: medium | Resolution: wontfix
Keywords: hvr-1300 | Ticket locked: 0
--------------------------------------+-------------------------------------
Changes (by danielk):

* status: assigned => closed
* resolution: => wontfix


Comment:

Please report the problem opening the device file multiple times upstream
to the LinuxTV project.

We will not apply workarounds until we hear from them that the problem has
been addressed upstream first.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6833#comment:11>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits