Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
video_editing:davinci_resolve_in_the_cloud [2021/03/20 10:54] – david | video_editing:davinci_resolve_in_the_cloud [2021/11/22 09:55] (current) – david | ||
---|---|---|---|
Line 2: | Line 2: | ||
I'm trying to keep up with my notes on [[: | I'm trying to keep up with my notes on [[: | ||
+ | |||
+ | ===== Summary ===== | ||
+ | |||
+ | My questions were: | ||
+ | |||
+ | > Can I use cloud computing to run DaVinci Resolve? | ||
+ | > At what point does it become cheaper to buy a new laptop for " | ||
+ | |||
+ | This came from the fact that I had an older (but not that old) laptop which could no-longer keep up with running DaVinci resolve (at least reasonably). I didn't need to upgrade it for any productivity outside of running DaVinci Resolve. | ||
+ | |||
+ | Laptop prices showed that a laptop with an Nvidia card that would run DaVinci Resolve confidently for a few years would cost about £3,000 If I went with Apple, then the new M1 chip brings the costs down. The Macbook Air which comes in at just over £1,000 (Or just under £1,500 for a more powerful Macbook Pro with the M1 chip). | ||
+ | |||
+ | After doing some numbers (just for DaVinci Resolve), I've calculated (at least for UK prices) that a £1,000 laptop used 10 days a year over a 5 year lifetime works out at £20 a day. Worst case scenario is a £3,000 laptop used for 5 days a year over a 3 year lifetime, which averages out at £200 a day. That's a lot of variance! | ||
+ | |||
+ | > If I can find a way of working which comes to less than £20 ($27.36) a day then I'm on par with my cheapest solution for my predicted usage. | ||
+ | |||
+ | This can be achieved by using one of: | ||
+ | * '' | ||
+ | * '' | ||
===== Note ===== | ===== Note ===== | ||
This looks at using powerful windows virtual machines in the cloud, they will run both versions of DaVinci Resolve (Free and Studio). However studio will be able to use more of the fancy GPU features. Warning from personal experience, getting a dongle to work remotely is hard/ | This looks at using powerful windows virtual machines in the cloud, they will run both versions of DaVinci Resolve (Free and Studio). However studio will be able to use more of the fancy GPU features. Warning from personal experience, getting a dongle to work remotely is hard/ | ||
+ | |||
+ | This mostly looks at two EC2 instances: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== Scenario ===== | ===== Scenario ===== | ||
Line 58: | Line 81: | ||
To compare, I looked at the EC2 prices based on the Paris region: | To compare, I looked at the EC2 prices based on the Paris region: | ||
+ | |||
+ | [[https:// | ||
^ Model| | ^ Model| | ||
^ Cores| | ^ Cores| | ||
Line 67: | Line 92: | ||
Using the 16 core machine for 12 hours (marathon day), I'm keeping (just) below the $27.36/£20 a day price I'm aiming for, although tax and data storage might push it over. So, instead to remain cost effective I'm better either using it for a shorter period of time or dropping down to a smaller machine. Fortunately using cloud resources makes this scaling up and down easy. | Using the 16 core machine for 12 hours (marathon day), I'm keeping (just) below the $27.36/£20 a day price I'm aiming for, although tax and data storage might push it over. So, instead to remain cost effective I'm better either using it for a shorter period of time or dropping down to a smaller machine. Fortunately using cloud resources makes this scaling up and down easy. | ||
+ | |||
+ | [[https:// | ||
+ | ^ Model| | ||
+ | ^ Cores| | ||
+ | ^ Memory (GB)| N/A | N/A | ||
+ | ^ Hour Cost (USD)| | ||
+ | ^ 8 Hour Day (USD)| | ||
+ | ^ 10 Hour Day (USD)| | ||
+ | ^ 12 Hour Day (USD)| | ||
+ | |||
+ | Using the 16 core machine for 12 hours (marathon day), I'm keeping well below the $27.36/£20 a day price I'm aiming for. I could go up to the more powerful instance for shorter bursts of productivity, | ||
When you stop (turn off) the virtual machine, you stop paying the prices above. Instead you only pay for the storage: | When you stop (turn off) the virtual machine, you stop paying the prices above. Instead you only pay for the storage: | ||
Line 243: | Line 279: | ||
====== AWS DaVinci Resolve Workflow Reconnect ====== | ====== AWS DaVinci Resolve Workflow Reconnect ====== | ||
- | Upload new files: | + | ===== Upload new files ===== |
+ | |||
+ | Use a bat script to opy the files from local machine to s3. | ||
* https:// | * https:// | ||
Line 255: | Line 294: | ||
SET drive_location=" | SET drive_location=" | ||
- | SET project_list=yoga logo | + | SET project_list=dir_name_1 dir_name_2 |
REM remove quotes | REM remove quotes | ||
Line 270: | Line 309: | ||
echo Local project location: %local_project_location% | echo Local project location: %local_project_location% | ||
echo S3 project location: %s3_project_location% | echo S3 project location: %s3_project_location% | ||
- | |||
REM =========================================================================== | REM =========================================================================== | ||
Line 284: | Line 322: | ||
</ | </ | ||
+ | Remember before connecting: | ||
- Check new IP/DNS Name | - Check new IP/DNS Name | ||
- | - Format/ | ||
+ | ===== Create D drive ===== | ||
+ | The second disk isn't kept, but can be recreated using a script | ||
+ | After connecting: | ||
+ | - Format/ | ||
- | <code> | + | <file bash script_diskpart.txt> |
- | aws s3 ls s3:// | + | select disk 1 |
- | D: | + | clean |
- | aws s3 cp s3://drh-video1 D:\ --recursive | + | create partition primary |
+ | format quick | ||
+ | assign letter=D | ||
+ | </file> | ||
- | mkdir D:\projects | + | <file bash d_drive_format.bat> |
- | mkdir D:\MEDIA | + | diskpart /s script_diskpart.txt |
+ | pause | ||
+ | </ | ||
- | aws s3 cp s3:// | + | ===== Copy files from projects |
- | + | ||
- | aws s3 sync s3:// | + | |
- | </ | + | |
<file bash copy_to_d.bat> | <file bash copy_to_d.bat> | ||
Line 311: | Line 355: | ||
SET drive_location=D: | SET drive_location=D: | ||
REM SET drive_location=C: | REM SET drive_location=C: | ||
- | + | ||
- | SET project_list=LariceaBook | + | SET project_list=OVFM logo |
+ | |||
REM =========================================================================== | REM =========================================================================== | ||
REM Set varialbes used in script | REM Set varialbes used in script | ||
REM =========================================================================== | REM =========================================================================== | ||
+ | |||
SET local_project_location=%drive_location% | SET local_project_location=%drive_location% | ||
SET s3_project_location=s3:// | SET s3_project_location=s3:// | ||
+ | |||
echo Local project location: %local_project_location% | echo Local project location: %local_project_location% | ||
echo S3 project location: %s3_project_location% | echo S3 project location: %s3_project_location% | ||
REM =========================================================================== | REM =========================================================================== | ||
- | REM Create some local directories | + | REM List available projects |
REM =========================================================================== | REM =========================================================================== | ||
+ | echo =========================================================================== | ||
+ | echo Available Projects | ||
+ | echo =========================================================================== | ||
+ | aws s3 ls %s3_project_location%/ | ||
+ | REM =========================================================================== | ||
+ | REM Create some local directories | ||
+ | REM =========================================================================== | ||
+ | |||
mkdir %drive_location% | mkdir %drive_location% | ||
mkdir D:\MEDIA | mkdir D:\MEDIA | ||
+ | |||
REM =========================================================================== | REM =========================================================================== | ||
REM Pull projects down | REM Pull projects down | ||
REM =========================================================================== | REM =========================================================================== | ||
+ | echo =========================================================================== | ||
+ | echo Downloading Configured Projects | ||
+ | echo =========================================================================== | ||
+ | |||
FOR %%i in (%project_list%) do ( | FOR %%i in (%project_list%) do ( | ||
- | echo aws s3 cp %s3_project_location%/ | + | aws s3 cp %s3_project_location%/ |
) | ) | ||
+ | |||
pause | pause | ||
</ | </ | ||
- | Backup | + | ===== Copy files from projects |
- | < | + | |
- | D: | + | |
- | aws s3 cp DATA s3:// | + | |
- | aws s3 cp VIDEO s3:// | + | |
- | + | ||
- | aws s3 cp D:\projects\LariceaBook s3:// | + | |
- | + | ||
- | aws s3 sync D: | + | |
- | </ | + | |
- | + | ||
- | For recursive: https:// | + | |
<file bash sync_to_s3.bat> | <file bash sync_to_s3.bat> | ||
@ECHO OFF | @ECHO OFF | ||
Line 363: | Line 406: | ||
SET aws_s3_bucket=drh-video1 | SET aws_s3_bucket=drh-video1 | ||
SET drive_location=D: | SET drive_location=D: | ||
+ | |||
REM =========================================================================== | REM =========================================================================== | ||
REM Set varialbes used in script | 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:// | SET s3_project_location=s3:// | ||
+ | |||
echo Local project location: %local_project_location% | echo Local project location: %local_project_location% | ||
echo S3 project location: %s3_project_location% | echo S3 project location: %s3_project_location% | ||
+ | |||
REM =========================================================================== | REM =========================================================================== | ||
REM Loop directories in projects directory and sync to s3 | REM Loop directories in projects directory and sync to s3 | ||
Line 384: | Line 427: | ||
aws s3 sync !FullDirName! %s3_project_location%/ | aws s3 sync !FullDirName! %s3_project_location%/ | ||
) | ) | ||
+ | |||
pause | pause | ||
</ | </ |