Created
June 3, 2014 05:25
-
-
Save CameronGilroy/c4b15fc77ace10bc37cd to your computer and use it in GitHub Desktop.
Convert ts files from video stream to one mp4 video file
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
ls *.ts | awk 'BEGIN {print "ffconcat version 1.0"}{print "file " $1}' > segments.ffconcat | |
ffmpeg -i segments.ffconcat -bsf:a aac_adtstoasc -acodec copy -vcodec copy final.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment