Advertisement
XenoTheStrange

FFMPEG Combine/Merge All (mkv) Videos In a Folder

Aug 11th, 2022 (edited)
1,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. #if you want to add more filetypes or organize do it yourself in the ls | grep area :P
  3. for filename in $(ls| grep .mkv); do
  4.     echo "file $filename" >> concat-list.txt;
  5. done
  6.  
  7. ffmpeg -f concat -safe 0 -i concat-list.txt -max_muxing_queue_size 1024 -c copy merged.mkv
  8.  
  9. rm concat-list.txt
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement