how to convert ts to mp4 with ffmpeg

Shell
ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4
Source

Also in Shell: