A movie camera that opened an error
The fan page in the old Movie Makers story had photographs, drawings of Kirk and Picard, fan fiction and a promising little camera link. The pictures loaded. The movie produced an invalid-codec message. The column’s credits named Richard Lowe Jr. and Claudia Arevalo-Lowe of Internet Tips and Secrets. A player was already on the computer. Why did it need anything else?
Imagine a second of film broken into individual pictures. At 640 by 480 pixels, a single uncompressed 24-bit color frame occupies 921,600 bytes. At 24 frames a second that is over 22 million bytes before sound. On a dial-up line you could still be waiting for the first picture long after all 24 were due on screen.
Now picture a red kite moving across a blue sky. Most of the sky stays put from one frame to the next. A video encoder can use patterns within pictures and, in many formats, between them to reduce the amount it has to send.
What goes inside what
| Part | Job |
|---|---|
| Encoder | Turns picture or sound into a coded stream for storage or transmission. |
| Decoder | Reads a compatible stream and produces pictures or sound for playback. |
| Container | Holds one or more streams and the information that lets them play together. |
| Player | Opens the container, uses the available decoders and presents the result. |
Codec is short for coder/decoder. The person making the file chooses an encoding method. The machine playing it needs to understand that method. A container such as AVI can carry different kinds of video. Two files ending in .avi can therefore behave quite differently on the same XP machine. Changing the letters at the end of the filename does not change what is inside.
One picture, several compromises
A codec can trade file size against detail and the amount of work the computer must do. A flat title card and a busy shot of leaves in the wind give an encoder very different problems. Send too few bits to a moving, detailed picture and shapes may break into blocks or smear together. Asking for more compression can also mean asking the decoder for more work. An old PC might decode a small preview comfortably and struggle with the full-size film.
The sound has its own format. If you hear voices against a black picture, the player may be able to read the container and decode its audio while lacking support for the video. Silence with a perfectly good picture suggests looking at the sound stream and output settings first.
Work backward from the file
Try the file where it was made. Note its container, video format and audio format from the exporting program or media properties. If you still have the original edit, make a short test in a format the intended device documents. Renaming the original or repeatedly converting an already poor copy only makes the fault harder to trace.
On the XP desktop, Windows Media Player first looked for an installed decoder. If it came up empty, the player could check its online library for the missing component. That lookup sometimes came up empty too. QuickTime Player and RealPlayer were other familiar players of the time, each with its own mix of format support.
For a file you have today, check its picture and sound formats against the player’s documentation. Keep the original while testing a short export. MDN’s media container guide
