ix Get-Frame.ps1 parameter forwarding to use preference variable splatting instead of manual array building, preventing positional binding issues, update Get-FramesRange.ps1 to add -y flag for automatic overwrite of existing PNG files, fix Create-ShortClip.ps1 to skip clearing default Frames directory when -Render is used (frames are input not output) and add null checks before Test-Path in cleanup logic, and update documentation in Create-FullSubtitle.ps1 and Create-ShortClip.ps1 to clarify existing

This commit is contained in:
guru committed 2026-11-01 16:58:24 -05:00
1 parent 373efac4af
commit c79451b373
4 files changed
+12 -9

No files matched your search

+2
View File
@@ -15,6 +15,7 @@
- all: Extract all frames (same as "0-%")
.DESCRIPTION
Extracts specific range of frames of a video file to PNG images using ffmpeg.
An existing PNG file with the same name is replaced.
Supports -WhatIf and -Confirm for safe execution.
#>
[CmdletBinding(SupportsShouldProcess)]
@@ -135,6 +136,7 @@ for ($frameIndex = $startFrame; $frameIndex -le $endFrame; $frameIndex++) {
$videoFilter = 'select=eq(n\,{0})' -f $frameIndex
$ffmpegArgs = @(
'-y'
'-i', $VideoPath
'-vf', $videoFilter
'-vsync', 'vfr'