video_editing:davinci_resolve_in_the_cloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
video_editing:davinci_resolve_in_the_cloud [2021/02/27 13:10] – [Connect To VM] davidvideo_editing:davinci_resolve_in_the_cloud [2021/03/21 14:34] david
Line 173: Line 173:
   - Format/create hard disk   - Format/create hard disk
     - Note: If you "stop" the VM to reconnect again, the disk D will be gone     - Note: If you "stop" the VM to reconnect again, the disk D will be gone
-  - Enable "Windows Audio" service+  - Enable "Windows Audio" service (set to start on startup)
  
 Software installation: Software installation:
Line 241: Line 241:
     * https://workspot.zendesk.com/hc/en-us/articles/214248563-Configuring-USB-Redirection-with-RemoteFX-in-Workspot     * https://workspot.zendesk.com/hc/en-us/articles/214248563-Configuring-USB-Redirection-with-RemoteFX-in-Workspot
  
 +====== AWS DaVinci Resolve Workflow Reconnect ======
  
 +===== Upload new files =====
 +
 +Use a bat script to opy the files from local machine to s3.
 +
 +  * https://superuser.com/questions/444726/windows-how-to-add-batch-script-action-to-right-click-menu
 +
 +<file bash push_projects_to_aws.bat>
 +@ECHO OFF
 +REM ===========================================================================
 +REM Set common variables
 +REM project_list will be whatever directories you wish to copy from the s3 projects directory to local
 +REM ===========================================================================
 +SET aws_s3_bucket=drh-video1
 +SET drive_location="C:\Users\david\Pictures\Adventures In Cloud Computing"
 +
 +SET project_list=dir_name_1 dir_name_2
 +
 +REM remove quotes
 +SET drive_location=%drive_location:"=%
 + 
 +REM ===========================================================================
 +REM Set varialbes used in script
 +REM ===========================================================================
 + 
 +REM SET local_project_location=%drive_location%\projects
 +SET local_project_location=%drive_location%
 +SET s3_project_location=s3://%aws_s3_bucket%/projects
 + 
 +echo Local project location: %local_project_location%
 +echo    S3 project location: %s3_project_location%
 +
 +REM ===========================================================================
 +REM Push projects up
 +REM ===========================================================================
 + 
 +FOR %%i in (%project_list%) do (
 +echo Project: %%i
 +aws s3 sync "%local_project_location%/%%i" %s3_project_location%/%%i
 +)
 + 
 +pause
 +</file>
 +
 +Remember before connecting:
 +  - Check new IP/DNS Name
 +
 +===== Create D drive =====
 +The second disk isn't kept, but can be recreated using a script
 +
 +After connecting:
 +  - Format/create hard disk: [[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart-scripts-and-examples]]
 +
 +<file bash script_diskpart.txt>
 +select disk 1
 +clean
 +create partition primary
 +format quick
 +assign letter=D
 +</file>
 +
 +<file bash d_drive_format.bat>
 +diskpart /s script_diskpart.txt
 +pause
 +</file>
 +
 +===== Copy files from projects in s3 =====
 +
 +<file bash copy_to_d.bat>
 +@ECHO OFF
 +REM ===========================================================================
 +REM Set common variables
 +REM project_list will be whatever directories you wish to copy from the s3 projects directory to local
 +REM ===========================================================================
 +SET aws_s3_bucket=drh-video1
 +SET drive_location=D:\projects
 +REM SET drive_location=C:\Users\david\projects
 + 
 +SET project_list=OVFM logo
 + 
 +REM ===========================================================================
 +REM Set varialbes used in script
 +REM ===========================================================================
 + 
 +SET local_project_location=%drive_location%
 +SET s3_project_location=s3://%aws_s3_bucket%/projects
 + 
 +echo Local project location: %local_project_location%
 +echo    S3 project location: %s3_project_location%
 +
 +REM ===========================================================================
 +REM List available projects
 +REM ===========================================================================
 +echo ===========================================================================
 +echo Available Projects
 +echo ===========================================================================
 +aws s3 ls %s3_project_location%/
 +
 +REM ===========================================================================
 +REM Create some local directories
 +REM ===========================================================================
 + 
 +mkdir %drive_location%
 +mkdir D:\MEDIA
 + 
 +REM ===========================================================================
 +REM Pull projects down
 +REM ===========================================================================
 +echo ===========================================================================
 +echo Downloading Configured Projects
 +echo ===========================================================================
 + 
 +FOR %%i in (%project_list%) do (
 +aws s3 cp %s3_project_location%/%%i %local_project_location%\%%i --recursive
 +)
 + 
 +pause
 +</file>
 +
 +===== Copy files from projects in D to s3 =====
 +<file bash sync_to_s3.bat>
 +@ECHO OFF
 +SETLOCAL ENABLEDELAYEDEXPANSION
 +REM ===========================================================================
 +REM Set common variables
 +REM ===========================================================================
 +SET aws_s3_bucket=drh-video1
 +SET drive_location=D:\projects
 + 
 +REM ===========================================================================
 +REM Set varialbes used in script
 +REM ===========================================================================
 + 
 +SET local_project_location=%drive_location%
 +SET s3_project_location=s3://%aws_s3_bucket%/projects
 + 
 +echo Local project location: %local_project_location%
 +echo    S3 project location: %s3_project_location%
 + 
 +REM ===========================================================================
 +REM Loop directories in projects directory and sync to s3
 +REM ===========================================================================
 +for /d %%I in (%local_project_location%\*) do (
 +SET FullDirName=%%I
 +SET CurrDirName=%%~nxI
 +echo Project Name: !CurrDirName!
 +echo Project Path: !FullDirName!
 +aws s3 sync !FullDirName! %s3_project_location%/!CurrDirName!
 +)
 + 
 +pause
 +</file>
  • video_editing/davinci_resolve_in_the_cloud.txt
  • Last modified: 2021/11/22 09:55
  • by david