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