Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Last active September 22, 2018 16:46
Show Gist options
  • Save jfeilbach/f115218bda2e344427bd5da98fac015d to your computer and use it in GitHub Desktop.
Save jfeilbach/f115218bda2e344427bd5da98fac015d to your computer and use it in GitHub Desktop.
mux multiple .ts files with ffmpeg
#!/bin/bash
START='0'
END='137'
for i in `seq $START $END`
do echo file "'${i}.ts'" >> input.txt
done
# ffmpeg concat
/usr/local/bin/ffmpeg -f concat -i input.file -c copy output.ts
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment