From a16cc7c3b70688b821e41166200e36a61723c46d Mon Sep 17 00:00:00 2001 From: JohannesItten Date: Sun, 5 Jul 2026 12:54:23 +0300 Subject: [PATCH] docs: document .ts-only audio pacing limitation in videoin Co-Authored-By: Claude Sonnet 4.6 --- nodes/videoin/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodes/videoin/main.cpp b/nodes/videoin/main.cpp index 63f1d57..0e98ef6 100644 --- a/nodes/videoin/main.cpp +++ b/nodes/videoin/main.cpp @@ -12,6 +12,9 @@ class VideoInNode : public dmf::NodeBase { if (filename.empty()) { log("config missing 'file'"); return; } log("file: %s", filename.c_str()); + // Audio pacing assumes steady fixed-size chunks from the demuxer (e.g. 1024-sample AAC + // packets in MPEG-TS). Containers like MP4/MKV can deliver audio in large bursts, which + // would require a separate metering buffer to pace correctly. Stick to .ts for now. dmf::VideoReader video_reader(filename); if (!video_reader.has_video && !video_reader.has_audio) { log("no video or audio stream found"); return;