# Screen Interaction (FFMPEG required)

FFMpeg Should be on the path for this method to work

#### startScreenRecording(fps:Integer, filename:String)

Starts a screen recording saved to the filename, should be stop with stopScreenRecording

#### stopScreenRecording()

Stops screen recording. A recording should be already started with startScreenRecording.

#### extractFrame(String: video, frame:Integer, Output:String)

Extracts a frame from the video and saves it in the Output file. File format should be based on the output extension.

#### extractFrames(String: video, frame:Integer, int count: OutputFormat:String)

Extracts up to count frames from the video and saves it in the files based on the output format. Extracts file format should be based on the output extension.

Format details can be found here [https://ffmpeg.org/ffmpeg-formats.html](https://ffmpeg.org/ffmpeg-formats.html)

---

If you have any feedback on this topic, please contact us at <documentation@appvance.ai>

Last updated: October 15, 2026