This commit is contained in:
eric
2026-03-29 02:57:08 -05:00
parent ef87c43b33
commit e3ac026710
15 changed files with 799 additions and 222 deletions

View File

@@ -23,24 +23,24 @@ const PRESETS: HdmiPreset[] = [
labelZh: "720p @ 60Hz",
labelEn: "720p @ 60Hz",
spec: "1280x720, 59.94/60Hz, RGB/YUV 有限",
hintZh: "板端 HDMI 输出与采集卡 EDID 对齐;OBS 画布 1280×720。",
hintEn: "Match SoC HDMI timing to capture card EDID; OBS 1280×720.",
hintZh: "板端 HDMI 输出时序与显示端一致;下游画布建议 1280×720。",
hintEn: "Match SoC HDMI timing to the display; downstream canvas e.g. 1280×720.",
},
{
id: "1080p30",
labelZh: "1080p @ 30Hz",
labelEn: "1080p @ 30Hz",
spec: "1920x1080, 30Hz, 适合 USB 采集带宽紧张场景",
hintZh: "USB3 采集常更稳;检查线缆长度与屏蔽。",
hintEn: "Often more stable on USB3 capture; check cable quality.",
spec: "1920x1080, 30Hz",
hintZh: "带宽紧张时可优先 1080p30;检查线材与接口规格。",
hintEn: "Prefer 1080p30 when bandwidth is tight; check cable and port specs.",
},
{
id: "1080p60",
labelZh: "1080p @ 60Hz",
labelEn: "1080p @ 60Hz",
spec: "1920x1080, 60Hz, 高刷转播",
hintZh: "需确认采集卡与 SoC 同时支持 1080p60;过热会掉帧。",
hintEn: "Requires 1080p60 on both ends; thermal throttling may drop frames.",
hintZh: "两端均需稳定支持 1080p60;长时间运行注意散热。",
hintEn: "Both ends need stable 1080p60; mind thermals for long runs.",
},
];
@@ -176,8 +176,6 @@ export function LiveTiktokHdmiView({
const checklist: { id: string; zh: string; en: string }[] = [
{ id: "cable", zh: "HDMI 线材插紧、方向正确(如需转接头确认规格)", en: "HDMI cable seated; adapter specs OK" },
{ id: "edid", zh: "采集卡与板端分辨率/刷新率一致(见上方预设)", en: "Capture + SoC timing match preset" },
{ id: "usb", zh: "USB 采集盒接 USB3 口,避免过长无屏蔽线", en: "USB3 capture; avoid bad cables" },
{ id: "thermal", zh: "长时间推流注意散热,过热会掉帧黑屏", en: "Thermal headroom for long runs" },
];
@@ -188,8 +186,8 @@ export function LiveTiktokHdmiView({
t={t}
title={t("TikTok HDMI 硬件链路", "TikTok HDMI hardware chain")}
subtitle={t(
"从板端编码到采集卡再到安卓;与「网络」页顶卡相同的箭头风格。",
"Encode → HDMI → capture → Android; same arrow style as Network header.",
"板端编码经 HDMI 到显示/下游设备;与「网络」页顶卡相同的箭头风格。",
"Encode on SoC → HDMI → display/downstream; same arrow style as Network header.",
)}
onNavigate={onNavigate}
steps={[
@@ -199,22 +197,11 @@ export function LiveTiktokHdmiView({
gradient: "from-cyan-400 to-blue-500",
target: "live_tiktok",
},
{
label: "File Browser",
sub: t("本地文件", "Local files"),
gradient: "from-amber-400 to-orange-500",
target: "files",
},
{
label: "HDMI",
sub: t("板载输出", "SoC out"),
gradient: "from-violet-500 to-fuchsia-500",
},
{
label: t("采集卡", "Capture card"),
sub: "USB / PCIe",
gradient: "from-emerald-400 to-teal-500",
},
{
label: "Android",
sub: t("AOSP / 手机", "AOSP"),
@@ -350,13 +337,13 @@ export function LiveTiktokHdmiView({
</li>
))}
</ul>
<label className="mt-4 block text-[11px] text-zinc-500">{t("采集卡 / EDID / 走线备忘", "Capture / EDID notes")}</label>
<label className="mt-4 block text-[11px] text-zinc-500">{t("HDMI / 走线备忘", "HDMI / wiring notes")}</label>
<textarea
className="mt-1 min-h-[72px] w-full resize-y rounded-lg border border-white/10 bg-black/40 p-3 text-xs text-zinc-300"
value={hdmiNotes}
onChange={(e) => persistNotes(e.target.value)}
spellCheck={false}
placeholder="Magewell / OBS 视频采集设备 …"
placeholder={t("接口、线长、显示器型号…", "Ports, cable length, display model…")}
/>
</div>
</div>