ffmpeg convert mp4 to to .ts commandline code example Example: how to convert ts to mp4 with ffmpeg ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4