[mythtv-users] How to identify physical capture card in event handler

Jan Ceuleers jan.ceuleers at gmail.com
Sat Feb 25 13:30:44 UTC 2023

On 25/02/2023 13:35, Gary Buhrmaster wrote:
> 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
> source).

You are right: I do see VIDEODEVICE in the source.

I just tried adding it to the wiki, but I don't know how to edit the
thing that {{Event_and_Job_Parameters}} refers to on page [[MythTV
System Events]]. There isn't a page of that name.

I will give VIDEODEVICE a go.

By the way, it would be useful for a special parameter to exist that
could be passed to the "any event" event, showing which parameters are
valid for that event, such that logging $* from the "all events" handler
would yield something like:


with the %{1-7} parameters filled in.

Cheers, Jan

More information about the mythtv-users mailing list