Home / Repair guides / TS file repair
TS file repair: fix a .ts video that was cut off or won’t play
A .ts file is an MPEG transport stream: video and audio cut into small packets, written one after another. That makes it tough: when a recording stops suddenly, what was written before usually survives. When a .ts video still won’t play, it is either an app that doesn’t support the format, or packets that were cut off or damaged. Here is how to tell, and what can be repaired.
Why a .ts video won’t play
| What you see | Likely cause | What to do |
|---|---|---|
| VLC plays it, your phone or editor refuses it | The app doesn’t support transport streams | Copy it into MP4 (free, see below). No repair needed |
| It stops early, freezes or the converter fails | The recording was cut off mid-packet, or packets were lost or damaged | Repair: the damaged pieces are removed and the rest is copied into MP4 |
| Picture breaks up in places, but plays | Damaged frames recorded inside the stream (for example a weak FPV radio link) | The damaged frames can’t be restored. If they are few, the file can still be copied into MP4: free with the command below, or by upload with a notice saying how many frames are damaged |
| Nothing plays at all, and the file is tiny or is code | Not a video: .ts is also the extension of TypeScript files | Find the real recording |
Free fix for a healthy .ts file
If VLC plays the whole recording, the file is not damaged. To get an MP4 that phones and editors accept, copy it without re-encoding with FFmpeg:
ffmpeg -i recording.ts -c copy recording.mp4
For HEVC (H.265) video that should play on Apple devices, add -tag:v hvc1 before the output name. If you upload a healthy .ts file to FrameRescue, the page tells you “Your video isn’t damaged” and shows a preview, with no checkout.
What FrameRescue repairs in .ts files
FrameRescue recognises a transport stream from its content, not from its name, and repairs .ts recordings with H.264 or HEVC video and AAC audio or no audio when they were:
- cut off by a power loss or a crash, often in the middle of a packet;
- missing packets, or carrying damaged packets, in places;
- missing their beginning, or with the packet sync lost after a break.
The video and audio packets are kept exactly as recorded and copied into a standard MP4. Only the broken pieces are removed: the last, half-written frame, and after damage in the middle, the frames up to the next keyframe. The result is decoded from start to end before it is offered. You see a preview, then pay €5.00 to download name-repaired.mp4.
If the recording itself contains damaged frames (picture break-up), they stay as they are: a copy can’t restore them. When they are few, up to about 5% of the frames, and the audio is intact, the MP4 copy is still offered, with a notice that says how many frames show glitches, so you can judge from the preview before paying.
What can’t be repaired yet
- MPEG-2 video or AC-3 audio, as in most TV recordings.
- Camcorder and Blu-ray transport streams (.m2ts and .mts files).
- Recordings where more than about 5% of the frames are damaged inside the stream, or where the audio is damaged as well.
- Files with more than a small fraction damaged, or shorter than one second.
In these cases the page says that no verified repair was found, and there is nothing to pay.
HDZero FPV goggle recordings
HDZero goggles can record the DVR as TS or MP4. HDZero’s documentation prefers TS: MP4 files “can be corrupted if the goggle loses power before the file is closed”, while TS writes the stream as it goes. The goggle records HEVC (H.265), except H.264 for 90 fps video.
HDZero also warns that switching the goggle off abruptly can corrupt the card’s file system and leave video files that won’t play. Stop the DVR with the Func button before powering off, and copy the card before formatting it.
A TS recording cut off when the battery came loose after a crash is the case FrameRescue repairs: in tests with real HDZero recordings cut at two different points, every complete frame before the cut came back identical. In recordings with picture break-up the damaged frames stay as recorded; if they are few, the MP4 copy comes with a notice that says how many. Other recorders that write H.264 or HEVC .ts files may work the same way, but HDZero is the only one tested with real recordings so far.
Questions about .ts video files
Can I just convert the TS file to MP4?
If the file plays in VLC from start to end, yes: a free tool or the FFmpeg command on this page copies it into MP4 without losing quality. A converter usually stops or produces errors when packets are cut off or damaged; that is when a repair helps.
Why do I get an MP4 back when I upload a .ts file?
The repair copies the video and audio packets unchanged into a standard MP4, which phones, editors and browsers open more reliably than a damaged transport stream. Nothing is re-encoded.
My HDZero DVR recording has glitches in the picture. Can it be repaired?
The glitches themselves can’t be removed: they are damaged frames recorded during the flight. If only a few frames are affected, up to about 5%, and the audio is intact, the recording is copied into MP4 and offered for €5.00 with a notice saying how many frames show glitches, so you can judge from the preview. If it plays to the end in VLC, the free FFmpeg command on this page gives you an MP4 copy too.
Is a .ts file always a video?
No. The same extension is used for TypeScript source code. Before uploading, the page checks the first bytes of a .ts file and stops if it is not a video recording.
Related repair guides
- Video shows 0 seconds
0:00 with a large file size is usually repairable; 0 bytes is not. How to tell, free fixes and repair.
- Video won’t play? Find the cause
Codec, player, incomplete copy or damaged file: quick checks for MP4 and MOV videos that won’t open.
- Repair a corrupted MP4
Phones, action cameras, drones and dashcams: what “corrupted” usually means and what can be recovered.
- Phone died while recording
Does the video save? Where to look on iPhone, Android and cameras, and how to repair the unfinished file.
- Dashcams
Power cuts, loop and event clips, and dashcam files that won’t play.
Repair your .ts video
Upload the original damaged file. A healthy clip from the same device is optional. FrameRescue checks the result before offering it, and you pay €5.00 only if a repaired file is ready.