This file contains hidden or 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
# This PowerShell script performs a 2-pass encode on a video using ffmpeg. | |
# The video is trimmed to the given start and end times, and the output file size is targeted to 8 MiB. | |
param( | |
[string]$InputFile, | |
[string]$StartTime, | |
[string]$EndTime, | |
[string]$OutputFile | |
) |