{"course":{"slug":"video-editing","title":"Editing Video","url":"https://addaly.com/learn/video-editing","level":"beginner","track":"create"},"lesson":{"slug":"what-a-camera-file-is","title":"What the camera actually wrote to the card","url":"https://addaly.com/learn/video-editing/what-a-camera-file-is","position":2,"of":77,"minutes":10,"answer":"A camera file carries four fixed decisions (whole frames or differences, how much colour was kept, how many brightness levels.","keyIdea":"A camera file carries four fixed decisions (whole frames or differences, how much colour was kept, how many brightness levels, and how many bits per second) and each one sets a hard limit on what the edit can do later."},"body":{"format":"markdown","text":"## Four decisions the camera made without asking you\n\nA video file is not a stack of photographs. It is the result of four separate compromises, made at the moment of recording, that you inherit for the rest of the project. You cannot undo any of them in the edit. Knowing what they were tells you, before you start, which shots will hold up and which will fall apart the moment you touch them.\n\n## One: which frames are whole\n\n**Intra-frame** codecs store every frame complete. ProRes, DNxHR and most camera RAW work this way. Files are large and scrubbing is instant, because frame 4,312 is there.\n\n**Long-GOP** codecs, the H.264 and H.265 that phones and consumer cameras write, store an occasional complete frame and describe everything in between as differences. GOP means group of pictures; a typical consumer camera uses a keyframe every 30 to 60 frames, so one to two seconds apart.\n\nThe consequence bites in three places. Playback is heavy, which the proxy lesson solved. Cutting is imprecise in some tools, because a cut in the middle of a GOP has to be reconstructed. And each re-encode compounds: every generation of H.264 throws away detail the previous one kept.\n\n## Two: how much colour was kept\n\nCameras record more brightness detail than colour detail, because the eye notices luminance far more than chroma. The notation is three numbers.\n\n- **4:4:4**: full colour for every pixel. Rare outside cinema cameras and graphics.\n- **4:2:2**: colour sampled at half horizontal resolution. Most professional cameras, and many mirrorless cameras when recording externally.\n- **4:2:0**: colour sampled at half horizontal *and* half vertical resolution. Every phone, every consumer camera, every streaming delivery file.\n\nIn 4:2:0 one colour sample covers a 2×2 block of pixels. For watching, this is invisible. For working, it is not. A green-screen key builds its matte from colour, so at 4:2:0 the matte has a quarter of the resolution of the picture and every edge comes back blocky. Fine detail against a strongly coloured background (hair, a chain, text) smears. Heavy saturation changes in a grade expose the blocks.\n\nThis is the single most common reason a key that looked achievable on set is impossible in the edit.\n\n## Three: how many steps there are between black and white\n\n**8-bit** gives 256 levels per channel. **10-bit** gives 1,024. That sounds like a small difference and it is not, because the levels are not spread evenly across what you see: they are spread across what the camera captured.\n\nIf the camera recorded a normal, contrasty picture, 8-bit is usually enough. If it recorded a **log** profile (flat and grey, holding a wide brightness range so you can redistribute it later) then you are stretching 256 levels across a much bigger range. Add the contrast back in the grade and the gaps between levels become visible as **banding**: stepped rings in a sky, a wall, a gradient behind a face.\n\nThe practical rule: log is a 10-bit feature. On an 8-bit phone or entry-level camera, a well-exposed standard profile beats log almost every time.\n\n## Four: how many bits per second\n\nThe capture bitrate is the budget the encoder had. A phone at 1080p might write 20 Mbps; the same phone at 4K writes 50 to 100; a mirrorless camera at 4:2:2 10-bit might write 400. Content matters more than resolution here: rain, foliage, confetti and fast camera moves exhaust a low bitrate long before a talking head does.\n\nThe tell for a starved bitrate is **macroblocking**: 16×16 squares appearing in the darkest and busiest parts of the frame. No amount of grading recovers it, and sharpening makes it worse.\n\n> Figure: Four decisions the camera made before you saw the file. Layers, top to bottom: Whole frames, or differences (Intra-frame scrubs instantly and is huge; long-GOP is small and expensive to decode); How much colour was kept (4:2:0 gives one colour sample per 2 by 2 block, which is what breaks a key); How many levels between black and white (256 per channel at 8-bit, 1,024 at 10-bit. Log stretches them thin); How many bits per second (About 20 Mbps on a phone at 1080p, 400 on a camera recording 4:2:2 10-bit). None of the four can be undone in the edit. One ffprobe command answers all four, once per camera rather than once per clip.\n\n## Read the file rather than guessing\n\nFFmpeg is free, installs on every platform, and answers all four questions in one command:\n\n```bash\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_name,pix_fmt,bit_rate,r_frame_rate,width,height \\\n  -of default=noprint_wrappers=1 clip.mp4\n```\n\nA typical phone answers `codec_name=hevc`, `pix_fmt=yuv420p`, `bit_rate=48000000`, `r_frame_rate=30/1`. The `p` in `yuv420p` means planar: brightness and the two colour channels are stored as separate planes. `yuv422p10le` would mean planar 4:2:2, 10-bit, little-endian. Whether a clip is progressive or interlaced is a separate property; add `field_order` to the `-show_entries` list to see it. MediaInfo is a free graphical alternative if you would rather click.\n\nDo this once per camera, not once per clip. The answer is a property of how the camera was set, and it will be the same for the whole shoot.\n\n## What this changes about your decisions\n\n- Planning a key: check chroma subsampling **before** the shoot, not after.\n- Planning a heavy grade: check bit depth, and turn log off if the camera is 8-bit.\n- Planning archival: your master should be intra-frame, even though the camera original was not.\n- Handed someone else's footage: run `ffprobe` first. It takes ten seconds and it tells you what the day is going to be like.\n\n## Today\n\nRun the command above on the newest clip on your phone and the oldest clip you still have. Write down the four answers for each. The difference between them is usually the difference between two afternoons of work."},"check":{"question":"An editor is handed 4K phone footage of a presenter in front of a green sheet. The lighting was even and the sheet is clean, but every attempt at a key produces blocky, stepped edges around the hair. What is the mechanism?","options":[{"text":"The bitrate is too low, so the encoder has discarded the fine detail around the hair; re-encoding the clip at a higher bitrate before keying will restore the edge.","correct":false,"tempting":"Right family of problem, impossible fix: re-encoding cannot add back detail that was never written, and a higher target bitrate on a lossy source only preserves the existing artefacts more faithfully."},{"text":"Phone footage is 4:2:0, so the colour information the keyer builds its matte from exists at half the horizontal and half the vertical resolution of the picture.","correct":true},{"text":"The clip is long-GOP, so frames between keyframes are reconstructed approximations and the keyer sees a different edge on every frame.","correct":false,"tempting":"Names a real property that causes playback and re-encode problems, but the blockiness of a matte follows from chroma resolution, not from inter-frame prediction."},{"text":"The green sheet is the wrong shade for the keyer's default, and sampling a different point on it will fix the edges.","correct":false,"tempting":"Treats a resolution limit as a sampling choice; picking a better key colour improves separation but cannot raise the resolution of the colour channels."}]},"prev":{"slug":"timeline-and-proxies","title":"Your laptop is probably not too slow","url":"https://addaly.com/learn/video-editing/timeline-and-proxies"},"next":{"slug":"frame-rate-and-shutter","title":"Frame rate, shutter, and the flicker in the light","url":"https://addaly.com/learn/video-editing/frame-rate-and-shutter"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'What the camera actually wrote to the card', in Editing Video. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/video-editing/what-a-camera-file-is (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"What the camera actually wrote to the card","courseTitle":"Editing Video","module":{"index":1,"slug":"ingest-and-setup","title":"Getting the footage into a state you can work with"},"answer":null,"keyIdea":"A camera file carries four fixed decisions (whole frames or differences, how much colour was kept, how many brightness levels, and how many bits per second) and each one sets a hard limit on what the edit can do later.","hero":{"kind":"figure","figure":{"t":"figure","label":"Figure","figure":{"caption":"None of the four can be undone in the edit. One ffprobe command answers all four, once per camera rather than once per clip.","layers":[{"label":"Whole frames, or differences","detail":"Intra-frame scrubs instantly and is huge; long-GOP is small and expensive to decode"},{"label":"How much colour was kept","detail":"4:2:0 gives one colour sample per 2 by 2 block, which is what breaks a key"},{"label":"How many levels between black and white","detail":"256 per channel at 8-bit, 1,024 at 10-bit. Log stretches them thin"},{"label":"How many bits per second","detail":"About 20 Mbps on a phone at 1080p, 400 on a camera recording 4:2:2 10-bit"}],"title":"Four decisions the camera made before you saw the file","type":"stack"},"alt":"Figure: Four decisions the camera made before you saw the file. Layers, top to bottom: Whole frames, or differences (Intra-frame scrubs instantly and is huge; long-GOP is small and expensive to decode); How much colour was kept (4:2:0 gives one colour sample per 2 by 2 block, which is what breaks a key); How many levels between black and white (256 per channel at 8-bit, 1,024 at 10-bit. Log stretches them thin); How many bits per second (About 20 Mbps on a phone at 1080p, 400 on a camera recording 4:2:2 10-bit). None of the four can be undone in the edit. One ffprobe command answers all four, once per camera rather than once per clip."}},"blocks":[{"t":"h2","id":"four-decisions-the-camera-made-without-asking-you","runs":[{"text":"Four decisions the camera made without asking you"}]},{"t":"p","runs":[{"text":"A video file is not a stack of photographs. It is the result of four separate compromises, made at the moment of recording, that you inherit for the rest of the project. You cannot undo any of them in the edit. Knowing what they were tells you, before you start, which shots will hold up and which will fall apart the moment you touch them."}]},{"t":"h2","id":"one-which-frames-are-whole","runs":[{"text":"One: which frames are whole"}]},{"t":"p","runs":[{"text":"Intra-frame","b":true},{"text":" codecs store every frame complete. ProRes, DNxHR and most camera RAW work this way. Files are large and scrubbing is instant, because frame 4,312 is there."}]},{"t":"p","runs":[{"text":"Long-GOP","b":true},{"text":" codecs, the H.264 and H.265 that phones and consumer cameras write, store an occasional complete frame and describe everything in between as differences. GOP means group of pictures; a typical consumer camera uses a keyframe every 30 to 60 frames, so one to two seconds apart."}]},{"t":"p","runs":[{"text":"The consequence bites in three places. Playback is heavy, which the proxy lesson solved. Cutting is imprecise in some tools, because a cut in the middle of a GOP has to be reconstructed. And each re-encode compounds: every generation of H.264 throws away detail the previous one kept."}]},{"t":"h2","id":"two-how-much-colour-was-kept","runs":[{"text":"Two: how much colour was kept"}]},{"t":"p","runs":[{"text":"Cameras record more brightness detail than colour detail, because the eye notices luminance far more than chroma. The notation is three numbers."}]},{"t":"ul","items":[[{"text":"4:4:4","b":true},{"text":": full colour for every pixel. Rare outside cinema cameras and graphics."}],[{"text":"4:2:2","b":true},{"text":": colour sampled at half horizontal resolution. Most professional cameras, and many mirrorless cameras when recording externally."}],[{"text":"4:2:0","b":true},{"text":": colour sampled at half horizontal "},{"text":"and","i":true},{"text":" half vertical resolution. Every phone, every consumer camera, every streaming delivery file."}]]},{"t":"p","runs":[{"text":"In 4:2:0 one colour sample covers a 2×2 block of pixels. For watching, this is invisible. For working, it is not. A green-screen key builds its matte from colour, so at 4:2:0 the matte has a quarter of the resolution of the picture and every edge comes back blocky. Fine detail against a strongly coloured background (hair, a chain, text) smears. Heavy saturation changes in a grade expose the blocks."}]},{"t":"p","runs":[{"text":"This is the single most common reason a key that looked achievable on set is impossible in the edit."}]},{"t":"h2","id":"three-how-many-steps-there-are-between-black-and-white","runs":[{"text":"Three: how many steps there are between black and white"}]},{"t":"p","runs":[{"text":"8-bit","b":true},{"text":" gives 256 levels per channel. "},{"text":"10-bit","b":true},{"text":" gives 1,024. That sounds like a small difference and it is not, because the levels are not spread evenly across what you see: they are spread across what the camera captured."}]},{"t":"p","runs":[{"text":"If the camera recorded a normal, contrasty picture, 8-bit is usually enough. If it recorded a "},{"text":"log","b":true},{"text":" profile (flat and grey, holding a wide brightness range so you can redistribute it later) then you are stretching 256 levels across a much bigger range. Add the contrast back in the grade and the gaps between levels become visible as "},{"text":"banding","b":true},{"text":": stepped rings in a sky, a wall, a gradient behind a face."}]},{"t":"p","runs":[{"text":"The practical rule: log is a 10-bit feature. On an 8-bit phone or entry-level camera, a well-exposed standard profile beats log almost every time."}]},{"t":"h2","id":"four-how-many-bits-per-second","runs":[{"text":"Four: how many bits per second"}]},{"t":"p","runs":[{"text":"The capture bitrate is the budget the encoder had. A phone at 1080p might write 20 Mbps; the same phone at 4K writes 50 to 100; a mirrorless camera at 4:2:2 10-bit might write 400. Content matters more than resolution here: rain, foliage, confetti and fast camera moves exhaust a low bitrate long before a talking head does."}]},{"t":"p","runs":[{"text":"The tell for a starved bitrate is "},{"text":"macroblocking","b":true},{"text":": 16×16 squares appearing in the darkest and busiest parts of the frame. No amount of grading recovers it, and sharpening makes it worse."}]},{"t":"h2","id":"read-the-file-rather-than-guessing","runs":[{"text":"Read the file rather than guessing"}]},{"t":"p","runs":[{"text":"FFmpeg is free, installs on every platform, and answers all four questions in one command:"}]},{"t":"code","lang":"bash","label":"Bash","text":"ffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_name,pix_fmt,bit_rate,r_frame_rate,width,height \\\n  -of default=noprint_wrappers=1 clip.mp4"},{"t":"p","runs":[{"text":"A typical phone answers "},{"text":"codec_name=hevc","code":true},{"text":", "},{"text":"pix_fmt=yuv420p","code":true},{"text":", "},{"text":"bit_rate=48000000","code":true},{"text":", "},{"text":"r_frame_rate=30/1","code":true},{"text":". The "},{"text":"p","code":true},{"text":" in "},{"text":"yuv420p","code":true},{"text":" means planar: brightness and the two colour channels are stored as separate planes. "},{"text":"yuv422p10le","code":true},{"text":" would mean planar 4:2:2, 10-bit, little-endian. Whether a clip is progressive or interlaced is a separate property; add "},{"text":"field_order","code":true},{"text":" to the "},{"text":"-show_entries","code":true},{"text":" list to see it. MediaInfo is a free graphical alternative if you would rather click."}]},{"t":"p","runs":[{"text":"Do this once per camera, not once per clip. The answer is a property of how the camera was set, and it will be the same for the whole shoot."}]},{"t":"h2","id":"what-this-changes-about-your-decisions","runs":[{"text":"What this changes about your decisions"}]},{"t":"ul","items":[[{"text":"Planning a key: check chroma subsampling "},{"text":"before","b":true},{"text":" the shoot, not after."}],[{"text":"Planning a heavy grade: check bit depth, and turn log off if the camera is 8-bit."}],[{"text":"Planning archival: your master should be intra-frame, even though the camera original was not."}],[{"text":"Handed someone else’s footage: run "},{"text":"ffprobe","code":true},{"text":" first. It takes ten seconds and it tells you what the day is going to be like."}]]},{"t":"h2","id":"today","runs":[{"text":"Today"}]},{"t":"p","runs":[{"text":"Run the command above on the newest clip on your phone and the oldest clip you still have. Write down the four answers for each. The difference between them is usually the difference between two afternoons of work."}]}],"check":{"question":[{"text":"An editor is handed 4K phone footage of a presenter in front of a green sheet. The lighting was even and the sheet is clean, but every attempt at a key produces blocky, stepped edges around the hair. What is the mechanism?"}],"options":[{"text":[{"text":"The bitrate is too low, so the encoder has discarded the fine detail around the hair; re-encoding the clip at a higher bitrate before keying will restore the edge."}],"correct":false,"tempting":[{"text":"Right family of problem, impossible fix: re-encoding cannot add back detail that was never written, and a higher target bitrate on a lossy source only preserves the existing artefacts more faithfully."}]},{"text":[{"text":"Phone footage is 4:2:0, so the colour information the keyer builds its matte from exists at half the horizontal and half the vertical resolution of the picture."}],"correct":true,"tempting":null},{"text":[{"text":"The clip is long-GOP, so frames between keyframes are reconstructed approximations and the keyer sees a different edge on every frame."}],"correct":false,"tempting":[{"text":"Names a real property that causes playback and re-encode problems, but the blockiness of a matte follows from chroma resolution, not from inter-frame prediction."}]},{"text":[{"text":"The green sheet is the wrong shade for the keyer’s default, and sampling a different point on it will fix the edges."}],"correct":false,"tempting":[{"text":"Treats a resolution limit as a sampling choice; picking a better key colour improves separation but cannot raise the resolution of the colour channels."}]}],"order":[3,1,0,2],"why":null},"prev":{"slug":"timeline-and-proxies","title":"Your laptop is probably not too slow","minutes":10},"next":{"slug":"frame-rate-and-shutter","title":"Frame rate, shutter, and the flicker in the light","minutes":9}}}