You can join videos with no quality loss at all if you copy them into one file instead of re-encoding them. That only works when the clips match: same codec, resolution, frame rate and audio format, which is usually true of clips from one camera recorded with the same settings. FFmpeg's -c copy and the free app LosslessCut both do it. When the clips don't match, re-encoding can't be avoided, but one careful re-encode at a high quality setting loses so little that you won't see it.

What re-encoding does to your video

Every video file you deal with is compressed. An H.264 or HEVC file doesn't store every pixel of every frame. It stores a close approximation and throws away detail your eye is unlikely to miss. That's how a minute of 1080p phone video fits in about 100 MB, when the same minute uncompressed would take more than 5 GB.

Re-encoding means decoding the video back into full frames and compressing it again. The encoder can't tell which details are real and which are leftovers from the first compression, so it approximates the approximation. Each round loses a little more. Fine textures such as grass, hair and water go soft or smeary first, and smooth areas like skies and dark scenes can show steps of colour (banding).

How much you lose depends on the settings. One re-encode at a high quality setting is very hard to spot. A low bitrate, or several rounds (export, edit, export again, upload), adds up.

Copying skips all of that. The compressed data is moved, untouched, into a new file. This is also called stream copy or remuxing. It takes seconds rather than minutes, and every frame is exactly what the camera recorded.

What has to match

Property Example of a mismatch What goes wrong if you copy anyway
Video codec H.264 and HEVC Later clips don't decode: blocks or a frozen picture
Resolution 1920×1080 and 1280×720 Garbled or squashed picture after the join
Frame rate 30 fps and 25 fps Clips play too fast or too slow, or stutter
Bit depth or colour 8-bit and 10-bit HDR Wrong colours or a broken picture
Audio AAC 48 kHz stereo and AAC 44.1 kHz mono Sound at the wrong speed, garbled or missing

Even when all of these match, clips from different devices can carry different encoder settings inside the stream, so a copy join can still glitch at the joins in some players. The safe cases are clips from the same camera, recorded with the same settings:

  • GoPro chapters, which the camera splits from one recording.
  • Dashcam loop files.
  • Camcorder MTS clips from one recording.
  • Screen recordings made with the same settings.

Phone clips are usually fine too, but phones change settings by themselves. An iPhone with Auto FPS turned on (Settings › Camera › Record Video) can drop to 24 fps in low light, so one dim clip may not match the rest.

How to check your clips

The free app MediaInfo (Windows, Mac and Linux) shows everything you need. Open each file and compare, under Video, Format, Width, Height, Frame rate and Bit depth, and under Audio, Format, Sampling rate and Channel(s). If you have FFmpeg installed, two ffprobe commands do the same job: they're in our guide to merging videos with FFmpeg.

Way 1: FFmpeg

Put the file names in a text file called list.txt, one per line, in order:

file 'GX010001.MP4'
file 'GX020001.MP4'
file 'GX030001.MP4'

Then run:

ffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4

The -c copy part is what makes it lossless. A 4 GB set of GoPro chapters joins in about the time it takes your disk to write 4 GB. If you see dozens of "Non-monotonic DTS" warnings, the clips don't match, and the result will glitch.

If the result is HEVC and won't play on an iPhone or Mac, run the command again with -tag:v hvc1 added before output.mp4. Apple's players expect that label on HEVC in an MP4, and FFmpeg doesn't always write it.

Way 2: LosslessCut

LosslessCut is a free, open-source app for Windows, Mac and Linux that puts a simple window on top of FFmpeg's copy features. Drag all your clips onto its window at once, choose Merge/concatenate files (in recent versions it's also in the Tools menu), check the order and confirm. It writes a new file and leaves the originals alone.

LosslessCut is also the easy way to trim without re-encoding. The catch is that a lossless cut can only start on a keyframe, a full picture the encoder stores every so often (typically every second or two), with the frames in between stored as changes from it. So the cut snaps to a nearby keyframe and may not land on the exact frame you picked.

When re-encoding can't be avoided

  • The clips come from different phones or cameras, or have different sizes or frame rates.
  • You want to trim at an exact frame, not the nearest keyframe.
  • You're changing the picture in any way: titles, transitions, filters, cropping, stabilisation, or photos between clips.
  • You need a different format for compatibility, such as H.264 for an older PC that can't play HEVC.

How to re-encode with almost no visible loss

  1. Re-encode once, from the originals. If you need to change something later, go back to the source clips rather than re-editing an exported file.
  2. Choose quality, not a small file. With FFmpeg, use -crf 18 with the H.264 encoder. FFmpeg's H.264 guide describes 17 or 18 as visually lossless or nearly so. Lower numbers mean higher quality and bigger files. In HandBrake, set Constant Quality on the Video tab; a lower RF number means higher quality, and around 18 to 20 is a high setting for 1080p.
  3. Use a slower preset. -preset slow takes longer but gives a smaller file at the same quality.
  4. Keep the size and frame rate. Scaling up adds no detail, and converting frame rates can add judder. Only change them if you have to.
  5. Don't skimp on sound. AAC at 192 kbps is plenty for stereo.

For clips that are the same size and frame rate but won't join cleanly with -c copy, such as clips from two different phones, this re-encodes them in one go:

ffmpeg -f concat -safe 0 -i list.txt -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k output.mp4

If the sizes or frame rates differ, use FFmpeg's concat filter instead, which can scale every clip to one size first. Merging videos with different resolutions explains how to choose that size.

Two more things worth knowing. FFmpeg can encode H.264 truly losslessly with -crf 0, but the file comes out many times bigger than the original, which is rarely worth it. And if the video is going to YouTube or social media, the platform re-encodes every upload anyway. Its compression usually costs more quality than one high-quality re-encode on your side, so upload the best file you have rather than worrying about a single re-encode. Our guide to video bitrate explains how bitrate, quality and file size trade off.

Where ClipMerge fits

ClipMerge always re-encodes, at a high quality setting, into an H.264 MP4 in almost every browser. It isn't a lossless joiner, so for GoPro chapters or dashcam files that match perfectly, FFmpeg or LosslessCut keeps the exact original quality. It's useful when the clips don't match and a re-encode is unavoidable anyway: footage from different phones, clips of different shapes, or photos between clips. The merged video is as tall as the shortest clip or photo, so leave out a small, low-resolution clip if you want the sharpest result.