From 753653b4df62723b82d32799825135822886eac7 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 3 Sep 2026 16:20:23 +0200 Subject: refactor(node): platform abstraction for Windows portability (W1-W2-W5-W6-W7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Platform directories, signal handling, chmod guards, ffmpeg discovery, and platform-conditional CLI messages — all testable on Linux. See docs/WINDOWS-PORT.md §5 for the plan these implement. Co-Authored-By: Claude Opus 4.6 --- packages/meshbay-node/src/meshbay_node/media_probe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/meshbay-node/src/meshbay_node/media_probe.py') diff --git a/packages/meshbay-node/src/meshbay_node/media_probe.py b/packages/meshbay-node/src/meshbay_node/media_probe.py index 6dd3baa..e0c59e3 100644 --- a/packages/meshbay-node/src/meshbay_node/media_probe.py +++ b/packages/meshbay-node/src/meshbay_node/media_probe.py @@ -47,8 +47,9 @@ async def probe_video( field, no second process spawn) — resolution is deliberately never guessed from the filename (docs/mediacenter.md §3.5). """ + from meshbay_node.platform import ffprobe_cmd proc = await asyncio.create_subprocess_exec( - "ffprobe", "-v", "error", + ffprobe_cmd(), "-v", "error", "-show_entries", "stream=codec_name,profile,level,codec_type,width,height", "-show_entries", "format=duration", "-of", "json", path, -- cgit v1.2.3