如何将多个摄像机的视频编码为一个 mkv 流?

发布于 2024-08-27 05:56:04 字数 136 浏览 3 评论 0原文

如何使用 JAVA 或 C 或 C++ 将来自摄像机的多个视频和音频流(我们希望流不以任何方式编码)编码为一个 mkv,以便来自摄像机 A 的声音相对于来自摄像机 A 的视频进行编码? (该算法应该适用于不同的平台,如 Window、Linux 或 Mac)

How to encode multiple video and audio streams (we want streams not to be any how encoded) from cameras into one mkv so, that sound from camera A is encoded with respect to video from camera A, using JAVA or C or C++ ? (The algorithm should be working on different platforms like Window, Linux or Mac)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

又怨 2024-09-03 05:56:04

我假设您正在寻找视频合成,以便将多个视频布置在与音频及​​时同步的马赛克中。查看这篇文章。提出了几种解决方案。发帖人使用 gstreamer 解决了这个问题,据说该软件适用于 Windows、Mac 和 Linux。

我建议使用 GStreamer 或 Avisynth 之类的东西,因为它们会抽象出很多丑陋的细节(解码、视频缩放和翻译、视频同步、音频混合、音频同步、视频输出编码),如果您只使用 ffmpeg 的话,这些细节将是必需的直接使用 libavformat 和 libavcodec。

I assume you are looking for video compositing such that multiple videos are laid out in a mosaic synced in time with audio. Check this post out. Several solutions are presented. The poster solved the problem using gstreamer which supposedly works for Windows, Mac and Linux.

I would suggest using something like GStreamer or Avisynth since they will abstract away a lot of the ugly details (decoding, video scaling and translation, video syncing, audio mixing, audio syncing, video output encoding) that would be required if you just used ffmpeg's libavformat and libavcodec directly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文