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
# Usage: .\split_video.ps1 -inputFile "input.mp4" -numSplits 4 | |
param ( | |
[string]$inputFile, # Input MP4 file | |
[int]$numSplits # Number of parts | |
) | |
# Check if ffprobe and ffmpeg are installed | |
$ffprobe = Get-Command ffprobe -ErrorAction SilentlyContinue | |
$ffmpeg = Get-Command ffmpeg -ErrorAction SilentlyContinue |
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
# Create a shortcut to this file with 'Target' | |
# C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File "X:\Yourpath\season_renamer.ps1" | |
param( | |
[int]$seasonNumber = 0, # Default to 0 to indicate that no parameter was passed | |
[int]$episodeNumber = 0 # Default to 0 to indicate that no parameter was passed | |
) | |
# Prompt the user if no parameters are passed | |
if ($seasonNumber -eq 0) { |