Loading...
Loading...
Analyze video files using ffprobe, mp4dump, and jq. Use when investigating video samples, keyframes, MP4 box structure, codec info, packet timing, or debugging video playback issues.
npx skill4agent add editframe/skills video-analysisffprobe -v quiet -print_format json -show_format -show_streams FILE.mp4.format.duration.streams[].codec_name.streams[].codec_type-select_streams v:0 # first video stream
-select_streams a:0 # first audio stream
-select_streams v # all video streamsffprobe -v quiet -print_format json -show_packets FILE.mp4.packets[].pts_time.packets[].flags.packets[].sizeKD_ffprobe -v quiet -print_format json -show_packets -select_streams v:0 FILE.mp4 | \
jq '[.packets[] | select(.flags | test("K"))]'ffprobe -v quiet -print_format json -show_packets -select_streams v:0 FILE.mp4 | \
jq '[.packets[] | select(.flags | test("K"))] | length'ffprobe -v quiet -print_format json -show_frames FILE.mp4.frames[].pict_type.frames[].key_frame.frames[].pts_timeffprobe -v quiet -print_format json -show_frames -read_intervals "%+#100" FILE.mp4ffprobe -v quiet -show_entries format=duration -of csv=p=0 FILE.mp4ffprobe -v quiet -select_streams v:0 -show_entries stream=nb_frames -of csv=p=0 FILE.mp4ffprobe -v quiet -print_format json -show_streams FILE.mp4 | \
jq '.streams[] | {codec: .codec_name, type: .codec_type, profile: .profile}'ffprobe -v quiet -select_streams v:0 -show_entries stream=width,height -of csv=p=0 FILE.mp4ffprobe -v quiet -select_streams a:0 -show_entries stream=sample_rate,channels -of csv=p=0 FILE.mp4mp4dump --format json FILE.mp4ftypmoovmvhdtrakmdhdstblstssmoofmdatmp4dump --format json FILE.mp4 | jq '.. | objects | select(.name == "mvhd")'mp4dump --format json FILE.mp4 | jq '[.. | objects | select(.name == "moof")] | length'jq '.streams[] | select(.codec_type == "video")'jq '.streams[] | {codec: .codec_name, duration: .duration}'jq '.packets | length'jq '.packets[:10]'jq '[.packets[].size | tonumber] | add'ffprobe -v quiet -select_streams v:0 -show_entries packet=pts_time,flags,size -of csv=p=0 FILE.mp40.000000,1263,K__elements/test-assets/10s-bars.mp4frame-count.mp4bars-n-tone.mp4