Skip to content

Instantly share code, notes, and snippets.

@ChrisLane
Created April 25, 2023 12:10
Show Gist options
  • Save ChrisLane/f437866b01b6a2deb9b020e19ab82752 to your computer and use it in GitHub Desktop.
Save ChrisLane/f437866b01b6a2deb9b020e19ab82752 to your computer and use it in GitHub Desktop.
{
"id": 150,
"type": "PipeWire:Interface:Node",
"version": 3,
"permissions": [
"r",
"w",
"x",
"m"
],
"info": {
"max-input-ports": 0,
"max-output-ports": 1,
"change-mask": [
"input-ports",
"output-ports",
"state",
"props",
"params"
],
"n-input-ports": 0,
"n-output-ports": 1,
"state": "running",
"error": null,
"props": {
"client.id": 51,
"media.class": "Video/Source",
"media.name": "xdpw-stream-BDCpCI",
"node.driver": true,
"node.name": "xdg-desktop-portal-wlr",
"node.want-driver": true,
"object.id": 150,
"object.serial": 510,
"stream.is-live": true
},
"params": {
"PropInfo": [],
"Props": [],
"EnumFormat": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": 144115188622605060,
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"default": {
"num": 60,
"denom": 1
},
"min": {
"num": 1,
"denom": 1
},
"max": {
"num": 60,
"denom": 1
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0
},
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"default": {
"num": 60,
"denom": 1
},
"min": {
"num": 1,
"denom": 1
},
"max": {
"num": 60,
"denom": 1
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"default": {
"num": 60,
"denom": 1
},
"min": {
"num": 1,
"denom": 1
},
"max": {
"num": 60,
"denom": 1
}
}
}
],
"Format": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": 144115188622605060,
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"num": 60,
"denom": 1
}
}
]
}
}
}
{
"id": 137,
"type": "PipeWire:Interface:Port",
"version": 3,
"permissions": [
"r",
"w",
"x",
"m"
],
"info": {
"direction": "output",
"change-mask": [
"props",
"params"
],
"props": {
"node.id": 150,
"object.id": 137,
"object.path": "xdg-desktop-portal-wlr:capture_0",
"object.serial": 511,
"port.alias": "xdg-desktop-portal-wlr:capture_1",
"port.direction": "out",
"port.id": 0,
"port.name": "capture_1"
},
"params": {
"EnumFormat": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": 144115188622605060,
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"default": {
"num": 60,
"denom": 1
},
"min": {
"num": 1,
"denom": 1
},
"max": {
"num": 60,
"denom": 1
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0
},
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"default": {
"num": 60,
"denom": 1
},
"min": {
"num": 1,
"denom": 1
},
"max": {
"num": 60,
"denom": 1
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"default": {
"num": 60,
"denom": 1
},
"min": {
"num": 1,
"denom": 1
},
"max": {
"num": 60,
"denom": 1
}
}
}
],
"Meta": [
{
"type": "Busy",
"size": 8
},
{
"type": "Header",
"size": 32
},
{
"type": "VideoTransform",
"size": 4
},
{
"type": "VideoDamage",
"size": {
"default": 64,
"min": 16,
"max": 64
}
}
],
"IO": [
{
"id": "Buffers",
"size": 8
}
],
"Format": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": 144115188622605060,
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"num": 60,
"denom": 1
}
}
],
"Buffers": [
{
"buffers": {
"default": 2,
"min": 2,
"max": 32
},
"blocks": 2,
"align": 16,
"dataType": {
"default": 8
}
}
],
"Latency": []
}
}
}
{
"id": 156,
"type": "PipeWire:Interface:Node",
"version": 3,
"permissions": [
"r",
"w",
"x",
"m"
],
"info": {
"max-input-ports": 1,
"max-output-ports": 0,
"change-mask": [
"input-ports",
"output-ports",
"state",
"props",
"params"
],
"n-input-ports": 1,
"n-output-ports": 0,
"state": "running",
"error": null,
"props": {
"client.id": 107,
"media.class": "Stream/Input/Video",
"media.name": "webrtc-consume-stream",
"node.autoconnect": true,
"node.name": "firefox",
"node.target": 150,
"node.want-driver": true,
"object.id": 156,
"object.serial": 513,
"pipewire.client.reuse": 1,
"stream.is-live": true
},
"params": {
"PropInfo": [],
"Props": [],
"EnumFormat": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRA",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRA",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBA",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBA",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBx",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBx",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
}
],
"Format": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": 144115188622605060,
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"num": 60,
"denom": 1
}
}
]
}
}
}
{
"id": 110,
"type": "PipeWire:Interface:Port",
"version": 3,
"permissions": [
"r",
"w",
"x",
"m"
],
"info": {
"direction": "input",
"change-mask": [
"props",
"params"
],
"props": {
"node.id": 156,
"object.id": 110,
"object.path": "firefox:input_0",
"object.serial": 514,
"port.alias": "firefox:input_1",
"port.direction": "in",
"port.id": 0,
"port.name": "input_1"
},
"params": {
"EnumFormat": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRA",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRA",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBA",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBA",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBx",
"modifier": {
"default": 144115188622605060,
"alt1": 144115188622605060,
"alt2": 144115188622588670,
"alt3": 144115188622392060,
"alt4": 144115188621122300,
"alt5": 144115188084250880,
"alt6": 144115188075858180,
"alt7": 0,
"alt8": 72057594037927940
},
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
},
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "RGBx",
"size": {
"default": {
"width": 1,
"height": 1
},
"min": {
"width": 1,
"height": 1
},
"max": {
"width": 4294967295,
"height": 4294967295
}
}
}
],
"Meta": [
{
"type": "Busy",
"size": 8
},
{
"type": "Header",
"size": 32
},
{
"type": "VideoCrop",
"size": 16
},
{
"type": "Cursor",
"size": {
"default": 16432,
"min": 52,
"max": 589872
}
},
{
"type": "VideoDamage",
"size": {
"default": 256,
"min": 16,
"max": 256
}
}
],
"IO": [
{
"id": "Buffers",
"size": 8
}
],
"Format": [
{
"mediaType": "video",
"mediaSubtype": "raw",
"format": "BGRx",
"modifier": 144115188622605060,
"size": {
"width": 1920,
"height": 1080
},
"framerate": {
"num": 0,
"denom": 1
},
"maxFramerate": {
"num": 60,
"denom": 1
}
}
],
"Buffers": [
{
"size": 8294400,
"stride": 7680,
"buffers": {
"default": 8,
"min": 1,
"max": 32
},
"dataType": {
"default": 14
}
}
],
"Latency": []
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment