Fix -Frames negative range calculation to extract last N frames correctly (off-by-one error), add validation to reject invalid '-%' and '-0' formats with exit code 1, change '%' alone to extract single last frame instead of range, remove duplicate last frame from PNG sequence concat list, update Get-LastFrame.ps1 and Get-Frame.ps1 to clamp out-of-range frame indices instead of erroring and improve error messages with inline stderr output, add -y flag and -- separator to ffprobe calls, replace deprecated
This commit is contained in:
1 parent
cf41fb0ce5
commit
1227c6e153
13 files changed
+100
-86
No files matched your search
@@ -31,14 +31,14 @@ Refer to [Clone-Video.ps1](Clone-Video.md) for a full description of the encodin
|
||||
Example scene list for a video with two hard cuts at frames 30 and 60:
|
||||
|
||||
```text
|
||||
Index StartFrame EndFrame Frames StartTime EndTime Suffix
|
||||
----- ---------- -------- ------ --------- ------- ------
|
||||
1 0 29 30 0.00 0.97 -Scene-01
|
||||
2 30 59 30 1.00 1.97 -Scene-02
|
||||
3 60 89 30 2.00 2.97 -Scene-03
|
||||
Index StartFrame EndFrame Frames StartTime EndTime TotalTime Suffix
|
||||
----- ---------- -------- ------ --------- ------- --------- ------
|
||||
1 0 29 30 0.00 0.97 1.00 -Scene-01
|
||||
2 30 59 30 1.00 1.97 1.00 -Scene-02
|
||||
3 60 89 30 2.00 2.97 1.00 -Scene-03
|
||||
```
|
||||
|
||||
`StartTime` and `EndTime` are in seconds, computed as frame index divided by frame rate.
|
||||
`StartTime` and `EndTime` are in seconds, computed as frame index divided by frame rate. `EndTime` is the time of the last frame of the scene, so it is one frame before the next scene starts. `TotalTime` is the scene's duration in seconds: `Frames` divided by frame rate.
|
||||
|
||||
## Scene Threshold
|
||||
|
||||
|
||||
Reference in new issue
Block a user