Skip to content

Instantly share code, notes, and snippets.

@0187773933
Created February 14, 2023 00:09
Show Gist options
  • Save 0187773933/f3b0523300465374f27576bc1245bcd6 to your computer and use it in GitHub Desktop.
Save 0187773933/f3b0523300465374f27576bc1245bcd6 to your computer and use it in GitHub Desktop.
MakeMKV FFmpeg Combine DVD Tracks to MP4
Get-ChildItem -Path . -Filter *.mkv | Sort-Object { [int]($_.Name -replace '.*_t(\d{2}).mkv', '$1') } | foreach { $_.FullName } | foreach { "file '$_'" } | Out-File -Encoding ascii -FilePath output.txt; Get-Content .\output.txt; ffmpeg -y -safe 0 -f concat -i output.txt -c copy combined.mp4; Remove-Item .\output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment