video-check

Installation
SKILL.md

Video check

Run this on every finished file. It catches the faults people spot in the first three seconds.

Step 1: The file

ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,width,height,pix_fmt,color_range,nb_frames,r_frame_rate -show_entries format=duration -of default=nw=1 video.mp4

Pass: h264, 1080 x 1920 (or 1080 x 1350, 1080 x 1080, 1920 x 1080 for the other sizes from every-format), yuv420p, color_range=tv. Frames = duration x fps. A truncated render looks fine on frame 1. If you see hevc or color_range=pc, export again:

ffmpeg -i video.mp4 -c:v libx264 -profile:v high -crf 18 -pix_fmt yuv420p -vf "scale=1080:1920:out_range=tv,format=yuv420p" -color_range tv -colorspace bt709 -color_primaries bt709 -color_trc bt709 -c:a aac -b:a 192k -movflags +faststart video-ig.mp4

Step 2: Look at it, the whole thing

Installs
9
GitHub Stars
4
First Seen
4 days ago