Skip to content

Instantly share code, notes, and snippets.

"""
This script is used to find visual differences between two video files.
Requires the following packages:
pip install timecode
pip install openCV-python
pip install numpy
"""
@knejmann
knejmann / Markers from clipboard to formatted text.ps1
Last active May 28, 2025 08:25
Media Composer related PowerShell scripts
<# Read clipboard with copied Media Composer Markers and output them in a formatted way.
Usage:
1. In the Media Composer Markers window, select the markers you want to copy.
2. From the menu, choose "Edit" > "Copy Markers".
3. Run this script. If saved as a .ps1 file, right-click the file and select "Run with PowerShell".
4. Choose the desired action from the options presented in the console.
You can customize the output by changing the properties in the `Format-Table` or `Format-List` commands.
# Powershell function to merge/concatenate a series of videofiles
# Requires ffmpeg to be in PATH
# Usage:
# Merge-VideoFiles -CommonFilename Video12 -CommonExt .ts
# This will join files like Video12_1.ts, Video12_2.ts, Video12_3.ts to one file: Video12.mp4
function Merge-VideoFiles {
param (
[string]$CommonFilename,
[string]$CommonExt
$log = Get-ChildItem -File -Path C:\ProgramData\FilmLight | Sort-Object lastwritetime | Select-Object -last 1
$host.ui.RawUI.WindowTitle = "tail: " + $log.FullName + " created: " + $log.CreationTime
Write-Host "Logfil path " $log.fullName
Write-Host "Logfil creation" $log.CreationTime
$log | Get-Content -wait -tail 100