Skip to content

Instantly share code, notes, and snippets.

@xCatG
xCatG / ff
Created January 26, 2024 23:51
powerscript to use ffmpeg to stream all mp4 files from a dir
# PowerShell script for streaming MP4 files to YouTube using FFmpeg
# Define the directory containing your MP4 files
$VideoDir = Get-Location
# Your YouTube Stream Key
$StreamKey = "your youtube stream key"
# Infinite loop to keep the script running
while ($true) {