[mythtv-users] How to identify physical capture card in event handler
gary.buhrmaster at gmail.com
Sat Feb 25 12:35:56 UTC 2023
On Sat, Feb 25, 2023 at 11:05 AM Jan Ceuleers <jan.ceuleers at gmail.com> wrote:
> When %CARDID% is passed to an event handler, the value passed in can
> refer to any one of the virtual capture cards corresponding with a
> multirec-capable capture card. How can I determine from within the event
> handler which physical capture card a given cardid value corresponds with?
> Or is there some other %PARAMETER% I should be passing to the event handler?
I had thought there was a VIDEODEVICE parameter
which was added quite a number of years ago,
although I do not see it documented in the wiki or
release notes (and I have not checked the
Alternatively, another way you should be able to
determine it is that you can use the services API
(Capture Service, GetCaptureCard) and retrieve
the videodevice from within your script.
I have not used them in a long time, but I believe
the MythTV python bindings also have a method
to obtain the CaptureCard information.
And, of course, there is the brute force method
of directly accessing the mythconverg table and
'select videosource from capturecard where cardid=...'
although that would not be recommended.
More information about the mythtv-users