== ffmpeg: ffmpeg version 6.1.1-3ubuntu5 == build OBS-like MKV files (30 s from 0:10, 1920x1080, 24 fps) SRC obs-h264-2trk.mkv bytes=15145120 frames=683 streams: 0,h264,video,[0][0][0][0] 1,aac,audio,[0][0][0][0] 2,aac,audio,[0][0][0][0] SRC obs-hevc.mkv bytes=5188646 frames=683 streams: 0,hevc,video,[0][0][0][0] 1,aac,audio,[0][0][0][0] SRC obs-opus.mkv bytes=14529009 frames=683 streams: 0,h264,video,[0][0][0][0] 1,opus,audio,[0][0][0][0] SRC obs-pcm16.mkv bytes=19690174 frames=683 streams: 0,h264,video,[0][0][0][0] 1,pcm_s16le,audio,[0][0][0][0] SRC obs-pcmf32.mkv bytes=25457350 frames=683 streams: 0,h264,video,[0][0][0][0] 1,pcm_f32le,audio,[0][0][0][0] == CONTROL frames expected 720 (30 s x 24 fps) == 1 plain -c copy vs -map 0 (2 audio tracks) RUN plain_copy | rc=0 | sec=.5010 | out_streams=2 | 0,h264,video,avc1 1,aac,audio,mp4a | err= RUN map0_copy | rc=0 | sec=.6596 | out_streams=3 | 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a | err= HASH video src=MD5=b05c9986c7ba160753d331f32cceafe7 map0=MD5=b05c9986c7ba160753d331f32cceafe7 HASH audio0 src=MD5=43bf7b1e352d1b39462577240a03baa9 map0=MD5=43bf7b1e352d1b39462577240a03baa9 HASH audio1 src=MD5=daf7519ba7cfa2952cf6f76980e22b11 map0=MD5=daf7519ba7cfa2952cf6f76980e22b11 SIZE src=15145120 map0=15160541 RUN reencode | rc=0 | sec=19.70 | out_streams=3 | 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a | err= == 2 HEVC tag RUN hevc_copy | rc=0 | sec=.5531 | out_streams=2 | 0,hevc,video,hev1 1,aac,audio,mp4a | err= RUN hevc_tag | rc=0 | sec=.5278 | out_streams=2 | 0,hevc,video,hvc1 1,aac,audio,mp4a | err= HASH hevc video src=MD5=571ede03dc59b8462ec2fcc55a2e63a9 tagged=MD5=571ede03dc59b8462ec2fcc55a2e63a9 == 3 PCM and Opus audio RUN pcm16_copy | rc=0 | sec=.5114 | out_streams=2 | 0,h264,video,avc1 1,pcm_s16le,audio,ipcm | err= RUN pcmf32_copy | rc=0 | sec=.8241 | out_streams=2 | 0,h264,video,avc1 1,pcm_f32le,audio,fpcm | err= RUN pcm16_mov | rc=0 | sec=.9080 | out_streams=2 | 0,h264,video,avc1 1,pcm_s16le,audio,sowt | err= RUN pcm16_aac | rc=0 | sec=2.828 | out_streams=2 | 0,h264,video,avc1 1,aac,audio,mp4a | err= HASH pcm video src=MD5=b05c9986c7ba160753d331f32cceafe7 fixed=MD5=b05c9986c7ba160753d331f32cceafe7 RUN opus_copy | rc=0 | sec=.5694 | out_streams=2 | 0,h264,video,avc1 1,opus,audio,Opus | err= == 4 crash test: record with -re, kill -9 by PID after 12 s CRASH mkv | bytes=9699328 | frames=236 | probe_err= RUN crash_remux_mkv | rc=0 | sec=.3827 | out_streams=3 | 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a | err=[matroska,webm @ 0x5625211b9f00] File ended prematurely CRASH_OUT mkv frames=236 CRASH mp4 | bytes=10223664 | frames= | probe_err=[mov,mp4,m4a,3gp,3g2,mj2 @ 0x6076d5aa0680] moov atom not found crash-plain.mp4: Invalid data found when processing input RUN crash_remux_mp4 | rc=183 | sec=.1082 | out_streams=0 | | err=[mov,mp4,m4a,3gp,3g2,mj2 @ 0x579fe8ce9f00] moov atom not found [in#0 @ 0x579fe8ce9e00] Error opening input: Invalid data found when processing input Error openi CRASH_OUT mp4 frames= CRASH fmp4 | bytes=7602204 | frames=238 | probe_err= RUN crash_remux_fmp4 | rc=0 | sec=.3080 | out_streams=3 | 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a | err= CRASH_OUT fmp4 frames=217 == 5 control: same recordings finished normally OK mkv bytes=24593406 frames=683 OK mp4 bytes=24382623 frames=720 OK fmp4 bytes=24380438 frames=720 == 6 truncation at 70% of bytes (deterministic repeat of 4) RUN cut_remux_ok.mkv | rc=0 | sec=.6233 | out_streams=3 | 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a | err=[matroska,webm @ 0x633c95240f00] File ended prematurely CUT ok.mkv frames=434 out_frames=434 RUN cut_remux_ok-plain.mp4 | rc=183 | sec=.1461 | out_streams=0 | | err=[mov,mp4,m4a,3gp,3g2,mj2 @ 0x56d749e60f00] moov atom not found [in#0 @ 0x56d749e60e00] Error opening input: Invalid data found when processing input Error openi CUT ok-plain.mp4 frames= out_frames= RUN cut_remux_ok-frag.mp4 | rc=0 | sec=.5396 | out_streams=3 | 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a | err= CUT ok-frag.mp4 frames=476 out_frames=457 == done == 7 live Koldflux tool (https://koldflux.com/tools/convert/video/mkv-to-mp4, headless Chromium, tool-run.cjs) TOOL run1 {"file":"media/obs-h264-2trk.mkv","seconds":"2.9","bytes":15160549,"suggested":"converted.mp4","page_text":"REMUX (CONTAINER SWAP)"} TOOL run1 out streams: 0,h264,video,avc1 1,aac,audio,mp4a 2,aac,audio,mp4a frames=683 TOOL run1 HASH video src=MD5=b05c9986c7ba160753d331f32cceafe7 tool=MD5=b05c9986c7ba160753d331f32cceafe7 TOOL run1 HASH audio0 src=MD5=43bf7b1e352d1b39462577240a03baa9 tool=MD5=43bf7b1e352d1b39462577240a03baa9 TOOL run1 HASH audio1 src=MD5=daf7519ba7cfa2952cf6f76980e22b11 tool=MD5=daf7519ba7cfa2952cf6f76980e22b11 TOOL run2 {"file":"media/obs-h264-2trk.mkv","seconds":"2.8","bytes":15160549,"suggested":"converted.mp4","page_text":"REMUX (CONTAINER SWAP)","ffmpeg_lines":[]} TOOL run2 out streams: 0,h264 1,aac 2,aac TOOL pcm16 run: copy step could not finish, tool re-encoded: button read Converting 12% at 20 s, 18% at 60 s, 30% at 120 s (pcm-probe.cjs); first run timed out at 300 s; not finished, not measured further SUMMARY rounded to 2 decimals (computed from the RUN lines above): map0_copy 0.66 s, pcm16_aac 2.83 s == 8 added after verify round 1 (2026-11-30): per-stream durations of the remuxed crash and cut outputs (ffprobe stream=duration; chart.py now plots the video stream) DUR crash-out-mkv.mp4 video,10.874000 audio,10.942833 audio,10.942833 DUR crash-out-fmp4.mp4 video,9.063070 audio,8.042167 audio,8.042167 DUR cutout-ok.mkv.mp4 video,19.624000 audio,19.690000 audio,19.690000 DUR cutout-ok-frag.mp4.mp4 video,19.063070 audio,18.026500 audio,18.026500 NOTE CONTROL line: 720 frames is 30 s x 24 fps at a constant rate. The MKV sources and ok.mkv hold 683 frames over the same 30 s: the Sintel source has a few gaps between frames (ffprobe packet times: 677 steps of 1/24 s, the longest gap 0.583 s) and MKV keeps them. The MP4 controls (ok-plain.mp4, ok-frag.mp4) are written at a constant 24 fps with the gaps filled, so 720. All three controls opened at full length (30 s). NOTE section 5 controls are separate encodes of the same clip without -re and without kill, not the killed recordings finished later. LIMIT tool size check (src/components/tools/media-converter.tsx:69): file.size > 100 * 1024 * 1024 = 104857600 bytes = 100 MiB = 104.9 MB (decimal); the tool labels it "100 MB maximum"