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.mp4When to use it
- transport streams
- HLS segments
- fast remuxing
How it works
- Upload the TS file.
- Run the stream copy remux command.
- Download the MP4 output.
Option reference
| Option | What it does |
|---|---|
-c copy | Copies streams without re-encoding. |
-bsf:a aac_adtstoasc | Converts AAC bitstream formatting for MP4 when needed. |
output.mp4 | Writes 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.