experts
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseExperts
专家
How to update the videos
如何更新视频
Regenerate the homepage experts animation whenever the experts shown by
change. The
composition imports this array directly.
packages/promo-pages/src/components/experts/experts-data.tsxExpertsGraphic-
Render a fresh transparent ProRes 4444 master from the current branch. Never convert an existing WebM or MOV.bash
cd packages/brand bunx remotion render ExpertsGraphic /tmp/experts-graphic-master.mov \ --codec=prores \ --prores-profile=4444 \ --pixel-format=yuva444p10le \ --image-format=png \ --timeout=120000 \ --overwrite -
Verify the master reports, a
prores (4444)pixel format, andyuva.... Extract an alpha frame and confirm it is not fully opaque.1080x1080bashffmpeg -i /tmp/experts-graphic-master.mov ffmpeg -y -i /tmp/experts-graphic-master.mov \ -vf alphaextract -frames:v 1 /tmp/experts-graphic-alpha.png -
Encode the transparent 540x540 Chrome WebM.bash
ffmpeg -y -i /tmp/experts-graphic-master.mov \ -vf scale=540:540 \ -c:v libvpx \ -pix_fmt yuva420p \ -auto-alt-ref 0 \ -an /tmp/experts-graphic.webm -
Encode a 540x540 ProRes intermediate and convert it to the Safari HEVC-with-alpha MP4.bash
ffmpeg -y -i /tmp/experts-graphic-master.mov \ -vf scale=540:540 \ -c:v prores_ks \ -profile:v 4 \ -pix_fmt yuva444p10le \ -an /tmp/experts-graphic-540-prores.mov avconvert \ --source /tmp/experts-graphic-540-prores.mov \ --preset PresetHEVCHighestQualityWithAlpha \ --output /tmp/experts-graphic.mp4 \ --replace -
Copy both outputs to both homepage consumers.bash
cp /tmp/experts-graphic.webm ../promo-pages/public/img/experts-graphic.webm cp /tmp/experts-graphic.mp4 ../promo-pages/public/img/experts-graphic.mp4 cp /tmp/experts-graphic.webm ../docs/static/img/experts-graphic.webm cp /tmp/experts-graphic.mp4 ../docs/static/img/experts-graphic.mp4 -
Inspect all four files. Each must be 540x540 and 60 seconds long. The Safari MP4 must report,
major_brand: mp42,compatible_brands: isommp41mp42, andVideo: hevc (Main) (hvc1). Confirm the matching docs and promo-pages files have identical checksums.handler_name: Core Media Video
Do not commit either ProRes MOV. Only commit the two WebM copies and two MP4
copies.
每当 中展示的专家发生变化时,重新生成首页专家动画。 合成会直接导入此数组。
packages/promo-pages/src/components/experts/experts-data.tsxExpertsGraphic-
从当前分支渲染新的透明 ProRes 4444 主文件。绝不将现有 WebM 或 MOV 转换为新格式。bash
cd packages/brand bunx remotion render ExpertsGraphic /tmp/experts-graphic-master.mov \ --codec=prores \ --prores-profile=4444 \ --pixel-format=yuva444p10le \ --image-format=png \ --timeout=120000 \ --overwrite -
确认主文件报告为、
prores (4444)像素格式和yuva...。提取一个 alpha 帧并确认其并非完全不透明。1080x1080bashffmpeg -i /tmp/experts-graphic-master.mov ffmpeg -y -i /tmp/experts-graphic-master.mov \ -vf alphaextract -frames:v 1 /tmp/experts-graphic-alpha.png -
编码适用于 Chrome 的透明 540x540 WebM。bash
ffmpeg -y -i /tmp/experts-graphic-master.mov \ -vf scale=540:540 \ -c:v libvpx \ -pix_fmt yuva420p \ -auto-alt-ref 0 \ -an /tmp/experts-graphic.webm -
编码 540x540 的 ProRes 中间文件,并将其转换为适用于 Safari 的带 alpha 通道的 HEVC MP4。bash
ffmpeg -y -i /tmp/experts-graphic-master.mov \ -vf scale=540:540 \ -c:v prores_ks \ -profile:v 4 \ -pix_fmt yuva444p10le \ -an /tmp/experts-graphic-540-prores.mov avconvert \ --source /tmp/experts-graphic-540-prores.mov \ --preset PresetHEVCHighestQualityWithAlpha \ --output /tmp/experts-graphic.mp4 \ --replace -
将两个输出文件复制到两个首页使用方。bash
cp /tmp/experts-graphic.webm ../promo-pages/public/img/experts-graphic.webm cp /tmp/experts-graphic.mp4 ../promo-pages/public/img/experts-graphic.mp4 cp /tmp/experts-graphic.webm ../docs/static/img/experts-graphic.webm cp /tmp/experts-graphic.mp4 ../docs/static/img/experts-graphic.mp4 -
检查全部四个文件。每个文件必须为 540x540,时长为 60 秒。Safari MP4 必须报告、
major_brand: mp42、compatible_brands: isommp41mp42和Video: hevc (Main) (hvc1)。确认 docs 和 promo-pages 中对应的文件具有相同的校验和。handler_name: Core Media Video
不要提交任何 ProRes MOV。只提交两份 WebM 副本和两份 MP4 副本。
Expert data
专家数据
The source of truth is
. Keep portraits in
both and
, with identical contents.
packages/promo-pages/src/components/experts/experts-data.tsxpackages/docs/static/img/freelancerspackages/promo-pages/public/img/freelancersAfter adding or changing an expert, render their expert card from :
packages/docsbash
bun render-cardsVerify the expected was
rendered rather than reported as already existing.
packages/docs/static/generated/experts-<slug>.png唯一数据源为 。头像需同时保存在 和 中,并确保内容完全一致。
packages/promo-pages/src/components/experts/experts-data.tsxpackages/docs/static/img/freelancerspackages/promo-pages/public/img/freelancers添加或更改专家后,从 渲染其专家卡片:
packages/docsbash
bun render-cards确认预期的 已实际渲染,而不是被报告为已存在。
packages/docs/static/generated/experts-<slug>.png