pipewire-aes67: recommend using ifname

It's better for PHC identification in multi-NIC systems. PHC numbering might be dependent on the probe order yet no bugs was observed. Still recommend this for more comfortable configuration.

Also added some guidance on what must be changed
This commit is contained in:
Dmitry Sharshakov 2023-12-15 20:53:35 +03:00 committed by Wim Taymans
parent 5edd3f240b
commit e4a9f800c8

View file

@ -36,9 +36,11 @@ context.objects = [
# This driver should only be used for network nodes marked with group # This driver should only be used for network nodes marked with group
priority.driver = 100000 priority.driver = 100000
clock.name = "clock.system.ptp0" clock.name = "clock.system.ptp0"
#clock.id = tai ### please select the PTP hardware clock here
clock.device = "/dev/ptp0" # Interface name is the preferred method of specifying the PHC
#clock.interface = "eth0" #clock.interface = "eth0"
clock.device = "/dev/ptp0"
#clock.id = tai
object.export = true object.export = true
} }
} }
@ -60,6 +62,7 @@ context.modules = [
{ name = libpipewire-module-adapter } { name = libpipewire-module-adapter }
{ name = libpipewire-module-rtp-sap { name = libpipewire-module-rtp-sap
args = { args = {
### please select the interface here
local.ifname = eth0 local.ifname = eth0
sap.ip = 239.255.255.255 sap.ip = 239.255.255.255
sap.port = 9875 sap.port = 9875
@ -98,6 +101,7 @@ context.modules = [
}, },
{ name = libpipewire-module-rtp-sink { name = libpipewire-module-rtp-sink
args = { args = {
### please select the interface here
local.ifname = eth0 local.ifname = eth0
destination.ip = 239.69.150.243 destination.ip = 239.69.150.243
destination.port = 5004 destination.port = 5004
@ -108,6 +112,7 @@ context.modules = [
sess.max-ptime = 1 sess.max-ptime = 1
sess.name = "PipeWire RTP stream" sess.name = "PipeWire RTP stream"
sess.media = "audio" sess.media = "audio"
### please select the PTP grandmaster ID here
sess.ts-refclk = "ptp=traceable" sess.ts-refclk = "ptp=traceable"
sess.ts-offset = 0 sess.ts-offset = 0
sess.ptime = 1 sess.ptime = 1