keyframes (s): [2.733, 4.167, 5.833, 14.167, 18.333, 26.667, 32.4, 35.3, 37.9] SSIM is reported only for re-encoded files; for stream copies the exact frame-by-frame md5 comparison is used (SSIM on copies was unreliable here: timestamp pairing). requested start S=10.833 s (inside the gap 5.833 to 14.167), length 10 s; keyframe control start K=5.833 == A copy, -ss before -i A.mp4: 2834283 bytes; cutting took 0.1 s; 452 video packets stored, 302 pictures shown (10.067 s at 30 fps); video start/duration/frames 0.000000,10.100000,452; audio start/duration 0.000000,10.010000 first picture shown = source time 10.833 s (asked for 10.833); with edit list ignored (-ignore_editlist 1) = source time 5.833 s decoded pictures identical to the source, frame by frame: 300 of 302; pictures that differ (index from 0): [300, 301] == B copy, -ss after -i B.mp4: 1923547 bytes; cutting took 0.1 s; 202 video packets stored, 202 pictures shown (6.733 s at 30 fps); video start/duration/frames 3.333000,6.733333,202; audio start/duration 0.004000,10.005333 first picture shown = source time 14.167 s (asked for 10.833); with edit list ignored (-ignore_editlist 1) = source time 14.167 s decoded pictures identical to the source, frame by frame: 200 of 202; pictures that differ (index from 0): [200, 201] == C re-encode CRF 23 veryfast C.mp4: 2040014 bytes; cutting took 2.0 s; 300 video packets stored, 300 pictures shown (10.000 s at 30 fps); video start/duration/frames 0.000000,10.000000,300; audio start/duration 0.000000,10.000000 first picture shown = source time no frame of the source matches (re-encoded) s (asked for 10.833); with edit list ignored (-ignore_editlist 1) = source time n/a s against the source from 10.833 s: SSIM 0.986676, PSNR 39.557366 dB alignment check, SSIM when the reference starts one frame earlier / on time / one frame later: [0.971379, 0.986676, 0.97113] == D re-encode CRF 18 medium D.mp4: 3637995 bytes; cutting took 4.0 s; 300 video packets stored, 300 pictures shown (10.000 s at 30 fps); video start/duration/frames 0.000000,10.000000,300; audio start/duration 0.000000,10.000000 first picture shown = source time no frame of the source matches (re-encoded) s (asked for 10.833); with edit list ignored (-ignore_editlist 1) = source time n/a s against the source from 10.833 s: SSIM 0.995343, PSNR 40.948896 dB alignment check, SSIM when the reference starts one frame earlier / on time / one frame later: [0.97891, 0.995343, 0.978686] == E control: copy, start asked at the keyframe time E.mp4: 2455003 bytes; cutting took 0.1 s; 352 video packets stored, 302 pictures shown (10.067 s at 30 fps); video start/duration/frames 0.000000,10.133000,352; audio start/duration 0.000000,10.017000 first picture shown = source time 5.833 s (asked for 5.8333); with edit list ignored (-ignore_editlist 1) = source time 4.167 s decoded pictures identical to the source, frame by frame: 300 of 302; pictures that differ (index from 0): [300, 301] == F Koldflux Trim a video tool (live page, headless Chromium) tool/in-out.mp4: 2047391 bytes; cutting took see tool-run-log.txt; 300 video packets stored, 300 pictures shown (10.000 s at 30 fps); video start/duration/frames 0.000000,10.000000,300; audio start/duration 0.000000,10.000000 first picture shown = source time no frame of the source matches (re-encoded) s (asked for 10.833); with edit list ignored (-ignore_editlist 1) = source time n/a s against the source from 10.833 s: SSIM 0.98662, PSNR 39.558199 dB alignment check, SSIM when the reference starts one frame earlier / on time / one frame later: [0.971332, 0.98662, 0.971086] == controls (100 frames from the requested start) same range vs same range: SSIM 1.000000 range vs the same range shifted by one frame (1/30 s): SSIM 0.986105