Created
August 3, 2018 04:10
-
-
Save samgooi4189/2933e455e357c38f4b35d8aa733d603a to your computer and use it in GitHub Desktop.
Convert ts to mp4
This file contains 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
# Usage: python3 convert_ts_to_mp4.py | |
import glob | |
import os | |
for filename in glob.iglob('*.ts'): | |
print('\nConverting %s to mp4..........................' % filename) | |
name = filename.split(".ts")[0] | |
os.system("ffmpeg -i %s -acodec copy -vcodec copy %s.mp4 " % (filename,name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment