Skip to content

Instantly share code, notes, and snippets.

@ephos
Created August 30, 2018 00:09
Show Gist options
  • Save ephos/25b8ad84d2b5bd45ce254cef42722a44 to your computer and use it in GitHub Desktop.
Save ephos/25b8ad84d2b5bd45ce254cef42722a44 to your computer and use it in GitHub Desktop.
ffmpeg concat
Get-ChildItem C:\Users\ephos\Videos\ -Filter *.mp4 | Sort-Object -Property Name | Select-Object -Property @{N='Custom';E={"file '$($_.FullName)'"}} | Select-Object -ExpandProperty Custom | Out-File -FilePath C:\Users\ephos\Videos\list.txt -Force
C:\Users\ephos\Desktop\ffmpeg-4.0-win64-static\bin\ffmpeg.exe -f concat -safe 0 -i 'list.txt' -c copy output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment