Home / Repair guides / WebM with no duration
WebM or MKV recording with no duration, or you can’t skip ahead: how to fix it
Websites and web apps that record your webcam or screen in the browser, such as video messages, interviews, online lessons or screen recorders, usually use the browser’s MediaRecorder. It saves the video while you record, piece by piece, as a .webm file (some sites name it .mkv), and it usually doesn’t write the total length or the index that lets a player jump to a point. The footage is usually all there. Here is how to check it, the free fix, and what an upload repairs.
What you see, and why
| What you see | Likely cause | What to do |
|---|---|---|
| No length or 0:00, and the progress bar doesn’t work | The recording has no duration and no index (Cues) | Rewrite it with both: free with FFmpeg (below), or by upload |
| It plays, but skipping ahead is slow or doesn’t work | No index: the player has to read the file from the start to find a point | The same rewrite adds the index |
| It won’t open in some apps, such as QuickTime Player or a video editor | The app doesn’t support WebM or MKV files, or the codec inside them | Make an MP4 copy (below). The file itself may be fine |
| It stops early, or won’t open at all, after the tab, the browser or the computer closed | The recording was cut off while it was being written | Upload it: the cut-off end is removed and the rest is copied into MP4 |
| The file is 0 bytes or a few kilobytes | Nothing was recorded, or the download failed | Nothing to repair: download it again if the website still has it |
Why browser recordings have no duration
MediaRecorder writes a recording like a live stream: small blocks of video and audio, one after another. That is also why a recording that stopped abruptly is usually readable up to the point where it stopped. But a normal video file also has two things that players rely on, and a live recording often leaves them out:
- The duration. Chrome leaves it out when the website saves the recording in pieces, which is the usual way for longer recordings. Since Chrome 140, a recording saved in one piece does include it.
- The index, called Cues. It lets a player jump straight to any point. Chrome’s WebM recordings don’t include it, however they are saved.
The missing duration is tracked in the Chromium bug tracker (issue 40482588), and Addpipe’s analysis of the WebM files Chrome produces describes both points. Players cope in different ways: some read the whole file before they show the length, some show 0:00 or no length at all, and some refuse the file.
Free fix when the recording plays to the end
If the recording plays from start to end in Chrome or in VLC, the file is complete and only the duration and the index are missing. Rewriting it without re-encoding adds both. With the free tool FFmpeg:
ffmpeg -i recording.webm -c copy -cues_to_front 1 fixed.webm
-c copy keeps the video and audio exactly as recorded, and -cues_to_front 1 writes the index at the start of the file, where players look for it. This works when the video is VP8, VP9 or AV1, the usual codecs of a .webm file. If FFmpeg reports that the codec isn’t supported in WebM, the video is H.264 (some websites record H.264): copy the video into an MP4 instead, and convert the audio to AAC, which MP4 players expect:
ffmpeg -i recording.webm -c:v copy -c:a aac fixed.mp4
A VP8 or VP9 video can’t be copied into an MP4 that plays everywhere: to open it in apps that only accept MP4, it has to be converted, for example with HandBrake. Converting re-encodes the video, so keep the original.
What FrameRescue repairs in .webm and .mkv files
FrameRescue recognises a WebM or Matroska file from its content, not from its name, and repairs recordings with one video track in H.264, HEVC, VP8, VP9 or AV1, and their audio tracks, when they:
- have no duration or no index;
- were cut off while recording, for example when the tab, the browser or the computer closed;
- have damaged pieces in places, as long as they are a small part of the file.
The result is a standard MP4 with a duration and an index:
- H.264 or HEVC video is copied exactly as recorded, without re-encoding.
- VP8, VP9 or AV1 video is converted to H.264 at high quality, so the MP4 opens on phones, Macs and editors. Converting takes longer, so it covers recordings up to about 28 minutes at 1080p, or about an hour at 720p.
- Audio: AAC is kept as recorded when it is undamaged; Opus or Vorbis, the usual audio of browser recordings, is converted to AAC. A gap left by damage becomes silence, so sound and picture stay in sync.
Only the broken pieces are removed: the cut-off end, and after damage in the middle, the frames up to the next keyframe. The repair is offered only if at least about 95% of the frames and of the audio remain, and 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 file already has its duration and index and decodes from start to end, it is not damaged: the page tells you “Your video isn’t damaged”, with no checkout. FrameRescue doesn’t convert healthy files; use the FFmpeg commands above or a converter.
What can’t be repaired yet
- Recordings with more than one video track, or with video other than H.264, HEVC, VP8, VP9 or AV1.
- VP8, VP9 or AV1 recordings longer than about 28 minutes at 1080p, or about an hour at 720p.
- Files with more than about 5% of the frames or of the audio damaged, or shorter than one second.
- Encrypted recordings, and files over the 5 GB upload limit.
In these cases the page says that no verified repair was found, and there is nothing to pay.
Recordings from other browsers
So far the repair has been tested mainly with test files built with the same structure as Chrome’s recordings. Edge is built on the same engine as Chrome. Firefox also records .webm files, but its recordings have not been tested yet. Safari records MP4 files instead: for an MP4 with no duration, see video shows 0 seconds.
Questions about browser recordings
Why does my browser recording show no duration?
The browser writes it like a live stream and often leaves out the total length and the index. The video and audio are usually all there: rewriting the file adds the duration and makes skipping work.
Will I lose quality?
Not with H.264 or HEVC video: it is copied unchanged. VP8, VP9 and AV1 video has to be converted to H.264 to go into an MP4 that plays widely. It is converted at high quality, but a conversion is never an exact copy.
Why do I get an MP4 back when I upload a .webm file?
MP4 opens in more apps and on more devices than WebM or MKV, and it stores the duration and the index where every player expects them.
The website still has my recording. Should I download it again?
Yes, try that first. If the website kept a complete copy, a new download may already play. If the file you have was cut off during the download, the missing part exists only on the website.
Related repair guides
- OBS recording corrupted
OBS crashed or lost power mid-recording: why MKV usually survives, the free remux, and repair.
- 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.
- QuickTime: file not compatible
QuickTime Player won’t open the video: unsupported format, old codec or damaged MOV/MP4.
- Repair a truncated MP4
Recording interrupted or copy cut off? How to tell the difference.
Repair your browser recording
Upload the original .webm or .mkv file. FrameRescue checks the result before offering it, and you pay €5.00 only if a repaired file is ready.