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