Skip to content

Screen recording permissions #73

@antonshkurenko

Description

@antonshkurenko

Describe Request:

I'm trying to record test videos using either ffmpeg or appium mac2 driver (as far as I know, it uses ffmpeg behind the scenes anyway)

Examples:

deviceId == 0 is screen capture in CircleCI VM.

In python code is simple:

appium_driver.start_recording_screen(deviceId=0)

Or using raw ffmpeg:

ffmpeg -f avfoundation -i "0" -t 10 output.mp4

But I can't give permissions somehow. Once I start video recording, there is a popup:

image

And an error:

 [ffmpeg] objc[23088]: class `NSKVONotifying_AVCaptureScreenInput' not linked into application

What I've tried:

basically main are ffmpeg and .machine-agent, others are just out of desperation 🙂

      - macos/add-permission:
         bundle-id: /Applications/Utilities/Terminal.app
         permission-type: kTCCServiceScreenCapture
     - macos/add-permission:
         bundle-id: /private/tmp/.machine-agent
         permission-type: kTCCServiceScreenCapture
     - macos/add-permission:
         bundle-id: /usr/local/bin/ffmpeg
         permission-type: kTCCServiceScreenCapture
     - macos/add-permission:
         bundle-id: /opt/homebrew/bin/appium
         permission-type: kTCCServiceScreenCapture

Supporting Documentation Links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions