Skip to content

Instantly share code, notes, and snippets.

@xxiz
Created January 20, 2023 02:54
Show Gist options
  • Save xxiz/30fec2647c3a4b345a41db38f3b001fe to your computer and use it in GitHub Desktop.
Save xxiz/30fec2647c3a4b345a41db38f3b001fe to your computer and use it in GitHub Desktop.
merge srt files with same name
Get-ChildItem -Path "path\to\directory" -Filter "S01*.mp4" | %{ ffmpeg -i $_.FullName -i "$($_.BaseName).srt" -c copy -c:s mov_text "_$($_.BaseName).mp4"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment