Created
July 6, 2020 22:48
-
-
Save sguzman/0171a11bc928708421750afcc386b990 to your computer and use it in GitHub Desktop.
Concatenate ts files using ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts > all.ts | |
ffmpeg -i all.ts -acodec copy -vcodec copy all.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same, using a pipe:
cat segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts | ffmpeg -i pipe: -acodec copy -vcodec copy all.mp4