2021-02-08 18:28:47 +00:00
|
|
|
# V4L2 monitor config file #
|
|
|
|
|
|
2021-01-12 20:38:47 +01:00
|
|
|
properties = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rules = [
|
2021-02-08 18:28:47 +00:00
|
|
|
# An array of matches/actions to evaluate.
|
2021-01-12 20:38:47 +01:00
|
|
|
{
|
2021-02-08 18:28:47 +00:00
|
|
|
# Rules for matching a device or node. It is an array of
|
2021-01-12 20:38:47 +01:00
|
|
|
# properties that all need to match the regexp. If any of the
|
|
|
|
|
# matches work, the actions are executed for the object.
|
|
|
|
|
matches = [
|
|
|
|
|
{
|
2021-02-08 18:28:47 +00:00
|
|
|
# This matches all devices.
|
2021-02-05 17:34:30 +01:00
|
|
|
device.name = "~v4l2_device.*"
|
2021-01-12 20:38:47 +01:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
actions = {
|
2021-02-08 18:28:47 +00:00
|
|
|
# Actions can update properties on the matched object.
|
2021-01-12 20:38:47 +01:00
|
|
|
update-props = {
|
|
|
|
|
#device.nick = "My Device"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
matches = [
|
|
|
|
|
{
|
2021-02-08 18:28:47 +00:00
|
|
|
# Matches all sinks.
|
2021-02-05 17:34:30 +01:00
|
|
|
node.name = "~v4l2_input.*"
|
2021-01-12 20:38:47 +01:00
|
|
|
}
|
|
|
|
|
{
|
2021-02-08 18:28:47 +00:00
|
|
|
# Matches all sources.
|
2021-02-05 17:34:30 +01:00
|
|
|
node.name = "~v4l2_output.*"
|
2021-01-12 20:38:47 +01:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
actions = {
|
|
|
|
|
update-props = {
|
|
|
|
|
#node.nick = "My Node"
|
|
|
|
|
#node.nick = null
|
|
|
|
|
#priority.driver = 100
|
|
|
|
|
#priority.session = 100
|
2021-02-08 17:19:47 +01:00
|
|
|
node.pause-on-idle = false
|
2021-01-12 20:38:47 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|