Skip to content

Instantly share code, notes, and snippets.

View Kianda's full-sized avatar

Kianda Kianda

  • Veneto, Italy
  • 10:03 (UTC +02:00)
View GitHub Profile
@Kianda
Kianda / season_renamer.ps1
Last active May 1, 2025 12:38
PowerShell script to rename files by adding SxxExx to the beginning
# 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) {
@Kianda
Kianda / split_video.ps1
Last active May 1, 2025 12:33
Windows Powershell FFMPEG ps1 script to split video into chunks
# 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