NauTiluS1

pipewire.conf

Dec 4th, 2025
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.28 KB | None | 0 0
  1. # Daemon config file for PipeWire version "0.3.26" #
  2.  
  3. context.properties = {
  4.     ## Configure properties in the system.
  5.     #
  6.     # An empty configuration uses the PipeWire defaults.
  7.     #
  8.     # Configure properties in the system.
  9.     #   support.dbus                = true
  10.     #   support.option-parser       = true
  11.     #   support.loop-destroy        = true
  12.     #   link.max-buffers            = 64
  13.     #   log.level                   = 2
  14.     #   default.clock.rate          = 48000
  15.     #   default.clock.allowed-rates = [ 48000 ]
  16.     #   default.clock.quantum       = 1024
  17.     #   default.clock.min-quantum   = 32
  18.     #   default.clock.max-quantum   = 8192
  19.     #   default.video.width         = 640
  20.     #   default.video.height        = 480
  21.     #   default.video.rate.num      = 25
  22.     #   default.video.rate.denom    = 1
  23.     #   default.clock.quantum-limit = 8192
  24.  
  25.     log.level = 2
  26.  
  27.     core.daemon = true
  28.     core.name   = pipewire-0
  29.  
  30.     # Memfd support is disabled on some systems like older android gan
  31.     # be disabled here.
  32.     #
  33.     support.memfd = true
  34.  
  35.     # Allow PipeWire to use the system RTKit service to boost the data thread priority.
  36.     # This is generally recommended, but PipeWire clients can't handle more
  37.     #mem.warn-mlock                 =
  38.     #mem.allow-mlock                =
  39.     #mem.mlock-all                  = false
  40.  
  41.     #vm.overrides = {
  42.     #    default.clock.min-quantum   = 1024
  43.     #}
  44.  
  45.  
  46.     default.clock.rate          = 96000
  47.     default.clock.allowed-rates = [ 192000 96000 48000 44100 32040 ]
  48.     default.clock.quantum       = 64
  49.     default.clock.min-quantum   = 32
  50.     default.clock.max-quantum   = 1024
  51.  
  52.     default.audio.rate          = 96000
  53.     default.audio.format        = "F32"
  54.     default.audio.position      = [ FL FR FC LFE RL RR ]
  55.  
  56.     vm.overrides = {
  57.         default.clock.min-quantum = 1024
  58.     }
  59.  
  60.     # These overrides are only applied when running in a vm.
  61.     #vm.overrides = {
  62.     #    default.clock.rate        = 48000
  63.     #    default.clock.min-quantum = 1024
  64.     #}
  65.  
  66.     # Settings for the DSP configuration.
  67.     #dsp.lib = [
  68.     #    { path = support/libspa-dsp-float.so }
  69.     #    { path = support/libspa-dsp-fixed.so }
  70.     #]
  71.  
  72.     # Paths where to look for spa factory libraries
  73.     #   plugins  = [ ${LIBDIR}/spa-0.2 ]
  74.     #   spa-libs = {
  75.     #       audio.convert.* = audio/libspa-audioconvert
  76.     #       support.*       = support/libspa-support
  77.     #   }
  78.  
  79.     # Paths where to look for pw module libraries
  80.     #modules            = [ ${LIBDIR}/pipewire-0.3 ]
  81.     #jack.library       = libjack.so.0
  82.     #remote.name        = pipewire-0
  83. }
  84.  
  85. context.spa-libs = {
  86.     #<factory-name regex> = <library-name>
  87.  
  88.     audio.convert.* = audioconvert/libspa-audioconvert
  89.     audio.*         = audio/libspa-audio
  90.     avb.*           = avb/libspa-avb
  91.     api.alsa.*      = alsa/libspa-alsa
  92.     api.v4l2.*      = v4l2/libspa-v4l2
  93.     api.libcamera.* = libcamera/libspa-libcamera
  94.     api.bluez5.*    = bluez5/libspa-bluez5
  95.     api.vulkan.*    = vulkan/libspa-vulkan
  96.     api.jack.*      = jack/libspa-jack
  97.     api.gl.*        = spa/libspa-gl
  98.     api.lv2.*       = lv2/libspa-lv2
  99.     api.egl.*       = egl/libspa-egl
  100.     api.vulkan.*    = vulkan/libspa-vulkan
  101.     support.*       = support/libspa-support
  102.     video.convert.* = videoconvert/libspa-videoconvert
  103.     video.filter.*  = videofilter/libspa-videofilter
  104. }
  105.  
  106. context.modules = [
  107.     #{ name = libpipewire-module-rt
  108.     #    args = {
  109.     #        #rt.prio      = 88
  110.     #        #rt.time.soft = -1
  111.     #        #rt.time.hard = -1
  112.     #    }
  113.     #    flags = [ ifexists nofail ]
  114.     #}
  115.     { name = libpipewire-module-rtkit
  116.         args = {
  117.             #nice.level   = -11
  118.             #rt.prio      = 88
  119.             #rt.time.soft = 2000000
  120.             #rt.time.hard = 2000000
  121.         }
  122.         flags = [ ifexists nofail ]
  123.     }
  124.     #{ name = libpipewire-module-profiling
  125.     #    args = {
  126.     #        #filename = "pipewire-profile.log"
  127.     #    }
  128.     #}
  129.     { name = libpipewire-module-protocol-native }
  130.     { name = libpipewire-module-profiler }
  131.     { name = libpipewire-module-metadata }
  132.     { name = libpipewire-module-spa-device-factory }
  133.     { name = libpipewire-module-spa-node-factory }
  134.     { name = libpipewire-module-client-node }
  135.     { name = libpipewire-module-client-device }
  136.  
  137.     # The portal module monitors the PID of the pipewire media-session.
  138.     # It keeps a client for the session manager and tags it as the
  139.     # default. The default session manager is then started.
  140.     { name = libpipewire-module-portal
  141.         args = {
  142.             #monitoring.session-manager = true
  143.             media-session.process.binary     = "/usr/bin/pipewire-media-session"
  144.             #media-session.process.env        = []
  145.             #media-session.process.args       = []
  146.             #media-session.process.spawn-flags = [ interactive ]
  147.         }
  148.         flags = [ ifexists nofail ]
  149.     }
  150.  
  151.     # Use the realtime kit to boost the data thread priority.
  152.     # This is recommended but PipeWire clients can't handle more.
  153.  
  154.     { name = libpipewire-module-access
  155.         args = {
  156.             #acl        = [
  157.             #    { path = "/dev/snd/*"        access = "rw" }
  158.             #    { path = "/dev/dri/*"        access = "rw" }
  159.             #    { path = "/dev/video*"       access = "rw" }
  160.             #    { path = "/dev/v4l-subdev*"  access = "rw" }
  161.             #    { path = "/dev/media*"       access = "rw" }
  162.             #]
  163.             #media.role = "none"
  164.         }
  165.     }
  166.  
  167.     { name = libpipewire-module-adapter }
  168.     { name = libpipewire-module-link-factory }
  169.     { name = libpipewire-module-session-manager }
  170. ]
  171.  
  172. context.objects = [
  173.     #{
  174.     #    factory = spa-node-factory
  175.     #    args = {
  176.     #        factory.name    = support.null-audio-sink
  177.     #        node.name       = "Dummy-Driver"
  178.     #        node.nick       = "Dummy-Driver"
  179.     #        node.description = "Dummy-Driver"
  180.     #        priority.driver = 8000
  181.     #        media.class     = "Audio/Sink"
  182.     #        audio.channels  = 2
  183.     #        audio.position  = [ FL FR ]
  184.     #    }
  185.     #}
  186.    {
  187.        factory = spa-node-factory
  188.        args = {
  189.            factory.name    = support.node.driver
  190.            node.name       = Dummy-Driver
  191.            priority.driver = 8000
  192.        }
  193.    }
  194. ]
  195.  
  196. # Sessions can be more complicated and can also include background
  197. # daemons of PipeWire components. All this can be configured in this
  198. # config file.
  199.  
  200. session.spa-libs  = {
  201. }
  202.  
  203. session.modules = [
  204.     { name = libpipewire-module-rtkit
  205.         args = {
  206.             nice.level   = -11
  207.             rt.prio      = 88
  208.             rt.time.soft = 2000000
  209.             rt.time.hard = 2000000
  210.         }
  211.     }
  212.  
  213.     { name = libpipewire-module-loopback
  214.         args = {
  215.             node.name         = "loopback-node"
  216.             # capture.props = {
  217.             #     node.latency = 4096/48000
  218.             # }
  219.             # playback.props = {
  220.             #     node.passive = true
  221.             # }
  222.         }
  223.         flags = [ ifexists nofail ]
  224.     }
  225.  
  226.     { name = libpipewire-module-filter-chain
  227.         args = {
  228.             node.description  = "Mic Filter"
  229.             media.name        = "Mic Filter"
  230.             filter.graph      = {
  231.                 nodes = [
  232.                     {
  233.                         type = builtin
  234.                         name = "eq"
  235.                         plugin = "lsp-plugins-lv2"
  236.                         label  = "http://lsp-plug.in/plugins/lv2/para_equalizer_x16_lr"
  237.                         control = {
  238.                             "500/enable"    = 1.0
  239.                             "500/freq"      = 80.0
  240.                             "500/q"         = 0.7
  241.                             "500/gain"      = -3.0
  242.                         }
  243.                     }
  244.                 ]
  245.             }
  246.             capture.props = {
  247.                 node.name = "mic-capture"
  248.                 media.class = "Audio/Source"
  249.                 audio.format = "F32"
  250.                 audio.rate = 48000
  251.                 audio.channels = 2
  252.                 audio.position = [ FL FR ]
  253.             }
  254.             playback.props = {
  255.                 node.name = "mic-playback"
  256.                 media.class = "Audio/Sink"
  257.                 audio.format = "F32"
  258.                 audio.rate = 48000
  259.                 audio.channels = 2
  260.                 audio.position = [ FL FR ]
  261.             }
  262.         }
  263.         flags = [ ifexists nofail ]
  264.     }
  265.  
  266.     { name = libpipewire-module-filter-chain
  267.         args = {
  268.             node.description = "System Equalizer"
  269.             media.name = "System Equalizer"
  270.             filter.graph = {
  271.                 nodes = [
  272.                     {
  273.                         type = builtin
  274.                         name = "eq"
  275.                         plugin = "lsp-plugins-lv2"
  276.                         label  = "http://lsp-plug.in/plugins/lv2/para_equalizer_x16_lr"
  277.                         control = {
  278.                             "0/enable"      = 1.0
  279.                             "0/freq"        = 60.0
  280.                             "0/q"           = 0.7
  281.                             "0/gain"        = 3.0
  282.                             "1/enable"      = 1.0
  283.                             "1/freq"        = 120.0
  284.                             "1/q"           = 0.7
  285.                             "1/gain"        = 2.0
  286.                             "2/enable"      = 1.0
  287.                             "2/freq"        = 250.0
  288.                             "2/q"           = 0.7
  289.                             "2/gain"        = -1.0
  290.                             "3/enable"      = 1.0
  291.                             "3/freq"        = 500.0
  292.                             "3/q"           = 0.7
  293.                             "3/gain"        = -2.0
  294.                             "4/enable"      = 1.0
  295.                             "4/freq"        = 1000.0
  296.                             "4/q"           = 0.7
  297.                             "4/gain"        = -1.0
  298.                             "5/enable"      = 1.0
  299.                             "5/freq"        = 2000.0
  300.                             "5/q"           = 0.7
  301.                             "5/gain"        = -2.0
  302.                             "6/enable"      = 1.0
  303.                             "6/freq"        = 4000.0
  304.                             "6/q"           = 0.7
  305.                             "6/gain"        = 3.0
  306.                             "7/enable"      = 1.0
  307.                             "7/freq"        = 8000.0
  308.                             "7/q"           = 0.7
  309.                             "7/gain"        = 4.0
  310.                         }
  311.                     }
  312.                 ]
  313.             }
  314.             capture.props = {
  315.                 node.name = "system-capture"
  316.                 media.class = "Audio/Source"
  317.                 audio.format = "F32"
  318.                 audio.rate = 48000
  319.                 audio.channels = 2
  320.                 audio.position = [ FL FR ]
  321.             }
  322.             playback.props = {
  323.                 node.name = "system-playback"
  324.                 media.class = "Audio/Sink"
  325.                 audio.format = "F32"
  326.                 audio.rate = 48000
  327.                 audio.channels = 2
  328.                 audio.position = [ FL FR ]
  329.             }
  330.         }
  331.         flags = [ ifexists nofail ]
  332.     }
  333. ]
  334.  
  335. # EOF
  336.  
Advertisement
Add Comment
Please, Sign In to add comment