Back to Blog

A Preflight Video File Checklist with ffprobe

NexxiqAI Editorial TeamNovember 21, 2026

Reviewed 21 November 2026. A file that plays on one computer is not automatically ready for upload, review, or archive. A useful preflight checks what is actually stored in the container before a platform or client discovers the problem. This checklist uses ffprobe, the inspection program distributed with FFmpeg, and does not modify the source file.

Start with a machine-readable report

Run the following command against a copy of the final deliverable:

ffprobe -v error -show_format -show_streams -of json input.mp4

-v error suppresses routine log messages. -show_format reports container-level information such as duration, size, and tags. -show_streams reports each video, audio, subtitle, and data stream. JSON output is convenient for a checklist or automated comparison, but the values still need to be interpreted in the context of the destination.

1. Confirm the container and stream inventory

Check format_name, then count the streams. A typical social upload may have one video stream and one audio stream. Extra commentary tracks, timecode streams, subtitles, or attached artwork may be deliberate, but they should not appear by accident.

To print only the most useful stream fields:

ffprobe -v error -select_streams v:0 -show_entries stream=index,codec_name,profile,pix_fmt,width,height,r_frame_rate,avg_frame_rate,color_range,color_space,color_transfer,color_primaries -of default=noprint_wrappers=1 input.mp4

The -select_streams v:0 selector means the first video stream. If the file has several video streams, inspect each one rather than assuming the first is the intended program.

2. Check codec, profile, dimensions, and pixel format

Record the codec and profile instead of relying on the filename. The extension describes the container, not the codec inside it. An MP4 can contain video that a particular device or platform does not accept.

  • Dimensions: verify that width and height match the delivery specification and intended orientation.
  • Pixel format: values such as yuv420p and yuv420p10le describe chroma subsampling and bit depth. Do not label a file as 10-bit or HDR based on appearance alone.
  • Sample aspect ratio: if present, verify that pixels are interpreted correctly. Unexpected non-square pixels can make the displayed image look stretched.
  • Profile and level: these can affect decoder compatibility even when the codec name is familiar.

3. Treat frame-rate fields carefully

r_frame_rate and avg_frame_rate are rational values, not a guaranteed statement that every frame interval is identical. They can differ, particularly with variable-frame-rate material. For a packet-level view, inspect timestamps:

ffprobe -v error -select_streams v:0 -show_entries packet=pts_time,dts_time,duration_time -of csv=p=0 input.mp4

Look for missing, duplicated, non-monotonic, or unexpectedly uneven timestamps. Long files produce a large result, so direct the output to a file when necessary. YouTube's upload guidance recommends uploading in the same frame rate in which the content was recorded. A deliberate conversion should be tested for motion cadence and audio synchronization.

4. Verify duration and audio

Compare the format duration with the expected edit duration, then inspect the primary audio stream:

ffprobe -v error -select_streams a:0 -show_entries stream=codec_name,sample_rate,channels,channel_layout,bit_rate,duration -of default=noprint_wrappers=1 input.mp4

Check the codec, sample rate, channel count, channel layout, and duration. The video and audio durations do not always match exactly because containers can use edit lists, priming samples, or padding. Investigate material differences and listen near the start, middle, and end rather than accepting metadata alone.

5. Check color metadata without guessing

Review color_primaries, color_transfer, color_space, and color_range. These tags tell a decoder how coded values should be interpreted. Missing tags are not proof of SDR, and HDR-looking pictures are not proof of correct HDR metadata. Compare the tags with the export settings and source pipeline.

If a file is meant to be HDR, also inspect side data and mastering metadata where present:

ffprobe -v error -select_streams v:0 -show_frames -read_intervals %+#1 -show_entries frame=color_range,color_space,color_primaries,color_transfer,side_data_list -of json input.mp4

This samples one decoded frame. It does not validate the artistic grade or prove that every frame is consistent.

6. Check MP4 web-start layout

For progressive web playback, an MP4 is easier to start when its movie metadata is near the beginning of the file. FFmpeg's MOV/MP4 muxer supports -movflags +faststart, which moves the index to the beginning in a second pass. If the file must be remuxed, keep a separate output and compare it with the original:

ffmpeg -i input.mp4 -map 0 -c copy -movflags +faststart output-faststart.mp4

-c copy copies compatible streams without re-encoding, but remuxing can still alter container metadata. Confirm stream count, duration, chapters, subtitles, and playback afterward.

Record pass, fail, and review states

A preflight report should state the expected value, observed value, and decision for each check. Use review when a value is valid but needs a human decision. For example, two audio tracks may be technically valid but wrong for a destination expecting one. Keep the ffprobe command, tool version, file hash, and inspection date with the report so another person can reproduce it.

Limitations

ffprobe reports structure and metadata. It does not judge picture quality, detect every visible glitch, confirm speech intelligibility, or prove platform acceptance. Complete the preflight with visual playback, audio monitoring, caption review, and a destination-specific test upload where permitted.

Primary sources