50-libcamera-config.lua 985 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. libcamera_monitor.enabled = true
  2. libcamera_monitor.rules = {
  3. -- An array of matches/actions to evaluate.
  4. {
  5. -- Rules for matching a device or node. It is an array of
  6. -- properties that all need to match the regexp. If any of the
  7. -- matches work, the actions are executed for the object.
  8. matches = {
  9. {
  10. -- This matches all cards.
  11. { "device.name", "matches", "libcamera_device.*" },
  12. },
  13. },
  14. -- Apply properties on the matched object.
  15. apply_properties = {
  16. -- ["device.nick"] = "My Device",
  17. },
  18. },
  19. {
  20. matches = {
  21. {
  22. -- Matches all sources.
  23. { "node.name", "matches", "libcamera_input.*" },
  24. },
  25. {
  26. -- Matches all sinks.
  27. { "node.name", "matches", "libcamera_output.*" },
  28. },
  29. },
  30. apply_properties = {
  31. --["node.nick"] = "My Node",
  32. --["priority.driver"] = 100,
  33. --["priority.session"] = 100,
  34. --["node.pause-on-idle"] = false,
  35. },
  36. },
  37. }