fix(video): feed android h264 encoder nv12
Some checks failed
Mirror to GitHub / mirror (push) Failing after 30s
Build Release Binaries / build-amd64 (push) Failing after 3m16s

This commit is contained in:
Siavash Sameni
2026-05-25 21:20:01 +04:00
parent e8f139588a
commit 0b7bf1b385
2 changed files with 61 additions and 3 deletions

View File

@@ -1958,6 +1958,22 @@ impl CallEngine {
}),
);
}
if should_log_video_sample(camera_frames, false) {
crate::emit_call_debug(
&vid_app,
"video:camera_frame_sample",
serde_json::json!({
"t_ms": vid_t0.elapsed().as_millis() as u64,
"codec": format!("{:?}", vid_codec),
"frame_no": camera_frames,
"width": f.width,
"height": f.height,
"data_bytes": f.data.len(),
"platform": "android",
"i420_sample": i420_sample(&f.data, f.width, f.height),
}),
);
}
f
}
Ok(None) => break,
@@ -3099,6 +3115,22 @@ impl CallEngine {
}),
);
}
if should_log_video_sample(camera_frames, false) {
crate::emit_call_debug(
&vid_app,
"video:camera_frame_sample",
serde_json::json!({
"t_ms": vid_t0.elapsed().as_millis() as u64,
"codec": format!("{:?}", vid_codec),
"frame_no": camera_frames,
"width": f.width,
"height": f.height,
"data_bytes": f.data.len(),
"platform": "desktop",
"i420_sample": i420_sample(&f.data, f.width, f.height),
}),
);
}
f
}
Ok(None) => break, // sender dropped