I wanted a precise answer for a constructed 15-second 9:16 fixture, not a guess from the encoder log: what does the ISO-BMFF stss (sync-sample) table actually contain, how long is each GOP, and does a plain stream copy keep that table? The file at files/source/source_15s_916.mp4 is a constructed 720×1280, 24 fps, H.264 High@L3.1 + AAC-LC clip in the product format — 5,264,872 bytes, MD5 38a90c22952432c8567bbeddb5249bf0. It is not a customer's paid download from hittheroaddude.app.
The video track's stss box sits at offset 658, size 48. ISO 14496-12 stores sample numbers as 1-based. This fixture lists eight of them:
1, 49, 97, 145, 193, 241, 289, 337
The video stts is one entry: 360 samples, each with a delta of 512 at an mdhd timescale of 12,288, which is exactly 1/24 s per frame. The gaps between consecutive sync samples are all 48. Defining GOP length as the number of frames from one sync sample up to (but not including) the next, and through sample 360 for the last group, the eight GOP lengths in frames are 48, 48, 48, 48, 48, 48, 48, 24. That is 2,000 ms for the first seven groups and 1,000 ms for the last. Min 24 / 1,000 ms, median 48 / 2,000 ms, max 48 / 2,000 ms. The last GOP is shorter, which is what you get when a 15-second 24 fps file is cut on a 48-frame interval: 7×48 + 24 = 360.
ffprobe agrees. It reports has_b_frames=2, r_frame_rate=24/1, and 360 frames. Eight frames have key_frame=1 and pict type I, at the same 1-based indices, with pts_time 0, 2, 4, 6, 8, 10, 12, and 14 seconds. Eight of 360 packets carry the K flag. The pict-type counts are I 8, P 151, B 201. Those B-frames are why has_b_frames is 2; they do not change the stss list.
A plain remux keeps the table and the essences:
ffmpeg -i source_15s_916.mp4 -c copy -movflags +faststart streamcopy.mp4 The output is still 5,264,872 bytes. The stss offset, size, and sample numbers are unchanged. The video streamhash stays 1530607bba1e88d8e553aeb7d8401cde and the audio streamhash stays 649186bbea57a9153213443badde98f3. Only the file MD5 changes, to 19842a8638ecc7e2d89f42268861229d, which is what a faststart remux of this source always produces on this box.
-g is supported on ffmpeg 7.1.5 / libx264. I re-encoded video only, copied audio, and used a documented preset so the run is repeatable:
ffmpeg -i source_15s_916.mp4 -c:v libx264 -preset veryfast -crf 23 -g 24 \ -c:a copy -movflags +faststart reencode_g24.mp4 ffmpeg -i source_15s_916.mp4 -c:v libx264 -preset veryfast -crf 23 -g 48 \ -c:a copy -movflags +faststart reencode_g48.mp4 -g 24 writes 15 sync samples at 1, 25, 49, …, 337. Every GOP is 24 frames / 1,000 ms, including the last, so the short tail disappears. The file is 4,671,951 bytes, MD5 59098b8569b7f0dacc6eec45a2982dd1. The video hash changes to 3b197328f7378805b713d6ba9de16d94; the audio hash is unchanged. -g 48 keeps the original eight sample numbers and the short last GOP of 24 frames. The file is 4,554,739 bytes, MD5 2bf63d703fa3c08129c4aef74c727597, video hash b745e161f2fdea732592c2fbf73249b9, audio hash still 649186bb….
I am reporting the table ffmpeg and libx264 actually wrote on this box, not a player-support claim. src/stss_layout.py walks the video stss/stts boxes and prints the streamhashes.
python3 src/stss_layout.py files/source/source_15s_916.mp4 PYTHONPATH=src python3 -m pytest src/test_stss_layout.py The studio at hittheroaddude.app sells one 15-second vertical clip from one photo, with a newly generated voice and no prompt box. I re-checked the pricing page on 6 December 2026 between 09:18:32 and 09:18:35 Asia/Shanghai: $9.99 / 6 credits at 480p, $12.99 / 14 credits at 720p. There is no subscription and no free clip.


