Video: final edit, checks; V4–V6 done

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 00:06:21 -04:00
1 parent f017ef38c4
commit b6b882a8a1
6 files changed
+24 -7

No files matched your search

Binary file not shown.
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Pulls stills at boundaries and mid-sections for review.
set -euo pipefail
here="$(cd "$(dirname "$0")" && pwd)"
film="$here/../out/ElyOffice-launch.mp4"
out="$here/../out/edit/check"
rm -rf "$out"
mkdir -p "$out"
ffprobe -v error -show_entries format=duration:stream=codec_name,profile,width,height,r_frame_rate,pix_fmt -of compact "$film"
# Frames: scene ends, plate mids, cuts, inner cuts, section ends.
frames=(0 120 257 258 400 514 515 545 578 579 640 700 771 772 805 835 836 870 899 900 960 1028 1029 1060 1092 1093 1120 1141 1142 1180 1221 1222 1260 1285
1286 1320 1349 1350 1400 1450 1542 1543 1575 1607 1608 1630 1655 1656 1700 1799 1800 1835 1864 1865 1950 2057 2058 2200 2315 2450 2572 2699)
expr=$(printf "+eq(n\\,%s)" "${frames[@]}")
ffmpeg -v error -y -i "$film" -vf "select='${expr:1}'" -fps_mode passthrough -frame_pts 1 "$out/%05d.png"
ls "$out" | wc -l
+3 -3
View File
@@ -42,8 +42,8 @@ def piecewise(points, var):
def frames_expr(values):
"""Per-frame value by input frame count."""
return "+".join(f"eq(in,{k})*{v:.3f}" for k, v in enumerate(values))
"""Per-frame value; perspective counts input frames from one."""
return "+".join(f"eq(in,{k + 1})*{v:.3f}" for k, v in enumerate(values))
def piece_chain(label, piece, start, f0, f1, out):
@@ -109,7 +109,7 @@ def plate_chain(scene, rec, k, out):
return (
f"{rec},scale=800:450:flags=area,scale=1912:1072:flags=bicubic,format=rgba,"
f"pad=1920:1080:4:4:color=black@0,setsar=1,perspective={pins}:sense=destination:eval=frame:interpolation=cubic"
f"{fades}[pin];[{k}:v]format=rgba[bg];[bg][pin]overlay=format=rgb:shortest=1,format=rgb24,setsar=1[{out}]"
f"{fades}[pin];[{k}:v]format=rgba[bg];[bg][pin]overlay=format=rgb:eof_action=repeat,format=rgb24,setsar=1[{out}]"
)
+1 -1
View File
@@ -35,7 +35,7 @@
},
{
"app": "tree", "title": "ElyTree", "en": "Stage. Commit. Look back.", "zh": "暂存,提交,回看历史。",
"focus": [960, 420],
"focus": [830, 420],
"pieces": [
{ "src": "tree", "anchors": [[0, 0.8], [4, 3.6], [5, 4.1], [7, 7.2]] },
{ "src": "tree", "anchors": [[7, 10.4], [8, 11.4], [9, 13.2], [11, 15.5], [16, 19.9]] }