509 B
509 B
Get-FramesCount.ps1
Gets the total frame count of a video file using ffprobe.
Parameters
-Video(required): Path to input video file
Examples
Get frame count:
.\Get-FramesCount.ps1 -Video video.mp4
Output example:
500
Use in scripts:
$frameCount = .\Get-FramesCount.ps1 -Video video.mp4
Write-Host "Video has $frameCount frames"
Using absolute paths:
.\Get-FramesCount.ps1 -Video "C:\Videos\sample.mp4"