Possible set last_video_device_id and video_device_id scene settings to integrated camera?

markusd1984

New Member
I'm creating a scene collection with a green screen png to display the integrated laptop camera in a circle, which I would like to roll out to multiple laptops installations.

Is it possible to set the "last_video_device_id" and "video_device_id" setting parameters to use the "Integrated Camera", without specifying the exact camera id?

Unfortunately, when one sets this up manually it saves the whole string with camera ID, which prevents me from rolling it out to multiple laptops as they may have different integrated cameras, thus one would have to right-click and go to properties then set it back to Defaults and configure again the resolution to custom and 64x480, which I'd like to avoid having to setup manually for each install.

Code Excerpt from the created scene.json
Code:
       {
            "balance": 0.5,
            "deinterlace_field_order": 0,
            "deinterlace_mode": 0,
            "enabled": true,
            "filters": [
                {
                    "balance": 0.5,
                    "deinterlace_field_order": 0,
                    "deinterlace_mode": 0,
                    "enabled": true,
                    "flags": 0,
                    "hotkeys": {},
                    "id": "mask_filter",
                    "mixers": 0,
                    "monitoring_type": 0,
                    "muted": false,
                    "name": "Image Mask/Blend",
                    "prev_ver": 419430401,
                    "private_settings": {},
                    "push-to-mute": false,
                    "push-to-mute-delay": 0,
                    "push-to-talk": false,
                    "push-to-talk-delay": 0,
                    "settings": {
                        "color": 4294967295,
                        "image_path": "C:/OBS Scenes Camera Circle/green circle for camera filter 640x480.png",
                        "opacity": 100,
                        "stretch": false,
                        "type": "mask_alpha_filter.effect"
                    },
                    "sync": 0,
                    "versioned_id": "mask_filter",
                    "volume": 1.0
                }
            ],
            "flags": 0,
            "hotkeys": {
                "libobs.mute": [],
                "libobs.push-to-mute": [],
                "libobs.push-to-talk": [],
                "libobs.unmute": []
            },
            "id": "dshow_input",
            "mixers": 255,
            "monitoring_type": 0,
            "muted": false,
            "name": "camera - green circle",
            "prev_ver": 419430401,
            "private_settings": {},
            "push-to-mute": false,
            "push-to-mute-delay": 0,
            "push-to-talk": false,
            "push-to-talk-delay": 0,
            "settings": {
                "last_resolution": "640x480",
                "last_video_device_id": "Integrated Camera:\\\\?\\usb#22vid_5986&pid_2113&mi_00#226&7ae664&0&0000#22{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global",
                "res_type": 1,
                "resolution": "640x480",
                "video_device_id": "Integrated Camera:\\\\?\\usb#22vid_5986&pid_2113&mi_00#226&7ae664&0&0000#22{65e8773d-8f56-11d0-a3b9-00a0c9223196}\\global"
            },
            "sync": 0,
            "versioned_id": "dshow_input",
            "volume": 1.0
        },

Alternatively, could this info be retrieved from System information to potentially customise the scene profile locally during a rollout?
 
Last edited:
Top