Skip to content

Instantly share code, notes, and snippets.

# 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
)
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAmmr4hisOlWGahtH0z/edAyYje5TvFTRQfdVKXwxRPCQqJGjb7pP61bU6TM5MkhG0zs83RaiLerHy61jRqyCj9wonFAL54rPPjtNvG4dtaZ+SVaaEjYXNsIQccqMe6xBamyEA4dHNYY6+4h/U33h+ES7OJM5C6fUjZ04LPKqBOfHgQ/0tH0VCotIfiE15GMJkar7graFwCkUMSq8GTgQeNHnm51TOHHEgTLzG45QPFULrUj3+NbVMIIxZ0PpMTYWIWNphnhzFxd+SsvHeVxFRV6HY7EPgjyHAdjjNYjObssFF2OzOU1MYs2Aa2Qy/jCZ5C1xoCJzpK+tCTGorJcJHNw== OmarMSI