How to check video dimensions, frame count, and audio with ffprobe
An animation brief might call for a ten-second vertical MP4 at 1080 × 1920 and 30 fps. Before delivering the file, read the metadata and count the frames. That makes it easier to catch an incorrect orientation, a missing frame, or an absent soundtrack.
Read the primary video stream
ffprobe -v error -select_streams v:0 -count_frames \
-show_entries 'stream=width,height,avg_frame_rate,nb_read_frames,duration' \
-of json motion.mp4
A ten-second constant-frame-rate export at 30 fps should have a width of 1080, a height of 1920, an average frame rate of 30/1, and 300 decoded frames. If the video stream omits duration, inspect the container duration and compare it with the video's first and last presentation timestamps. To confirm a constant frame rate, check the intervals between consecutive frame timestamps as well. ffprobe documentation
Check for the expected audio track
ffprobe -v error -select_streams a:0 \
-show_entries 'stream=codec_name,sample_rate,channels,duration' \
-of json motion.mp4
If the stream list is empty, the command found no audio track matching the selection. When it returns a codec and sample rate, play the clip too. A track can still contain silence or a cue that arrives late.
Add these checks to the render prompt
Add an export check for motion.mp4. Expect a 1080 × 1920 frame size, 30 fps, and 300 decoded video frames. Report the actual dimensions, average frame rate, decoded frame count, and whether there is an audio stream. Log the actual and expected values for any mismatch. Export stills from frames 0, 150, and 299 so I can inspect the opening, main action, and end card.
If you count 301 frames, check whether the export included the theoretical frame at exactly ten seconds. If the dimensions look right but the player rotates the clip unexpectedly, check its rotation metadata. Finish by watching the video on the intended device to verify motion and audio timing.