Is This Hit the Road Dude Clip Constant-Frame-Rate or Variable, and Why Does ffprobe Still Print 24/1 After a Mixed-FPS Concat?
A 15-second vertical clip can look fine in one player and come out 15.63 seconds in another. Before you blame the editor, read four ffprobe fields together: r_frame_rate, avg_frame_rate, nb_frames, and the stream duration. I generated four 720×1280 test files on this box today and compared those fields. No paid Hit the Road Dude render is in this set; these are synthetic controls so the numbers can be checked.
What to trust, and what not to
ffprobe -count_frames -show_streams is enough for the headline figures. I also dumped packet timestamps. On both constant-frame-rate controls, raw packet PTS intervals included negative steps (for example −0.066667 s on the 30 fps file). That is packet reordering around B-frames, not a variable-rate clip. Do not compute fps from unsorted packet PTS deltas.
Use:
-
nb_frames(ornb_read_frames) againstduration -
r_frame_rateas the declared rate -
avg_frame_rateas frames divided by the stream duration the container actually stored
Constant 30 fps and constant 24 fps
Both files are 15.000000 seconds long, yuv420p H.264 plus 48 kHz AAC, with movflags +faststart.
| File | Bytes | r_frame_rate |
avg_frame_rate |
Frames | Video duration |
|---|---|---|---|---|---|
cfr_30.mp4 |
403,802 | 30/1 | 30/1 | 450 | 15.000000 s |
cfr_24.mp4 |
395,400 | 24/1 | 24/1 | 360 | 15.000000 s |
450 ÷ 15 = 30, and 360 ÷ 15 = 24. When the declared rate and the average rate agree, and the frame count matches duration × rate, the file is constant-frame-rate.
A mixed-fps concatenation that still prints 24/1
I made three 5-second segments — 24, 30, and 25 fps — and concatenated them with ffmpeg -c copy. The expected frame count is 5×24 + 5×30 + 5×25 = 395. The file vfr_concat_copy.mp4 is 397,864 bytes and really does contain 395 frames. Then the timestamps go sideways:
-
r_frame_rateis still 24/1 (the first segment's rate) -
avg_frame_rateis 632/25, which is 25.28 fps - video duration is 15.625000 s, not 15
- format duration is 15.645996 s
- audio duration is 15.021333 s
- the video time base is 1/12288, inherited from the 24 fps segment (24 × 512)
395 ÷ 15.625000 = 25.28, which is exactly 632/25. The copy-concat kept the first file's timing metadata, stretched the later segments onto that time base, and left a declared rate that describes only the opening 5 seconds. If you glance at r_frame_rate alone, you will think you have a 24 fps clip.
An explicit setpts pass
A second file, vfr_setpts.mp4 (407,728 bytes), starts from a 30 fps 15-second source and rewrites presentation timestamps so the first 150 frames are paced at 24 fps, the next 150 at 30, and the rest at 25. After encode:
-
r_frame_rateis still 30/1 -
avg_frame_rateis 1125/43, about 26.16279 fps - 450 frames (the original count)
- video duration 17.200000 s
- audio duration still 15.000000 s
450 ÷ 17.2 = 26.16279. The picture was stretched; the soundtrack was not. That is an A/V desync you can measure without watching the file.
A small checker
import json, subprocess, fractions
def probe(path):
raw = subprocess.check_output([
"ffprobe", "-v", "error", "-count_frames",
"-show_format", "-show_streams", "-of", "json", path,
])
info = json.loads(raw)
v = next(s for s in info["streams"] if s["codec_type"] == "video")
a = next(s for s in info["streams"] if s["codec_type"] == "audio")
def ratio(s):
return float(fractions.Fraction(s)) if s and s != "0/0" else None
frames = int(v.get("nb_read_frames") or v.get("nb_frames") or 0)
vdur = float(v["duration"])
return {
"bytes": int(info["format"]["size"]),
"r_frame_rate": v.get("r_frame_rate"),
"avg_frame_rate": v.get("avg_frame_rate"),
"avg_fps": ratio(v.get("avg_frame_rate")),
"frames": frames,
"video_s": vdur,
"audio_s": float(a["duration"]),
"cfr": v.get("r_frame_rate") == v.get("avg_frame_rate"),
"fps_from_count": frames / vdur if vdur else None,
}
On today's four files, cfr is true only for the two constant-rate controls. For the copy-concat, this prints r_frame_rate=24/1, avg_fps=25.28, video_s=15.625, audio_s=15.021333.
Why this matters for a 15-second pickup-window clip
Hit the Road Dude sells one 15-second vertical 9:16 clip, at 480p or 720p, with a newly generated voice. You do not write a prompt; the pickup-window exchange is a saved preset. I re-checked the live pricing page on 29 November 2026 between 09:24:27 and 09:26:16 Asia/Shanghai: $9.99 / 6 credits at 480p, $12.99 / 14 credits at 720p, and one-time packs at $27.99 / 30, $71.99 / 100, and $129.99 / 200. There is no subscription and no free clip.
If you later trim, concat, or drop that 15-second file into a sequence with a different fps, believe nb_frames and the stream duration over the declared r_frame_rate. A file that still says 24/1 can already be 15.625 seconds long.
Top comments (0)