访问来自不同应用程序的公共视频源的帧
我有来自连接到 Ubuntu 盒子的卫星电视接收器的 UDP MPEG-2 TS 流,我可以使用 ffmpeg 访问每个流中的每个帧(对应于不同的频道),没有问题。
我想对流执行各种视频处理操作,例如任务 A、任务 B 等。这些可能是面部跟踪、商业检测等。我想将访问每个帧的代码和处理每个帧的代码分开,即,我希望任务 A、任务 B 是单独的应用程序,可以启动和执行独立地停下来。
与发布/订阅者设计模式类似,与处理这些帧的其他(数量可能会增加)应用程序共享帧读取器读取的每个帧的最佳方式是什么? pub/sub 适合这项任务吗?我认为这更适用于消息类型传递。这里,数据速率很高(30 帧/秒,尺寸为 720x480),并且需要接近实时的处理性能。
非常感谢,
C
I have UDP MPEG-2 TS streams coming from a satellite TV receiver connected to an Ubuntu box, I can access each frame from each stream (corresponding to different channels) using ffmpeg, no problem.
I would like to perform various video processing operations on a stream, e.g. Task A, Task B, etc. These could be face tracking, commercial detection etc. I want to separate code that accesses each frame and code that processes each frame, that is, I want Task A, Task B to be separate applications, that can be started & stopped independently.
What would be the best way to share each frame read by the frame reader with other (number may increase) applications that process these, similar to the publish/subscriber design pattern? Is pub/sub suited for this task? I thought that was more applicable to message type passing. Here, the data rate is high (30 frames/sec with 720x480 size) and near real-time processing performance is desired.
Thanks a lot,
C
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对问题的措辞很密集。我重新表述了我的问题,并在 不同的地方得到了这个问题的良好答案关于SO的问题。
My wording of the problem was dense. I reworded my problem and got good answers to this problem at a different question on SO.