如何将多个摄像机的视频编码为一个 mkv 流?
如何使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您正在寻找视频合成,以便将多个视频布置在与音频及时同步的马赛克中。查看这篇文章。提出了几种解决方案。发帖人使用 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.