Browser FFmpeg recipe

Convert TS to MP4 Online with FFmpeg

Remux compatible TS streams into an MP4 container.

Command

Run this FFmpeg command

ffmpeg -i input.ts -c copy -bsf:a aac_adtstoasc output.mp4

When to use it

  • transport streams
  • HLS segments
  • fast remuxing

How it works

  1. Upload the TS file.
  2. Run the stream copy remux command.
  3. Download the MP4 output.

Option reference

OptionWhat it does
-c copyCopies streams without re-encoding.
-bsf:a aac_adtstoascConverts AAC bitstream formatting for MP4 when needed.
output.mp4Writes an MP4 container.

Practical notes

  • This works when the streams are compatible with MP4.
  • If remuxing fails, use a full H.264 and AAC transcode.

FAQ

Is TS to MP4 fast?

Usually yes when streams can be copied.

Why use the AAC bitstream filter?

Some TS AAC streams need formatting changes before they can live inside MP4.