-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the batch exporting example powershell script
- Loading branch information
1 parent
a6b8e93
commit 9d81cb4
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
#!/usr/bin/env pwsh | ||
# (c) MIT License, Tremeschin | ||
# | ||
# This PowerShell script runs depthflow for all images on a "input" folder | ||
# in the current directory, and batch renders videos to "output" | ||
|
||
if (-not (Test-Path "output")) { | ||
New-Item -ItemType Directory -Path "output" | ||
} | ||
|
||
# This PowerShell script runs depthflow for all images on a "inputs" folder | ||
# in the current directory, and batch renders videos to "outputs" | ||
# | ||
# Note: Save it as "run.ps1", right click and "Run with PowerShell" to execute | ||
# | ||
# Note: Grab a release and rename it to "depthflow.exe" on the same folder | ||
# | ||
Get-ChildItem -Path "inputs" | ForEach-Object { | ||
$filename = $_.BaseName | ||
|
||
# Change or add variations and parameters here! | ||
depthflow.exe input -i $_.FullName ` | ||
main -o "./output/$filename.mp4" | ||
.\depthflow.exe input -i $_.FullName ` | ||
orbital ` | ||
main -o "./outputs/$filename-orbital.mp4" | ||
|
||
# depthflow.exe input -i $_.FullName ` | ||
# dolly --intensity 0.5 ` | ||
# main -o "./outputs/$filename-orbital.mp4" | ||
.\depthflow.exe input -i $_.FullName ` | ||
horizontal --intensity 0.6 ` | ||
main -o "./outputs/$filename-horizontal.mp4" --loop 3 | ||
} | ||
|
||
Write-Host "Press any key to continue..." | ||
Write-Host "Press any key to continue..." |